@@ -45,8 +45,8 @@ async def test_deploy_local_bundle_dir():
4545 async with base .CleanModel () as model :
4646 await model .deploy (str (bundle_path ))
4747
48- app1 = model .applications .get ('grafana ' )
49- app2 = model .applications .get ('prometheus ' )
48+ app1 = model .applications .get ('juju-qa-test ' )
49+ app2 = model .applications .get ('nrpe ' )
5050 with open ("/tmp/output" , "w" ) as writer :
5151 writer .write (str (bundle_path ) + "\n " )
5252 for (k , v ) in model .applications .items ():
@@ -66,8 +66,8 @@ async def test_deploy_local_bundle_file():
6666 async with base .CleanModel () as model :
6767 await model .deploy (str (mini_bundle_file_path ))
6868
69- app1 = model .applications .get ('grafana ' )
70- app2 = model .applications .get ('prometheus ' )
69+ app1 = model .applications .get ('juju-qa-test ' )
70+ app2 = model .applications .get ('nrpe ' )
7171 assert app1 and app2
7272 await model .block_until (lambda : (len (app1 .units ) == 1 and
7373 len (app2 .units ) == 1 ),
@@ -272,27 +272,21 @@ async def test_deploy_local_bundle_with_overlay_multi():
272272 # this bundle deploys mysql and ghost apps and relates them,
273273 # but the overlay attached removes ghost, so
274274 assert 'mysql' in model .applications
275- assert 'ghost' not in model .applications
276275
277276
278277@base .bootstrapped
279278@pytest .mark .asyncio
280279async def test_deploy_bundle_with_overlay_as_argument ():
281280 async with base .CleanModel () as model :
282281 overlay_path = OVERLAYS_DIR / 'test-overlay.yaml'
282+ bundle_path = TESTS_DIR / "bundle" / "bundle.yaml"
283283
284- await model .deploy ('juju-qa-bundle-test' , overlays = [overlay_path ])
285- # juju-qa-bundle-test installs the applications
286- # - juju-qa-test
287- # - juju-qa-test-focal
288- # - ntp
289- # - ntp-focal
284+ await model .deploy (bundle_path , overlays = [overlay_path ])
290285
291- # our overlay requests to remove ntp and add ghost and mysql
286+ # our overlay requests to remove ntp and add mysql
292287 # and relate them, so
293288 assert 'juju-qa-test' in model .applications
294- assert 'ntp' not in model .applications
295- assert 'ghost' in model .applications
289+ assert 'nrpe' not in model .applications
296290 assert 'mysql' in model .applications
297291
298292
@@ -301,9 +295,12 @@ async def test_deploy_bundle_with_overlay_as_argument():
301295async def test_deploy_bundle_with_multi_overlay_as_argument ():
302296 async with base .CleanModel () as model :
303297 overlay_path = OVERLAYS_DIR / 'test-multi-overlay.yaml'
298+ bundle_path = TESTS_DIR / "bundle" / "bundle.yaml"
299+
300+ await model .deploy (bundle_path , overlays = [overlay_path ])
304301
305- await model . deploy ( 'juju-qa-bundle- test' , overlays = [ overlay_path ])
306- assert 'ntp ' not in model .applications
302+ assert 'juju-qa-test' in model . applications
303+ assert 'nrpe ' not in model .applications
307304 assert 'memcached' not in model .applications
308305 assert 'mysql' in model .applications
309306
@@ -321,7 +318,7 @@ async def test_deploy_bundle_with_multiple_overlays_with_include_files():
321318 assert 'influxdb' not in model .applications
322319 assert 'test' not in model .applications
323320 assert 'memcached' not in model .applications
324- assert 'grafana ' in model .applications
321+ assert 'juju-qa-test ' in model .applications
325322
326323
327324@base .bootstrapped
0 commit comments