Skip to content

Commit 879d3c1

Browse files
committed
Add integration test for deploy by revision success
1 parent 336c39e commit 879d3c1

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

tests/integration/test_model.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import pylxd
1414
import pytest
15-
from juju import jasyncio, tag
15+
from juju import jasyncio, tag, url
1616
from juju.client import client
1717
from juju.errors import JujuError, JujuModelError, JujuUnitError, JujuConnectionError
1818
from juju.model import Model, ModelObserver
@@ -92,6 +92,18 @@ async def test_deploy_bundle_local_resource_relative_path(event_loop):
9292
timeout=60 * 4)
9393

9494

95+
@base.bootstrapped
96+
@pytest.mark.asyncio
97+
async def test_deploy_by_revision(event_loop):
98+
async with base.CleanModel() as model:
99+
app = await model.deploy('juju-qa-test',
100+
application_name='test',
101+
channel='2.0/stable',
102+
revision=22,)
103+
104+
assert url.URL.parse(app.charm_url).revision == 22
105+
106+
95107
@base.bootstrapped
96108
@pytest.mark.asyncio
97109
async def test_deploy_local_bundle_include_file(event_loop):

0 commit comments

Comments
 (0)