File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,25 +182,25 @@ async def test_upgrade_charm_switch_channel(event_loop):
182182 # will be testing nothing (if not failing).
183183
184184 async with base .CleanModel () as model :
185- app = await model .deploy ('mongodb ' , channel = 'stable' )
185+ app = await model .deploy ('juju-qa-test ' , channel = '2.0/ stable' )
186186 await model .wait_for_idle (status = 'active' )
187187
188188 charm_url = URL .parse (app .data ['charm-url' ])
189189 assert Schema .CHARM_HUB .matches (charm_url .schema )
190- still76 = False
190+ still22 = False
191191 try :
192192 assert charm_url .revision == 76
193- still76 = True
193+ still22 = True
194194 except AssertionError :
195195 logger .warning ("Charm used in test_upgrade_charm_switch_channel "
196196 "seems to have been updated, the test needs to be revised" )
197197
198- await app .upgrade_charm (channel = 'candidate ' )
198+ await app .upgrade_charm (channel = '2.0/edge ' )
199199 await model .wait_for_idle (status = 'active' )
200200
201- if still76 :
201+ if still22 :
202202 try :
203- assert charm_url .revision == 75
203+ assert charm_url .revision == 23
204204 except AssertionError :
205205 raise errors .JujuError ("Either the upgrade has failed, or the used charm moved "
206206 "the candidate channel to stable, so no upgrade took place, "
You can’t perform that action at this time.
0 commit comments