Skip to content

Commit

Permalink
Merge pull request #1260 from sabaini/fix/ga-naming
Browse files Browse the repository at this point in the history
Fix: grafana-agent relation
  • Loading branch information
sabaini authored Aug 30, 2024
2 parents f8b4d09 + 7e1591c commit 4a81c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zaza/openstack/charm_tests/ceph/mon/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ def setUpClass(cls):
cls.grafana_details = zaza.model.run_action_on_leader(
"grafana", "get-admin-password", model_name=cls.cos_model
).results

cls.grafana_agent = "grafana-agent-container"
super().setUpClass()

def test_100_integration_setup(self):
"""Test: check that the grafana-agent is related to the ceph-mon."""
async def have_rel():
app = await zaza.model.async_get_application(self.application_name)
spec = "grafana-agent:cos-agent"
spec = f"{self.grafana_agent}:cos-agent"
return any(r.matches(spec) for r in app.relations)

zaza.model.block_until(have_rel)
Expand Down

0 comments on commit 4a81c00

Please sign in to comment.