rohan9446 commented on code in PR #70896:
URL: https://github.com/apache/airflow/pull/70896#discussion_r3699885673


##########
chart/tests/helm_tests/airflow_aux/test_airflow_common.py:
##########
@@ -396,6 +396,53 @@ def test_have_all_variables(self):
                 f"Wrong vars in {component}"
             )
 
+    @pytest.mark.parametrize(
+        ("template", "main_container", "expected_jwt_secret"),
+        [
+            ("templates/api-server/api-server-deployment.yaml", "api-server", 
True),
+            ("templates/scheduler/scheduler-deployment.yaml", "scheduler", 
True),
+            ("templates/workers/worker-deployment.yaml", "worker", False),
+            ("templates/triggerer/triggerer-deployment.yaml", "triggerer", 
False),
+            ("templates/dag-processor/dag-processor-deployment.yaml", 
"dag-processor", False),
+        ],
+    )
+    def test_jwt_secret_only_injected_into_api_server_and_scheduler(

Review Comment:
   I split this into separate tests for components that should receive the JWT 
secret and components that should not.



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