You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/29 05:40:36 UTC

[GitHub] [airflow] norm commented on a change in pull request #22341: Add API endpoint to list mapped task instances

norm commented on a change in pull request #22341:
URL: https://github.com/apache/airflow/pull/22341#discussion_r837073475



##########
File path: tests/api_connexion/endpoints/test_task_instance_endpoint.py
##########
@@ -376,6 +376,16 @@ def test_should_return_404_for_mapped_endpoint(self, session):
             )
             assert response.status_code == 404
 
+    def test_should_return_404_for_list_mapped_endpoint(self, session):
+        self.create_task_instances(session)
+        for index in ['0', '1', '2']:
+            response = self.client.get(
+                "/api/v1/dags/example_python_operator/dagRuns/TEST_DAG_RUN_ID/"
+                "taskInstances/print_the_context/listMapped",
+                environ_overrides={"REMOTE_USER": "test"},
+            )
+            assert response.status_code == 404

Review comment:
       Yep, that was thoughtless copy+paste on my part.




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org