Skip to content

Commit

Permalink
Fix test_trusted and resources integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Nov 29, 2023
1 parent d5c5eb2 commit 7f34011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion juju/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ async def deploy(
if config is None:
config = {}
if trust:
config["trust"] = "true"
config["trust"] = True

return await self._deploy(
charm_url=identifier,
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ async def test_upgrade_local_charm_resource(event_loop):

@base.bootstrapped
@pytest.mark.asyncio
@pytest.mark.skip('Update charm')
async def test_upgrade_charm_resource(event_loop):
async with base.CleanModel() as model:
app = await model.deploy('cs:~juju-qa/bionic/upgrade-charm-resource-test-0')
Expand All @@ -233,7 +234,7 @@ async def test_upgrade_charm_resource(event_loop):
@pytest.mark.asyncio
async def test_refresh_with_resource_argument(event_loop):
async with base.CleanModel() as model:
app = await model.deploy('juju-qa-test', resources={'foo-file': 2})
app = await model.deploy('juju-qa-test', resources={'foo-file': '2'})
res2 = await app.get_resources()
assert res2['foo-file'].revision == 2
await app.refresh(resources={'foo-file': 4})
Expand Down

0 comments on commit 7f34011

Please sign in to comment.