Skip to content

Commit 2c6493c

Browse files
committed
Add integration test for local bundle local charm with manifest
1 parent e28e2c1 commit 2c6493c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/integration/test_model.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,20 @@ async def test_deploy_bundle_local_charms(event_loop):
178178
assert model.units['test2/0'].workload_status == 'active'
179179

180180

181+
@base.bootstrapped
182+
@pytest.mark.asyncio
183+
@pytest.mark.bundle
184+
async def test_deploy_bundle_local_charm_series_manifest(event_loop):
185+
bundle_path = INTEGRATION_TEST_DIR / 'bundle' / 'local-manifest.yaml'
186+
187+
async with base.CleanModel() as model:
188+
await model.deploy(bundle_path)
189+
await wait_for_bundle(model, bundle_path)
190+
assert set(model.units.keys()) == set(['test1/0'])
191+
assert model.units['test1/0'].agent_status == 'idle'
192+
assert model.units['test1/0'].workload_status == 'active'
193+
194+
181195
@base.bootstrapped
182196
@pytest.mark.asyncio
183197
@pytest.mark.bundle

0 commit comments

Comments
 (0)