jx2lee commented on code in PR #44963:
URL: https://github.com/apache/airflow/pull/44963#discussion_r1925173009
##########
helm_tests/other/test_keda.py:
##########
@@ -58,6 +58,17 @@ def test_keda_enabled(self, executor, is_created):
@pytest.mark.parametrize(
"executor", ["CeleryExecutor", "CeleryKubernetesExecutor",
"CeleryExecutor,KubernetesExecutor"]
)
+ def test_include_event_source_container_name_in_scaled_object(self,
executor):
+ docs = render_chart(
+ values={
+ "workers": {"keda": {"enabled": True}, "persistence":
{"enabled": False}},
+ "executor": executor,
+ },
+ show_only=["templates/workers/worker-kedaautoscaler.yaml"],
+ )
+ assert jmespath.search("spec.scaleTargetRef.envSourceContainerName",
docs[0]) == "worker"
+
+ @pytest.mark.parametrize("executor", ["CeleryExecutor",
"CeleryKubernetesExecutor"])
Review Comment:
Thanks! fixed it. 🤗
--
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]