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 : xenial
1+ series : jammy
22applications :
3- wordpress :
4- charm : " wordpress"
5- series : " xenial"
6- channel : " candidate"
3+ grafana :
4+ charm : " grafana"
5+ channel : stable
76 num_units : 1
8- annotations :
9- " gui-x " : " 339.5"
10- " gui-y " : " -171"
11- to :
12- - " 0"
13- mysql :
14- charm : " mysql"
15- series : " trusty"
16- channel : " candidate"
7+ prometheus :
8+ charm : " prometheus"
9+ channel : stable
1710 num_units : 1
18- annotations :
19- " gui-x " : " 79.5"
20- " gui-y " : " -142"
21- to :
22- - " 1"
2311relations :
24- - - "wordpress:db"
25- - " mysql:db"
26- machines :
27- " 0 " :
28- series : xenial
29- constraints : " arch=amd64 cores=1 cpu-power=100 mem=1740 root-disk=8192"
30- " 1 " :
31- series : trusty
32- constraints : " arch=amd64 cores=1 cpu-power=100 mem=1740 root-disk=8192"
12+ - ["prometheus:grafana-source", "grafana:grafana-source"]
Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ async def test_deploy_local_bundle_dir(event_loop):
3636 async with base .CleanModel () as model :
3737 await model .deploy (str (bundle_path ))
3838
39- wordpress = model .applications .get ('wordpress' )
40- mysql = model .applications .get ('mysql' )
41- assert wordpress and mysql
42- await model .block_until (lambda : (len (wordpress .units ) == 1 and
43- len (mysql .units ) == 1 ),
39+ app1 = model .applications .get ('grafana' )
40+ app2 = model .applications .get ('prometheus' )
41+ with open ("/tmp/output" , "w" ) as writer :
42+ writer .write (str (bundle_path )+ "\n " )
43+ for (k ,v ) in model .applications .items ():
44+ writer .write (k )
45+ assert app1 and app2
46+ await model .block_until (lambda : (len (app1 .units ) == 1 and
47+ len (app2 .units ) == 1 ),
4448 timeout = 60 * 4 )
4549
4650
You can’t perform that action at this time.
0 commit comments