Skip to content

Commit

Permalink
fix: pin grafana and prometheus revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Sep 26, 2023
1 parent 7cc28df commit 7018772
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,29 @@ async def test_prometheus_grafana_integration(ops_test: OpsTest):
prometheus_scrape_charm = "prometheus-scrape-config-k8s"
scrape_config = {"scrape_interval": "5s"}

await ops_test.model.deploy(prometheus, channel="latest/beta", trust=True)
await ops_test.model.deploy(grafana, channel="latest/beta", trust=True)
# FIXME: Unpin revision once https://github.com/canonical/bundle-kubeflow/issues/688 is closed
await ops_test.juju(
"deploy",
prometheus,
"--channel",
"latest/edge",
"--revision",
"137",
"--trust",
check=True,
)
# FIXME: Unpin revision once https://github.com/canonical/bundle-kubeflow/issues/690 is closed
await ops_test.juju(
"deploy",
grafana,
"--channel",
"latest/edge",
"--revision",
"89",
"--trust",
check=True,
)

await ops_test.model.add_relation(
f"{prometheus}:grafana-dashboard", f"{grafana}:grafana-dashboard"
)
Expand Down

0 comments on commit 7018772

Please sign in to comment.