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



##########
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:
       I don't think this for loop is needed/does anything now
   ```suggestion
           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
   ```




-- 
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]


Reply via email to