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