1313async def test_offer (event_loop ):
1414 async with base .CleanModel () as model :
1515 await model .deploy (
16- 'cs:~jameinel/ ubuntu-lite-7 ' ,
16+ 'ubuntu' ,
1717 application_name = 'ubuntu' ,
1818 series = 'focal' ,
1919 channel = 'stable' ,
@@ -35,7 +35,7 @@ async def test_offer(event_loop):
3535async def test_consume (event_loop ):
3636 async with base .CleanModel () as model_1 :
3737 await model_1 .deploy (
38- 'cs:~jameinel/ ubuntu-lite-7 ' ,
38+ 'ubuntu' ,
3939 application_name = 'ubuntu' ,
4040 series = 'focal' ,
4141 channel = 'stable' ,
@@ -66,7 +66,7 @@ async def test_consume(event_loop):
6666async def test_remove_saas (event_loop ):
6767 async with base .CleanModel () as model_1 :
6868 await model_1 .deploy (
69- 'cs:~jameinel/ ubuntu-lite-7 ' ,
69+ 'ubuntu' ,
7070 application_name = 'ubuntu' ,
7171 series = 'focal' ,
7272 channel = 'stable' ,
@@ -97,48 +97,48 @@ async def test_remove_saas(event_loop):
9797@base .bootstrapped
9898@pytest .mark .asyncio
9999async def test_relate_with_offer (event_loop ):
100- pytest .skip ('Revise: intermittent problem with the remove_saas call' )
100+ # pytest.skip('Revise: intermittent problem with the remove_saas call')
101101 async with base .CleanModel () as model_1 :
102102 application = await model_1 .deploy (
103- 'ch:mysql ' ,
104- application_name = 'mysql ' ,
105- series = 'xenial ' ,
103+ 'postgresql ' ,
104+ application_name = 'postgresql ' ,
105+ series = 'focal ' ,
106106 channel = 'stable' ,
107107 )
108- assert 'mysql ' in model_1 .applications
108+ assert 'postgresql ' in model_1 .applications
109109 await model_1 .wait_for_idle (status = "active" )
110- await model_1 .create_offer ("mysql :db" )
110+ await model_1 .create_offer ("postgresql :db" )
111111
112112 offers = await model_1 .list_offers ()
113113 await model_1 .block_until (
114- lambda : all (offer .application_name == 'mysql '
114+ lambda : all (offer .application_name == 'postgresql '
115115 for offer in offers .results ))
116116
117117 # farm off a new model to test the consumption
118118 async with base .CleanModel () as model_2 :
119119 await model_2 .deploy (
120- 'ch:mediawiki ' ,
121- application_name = 'mediawiki ' ,
122- series = 'trusty ' ,
120+ 'hello-juju ' ,
121+ application_name = 'hello-juju ' ,
122+ series = 'focal ' ,
123123 channel = 'stable' ,
124124 )
125125 await model_2 .block_until (
126126 lambda : all (unit .agent_status == 'idle'
127127 for unit in application .units ))
128128
129- await model_2 .relate ("mediawiki :db" , "admin/{}.mysql " .format (model_1 .name ))
129+ await model_2 .relate ("hello-juju :db" , "admin/{}.postgresql " .format (model_1 .name ))
130130 status = await model_2 .get_status ()
131- if 'mysql ' not in status .remote_applications :
131+ if 'postgresql ' not in status .remote_applications :
132132 raise Exception ("Expected mysql in saas" )
133133
134- await model_2 .remove_saas ('mysql ' )
134+ await model_2 .remove_saas ('postgresql ' )
135135 await jasyncio .sleep (5 )
136136
137137 status = await model_2 .get_status ()
138- if 'mysql ' in status .remote_applications :
138+ if 'postgresql ' in status .remote_applications :
139139 raise Exception ("Expected mysql not to be in saas" )
140140
141- await model_1 .remove_offer ("admin/{}.mysql " .format (model_1 .name ), force = True )
141+ await model_1 .remove_offer ("admin/{}.postgresql " .format (model_1 .name ), force = True )
142142
143143
144144@base .bootstrapped
0 commit comments