Skip to content

Commit

Permalink
fix exporter test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Jun 20, 2024
1 parent 21b74cd commit 4d0e066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/charts/test_exporter_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ def test_pod_monitor_uses_scrape_interval(self):
def test_defaults(self):
pod_monitor = self.manifests.by_query("kind: PodMonitor")[0]
assert pod_monitor["metadata.name"] == "logprep-logprep"
assert pod_monitor["spec.selector.matchLabels"]["kubernetes.io/name"] == "logprep-logprep"
assert (
pod_monitor["spec.selector.matchLabels"]["app.kubernetes.io/name"] == "logprep-logprep"
)
assert pod_monitor["spec.selector.matchLabels"]["app.kubernetes.io/instance"] == "logprep"
assert pod_monitor["spec.podMetricsEndpoints.0.targetPort"] == 8000
assert pod_monitor["spec.podMetricsEndpoints.0.interval"] == "30s"

Expand Down

0 comments on commit 4d0e066

Please sign in to comment.