Skip to content

Commit 4694640

Browse files
committed
Revise the test_upgrade_local_charm
1 parent fb617b6 commit 4694640

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/integration/test_application.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,10 @@ async def test_upgrade_local_charm(event_loop):
247247
async with base.CleanModel() as model:
248248
tests_dir = Path(__file__).absolute().parent
249249
charm_path = tests_dir / 'upgrade-charm'
250-
app = await model.deploy('cs:ubuntu', series='focal')
250+
app = await model.deploy('ch:ubuntu', series='focal')
251251
await model.wait_for_idle(status="active")
252-
assert app.data['charm-url'].startswith('cs:ubuntu')
252+
assert app.data['charm-url'].startswith('ch:') and 'ubuntu' in \
253+
app.data['charm-url']
253254
await app.upgrade_charm(path=charm_path)
254255
await model.wait_for_idle(status="waiting")
255256
assert app.data['charm-url'] == 'local:focal/ubuntu-0'

0 commit comments

Comments
 (0)