Skip to content

Commit

Permalink
Fix pin prometheus grafana (#301)
Browse files Browse the repository at this point in the history
* fix: pin prometheus and grafana
canonical/bundle-kubeflow#688
canonical/bundle-kubeflow#690

Summary of changes:
- Pinned revisions of prometheus and grafana to avoid failure of
  integration tests. Refer to above issues for more details.
  • Loading branch information
i-chvets authored Sep 14, 2023
1 parent a07a87e commit e2758f6
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions tests/test_charms.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,28 @@ async def test_prometheus_grafana_integration(ops_test):
scrape_config = {"scrape_interval": "30s"}

# Deploy and relate prometheus
await ops_test.model.deploy(prometheus, channel="latest/edge", trust=True)
await ops_test.model.deploy(grafana, channel="latest/edge", 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.deploy(prometheus_scrape, channel="latest/beta", config=scrape_config)

await ops_test.model.add_relation(CONTROLLER_APP_NAME, prometheus_scrape)
Expand Down

0 comments on commit e2758f6

Please sign in to comment.