Skip to content

Commit 33de90a

Browse files
author
Juan Tirado
committed
Fix mini-bundle.
1 parent fdc5382 commit 33de90a

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

tests/bundle/mini-bundle.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
series: jammy
12
applications:
2-
ghost:
3-
charm: "hello-juju"
3+
grafana:
4+
charm: "grafana"
45
channel: stable
56
num_units: 1
6-
mysql:
7-
charm: "postgresql"
8-
channel: candidate
7+
prometheus:
8+
charm: "prometheus"
9+
channel: stable
910
num_units: 1
1011
relations:
11-
- ["hello-juju", "postgresql"]
12+
- ["prometheus:grafana-source", "grafana:grafana-source"]

tests/integration/bundle/bundle.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ applications:
1111
test:
1212
charm: "./tests/integration/charm"
1313
relations:
14-
- ["grafana", "prometheus"]
14+
- ["prometheus:grafana-source", "grafana:grafana-source"]

tests/integration/test_model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ async def test_deploy_local_bundle_file(event_loop):
6666
async with base.CleanModel() as model:
6767
await model.deploy(str(mini_bundle_file_path))
6868

69-
ghost = model.applications.get('hello-juju')
70-
mysql = model.applications.get('postgresql')
71-
assert ghost and mysql
72-
await model.block_until(lambda: (len(ghost.units) == 1 and
73-
len(mysql.units) == 1),
69+
app1 = model.applications.get('grafana')
70+
app2 = model.applications.get('prometheus')
71+
assert app1 and app2
72+
await model.block_until(lambda: (len(app1.units) == 1 and
73+
len(app2.units) == 1),
7474
timeout=60 * 4)
7575

7676

0 commit comments

Comments
 (0)