File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ series : jammy
12applications :
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
1011relations :
11- - ["hello-juju ", "postgresql "]
12+ - ["prometheus:grafana-source ", "grafana:grafana-source "]
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ applications:
1111 test :
1212 charm : " ./tests/integration/charm"
1313relations :
14- - ["grafana", "prometheus "]
14+ - ["prometheus: grafana-source ", "grafana:grafana-source "]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments