Skip to content

Commit 96e2a3d

Browse files
committed
Add integration test for local bundle local charm with manifest
1 parent a2d3248 commit 96e2a3d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/integration/test_model.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ async def test_deploy_bundle_local_charms(event_loop):
127127
assert model.units['test2/0'].workload_status == 'active'
128128

129129

130+
@base.bootstrapped
131+
@pytest.mark.asyncio
132+
async def test_deploy_bundle_local_charm_series_manifest(event_loop):
133+
bundle_path = TESTS_DIR / 'integration' / 'bundle' / 'local-manifest.yaml'
134+
135+
async with base.CleanModel() as model:
136+
await model.deploy(bundle_path)
137+
await wait_for_bundle(model, bundle_path)
138+
assert set(model.units.keys()) == set(['test1/0'])
139+
assert model.units['test1/0'].agent_status == 'idle'
140+
assert model.units['test1/0'].workload_status == 'active'
141+
142+
130143
@base.bootstrapped
131144
@pytest.mark.asyncio
132145
async def test_deploy_invalid_bundle(event_loop):

0 commit comments

Comments
 (0)