-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: don't merge, testing juju 3.6 only
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,10 +102,32 @@ async def test_add_units(): | |
assert isinstance(unit, Unit) | ||
|
||
|
||
@pytest.mark.parametrize("thebase", [ | ||
None, | ||
"[email protected]", | ||
"[email protected]/stable", | ||
"[email protected]", | ||
"[email protected]/stable", | ||
"[email protected]", | ||
"[email protected]/stable", | ||
"[email protected]", | ||
"[email protected]/stable", | ||
]) | ||
@base.bootstrapped | ||
async def test_deploy_charmhub_charm_ex(thebase: str): | ||
async with base.CleanModel() as model: | ||
app = await model.deploy('ubuntu', base=thebase) | ||
assert False, "fail on purpose to get the logs" | ||
await model.block_until(lambda: (len(app.units) > 0 and | ||
app.units[0].machine)) | ||
assert 'ubuntu' in app.data['charm-url'] | ||
|
||
|
||
@base.bootstrapped | ||
async def test_deploy_charmhub_charm(): | ||
async with base.CleanModel() as model: | ||
app = await model.deploy('ubuntu') | ||
assert False, "fail on purpose to get the logs" | ||
await model.block_until(lambda: (len(app.units) > 0 and | ||
app.units[0].machine)) | ||
assert 'ubuntu' in app.data['charm-url'] | ||
|