Skip to content

Commit

Permalink
tests for triggerer
Browse files Browse the repository at this point in the history
  • Loading branch information
jx2lee committed Jan 22, 2025
1 parent 9062731 commit 64c7e1b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions helm_tests/airflow_core/test_triggerer.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,21 @@ def test_should_remove_replicas_field(self):

assert "replicas" not in jmespath.search("spec", docs[0])

@pytest.mark.parametrize(
"executor", ["CeleryExecutor", "CeleryKubernetesExecutor", "CeleryExecutor,KubernetesExecutor"]
)
def test_include_event_source_container_name_in_scaled_object_for_triggerer(self, executor):
docs = render_chart(
values={
"triggerer": {
"keda": {"enabled": True},
},
},
show_only=["templates/triggerer/triggerer-kedaautoscaler.yaml"],
)

assert jmespath.search("spec.scaleTargetRef.envSourceContainerName", docs[0]) == "triggerer"

@pytest.mark.parametrize(
"query, expected_query",
[
Expand Down

0 comments on commit 64c7e1b

Please sign in to comment.