Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jx2lee committed Dec 17, 2024
1 parent 28c1b9f commit 524267c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions helm_tests/other/test_keda.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ def test_keda_enabled(self, executor, is_created):
else:
assert docs == []

@pytest.mark.parametrize(
"executor, is_created",
[
("CeleryExecutor", True),
("CeleryKubernetesExecutor", True),
],
)
def test_include_event_source_container_name_in_scaled_object(self, executor, is_created):
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]) == "release-name-worker"

@pytest.mark.parametrize("executor", ["CeleryExecutor", "CeleryKubernetesExecutor"])
def test_keda_advanced(self, executor):
"""Verify keda advanced config."""
Expand Down

0 comments on commit 524267c

Please sign in to comment.