rishkarajgi commented on code in PR #24784:
URL: https://github.com/apache/airflow/pull/24784#discussion_r941407123
##########
tests/charts/test_worker.py:
##########
@@ -112,6 +112,36 @@ def
test_should_add_extra_volume_and_extra_volume_mount(self):
"spec.template.spec.containers[0].volumeMounts[0].name", docs[0]
)
+ def test_should_add_extraEnvs(self):
+ docs = render_chart(
+ values={
+ "executor": "CeleryExecutor",
+ "workers": {
+ "env": [{"name": "TEST_ENV_1", "value": "test_env_1"}],
+ },
+ },
+ show_only=["templates/workers/worker-deployment.yaml"],
+ )
+
+ assert {'name': 'TEST_ENV_1', 'value': 'test_env_1'} in
jmespath.search(
+ "spec.template.spec.containers[0].env", docs[0]
+ )
+
+ def test_should_add_extraEnvs_to_wait_for_migration_container(self):
+ docs = render_chart(
+ values={
+ "executor": "CeleryExecutor",
Review Comment:
done
--
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]