ephraimbuddy commented on a change in pull request #20485:
URL: https://github.com/apache/airflow/pull/20485#discussion_r774930134
##########
File path: tests/api_connexion/endpoints/test_dag_run_endpoint.py
##########
@@ -307,6 +307,41 @@ def test_should_respond_200(self, session):
"total_entries": 2,
}
+ def test_filter_by_state(self, session):
+ self._create_test_dag_run()
+ assert session.query(DagRun).count() == 2
+ response = self.client.get(
+ "api/v1/dags/TEST_DAG_ID/dagRuns?state=running,failed",
environ_overrides={'REMOTE_USER': "test"}
Review comment:
The failed state is not tested here. Can we fail one dagrun or set the
state to queued and adjust the test to match
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]