jedcunningham commented on code in PR #25684:
URL: https://github.com/apache/airflow/pull/25684#discussion_r943948597
##########
tests/charts/test_airflow_common.py:
##########
@@ -350,3 +350,24 @@ def test_priority_class_name(self):
priority = doc['spec']['template']['spec']['priorityClassName']
assert priority == f"low-priority-{component}"
+
+ @pytest.mark.parametrize(
+ "executor",
+ [
+ ("LocalExecutor"),
+ ("LocalKubernetesExecutor"),
+ ("CeleryExecutor"),
+ ("KubernetesExecutor"),
+ ("CeleryKubernetesExecutor"),
+ ],
+ )
+ def test_scheduler_deployment_has_executor_label(self, executor):
Review Comment:
Can you put this in `test_scheduler.py` instead?
##########
tests/charts/test_airflow_common.py:
##########
@@ -350,3 +350,24 @@ def test_priority_class_name(self):
priority = doc['spec']['template']['spec']['priorityClassName']
assert priority == f"low-priority-{component}"
+
+ @pytest.mark.parametrize(
+ "executor",
+ [
+ ("LocalExecutor"),
+ ("LocalKubernetesExecutor"),
+ ("CeleryExecutor"),
+ ("KubernetesExecutor"),
+ ("CeleryKubernetesExecutor"),
+ ],
+ )
+ def test_scheduler_deployment_has_executor_label(self, executor):
+ docs = render_chart(
+ values={"executor": executor},
+ show_only=[
+ "templates/scheduler/scheduler-deployment.yaml",
+ ],
Review Comment:
```suggestion
show_only=["templates/scheduler/scheduler-deployment.yaml"],
```
nit
--
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]