Skip to content

Commit 183979a

Browse files
committed
Add integration tests
1 parent a3238da commit 183979a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/integration/test_model.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,21 @@ async def test_model_cache_update():
11971197
await controller.destroy_models(model_name)
11981198

11991199

1200+
@base.bootstrapped
1201+
async def test_deploy_with_storage():
1202+
async with base.CleanModel() as model:
1203+
await model.deploy(
1204+
'postgresql',
1205+
storage={"pgdata": {"size": 1024, "count": 1}},
1206+
)
1207+
await model.wait_for_idle(status="active")
1208+
storages = await model.list_storage()
1209+
await model.list_storage(filesystem=True)
1210+
await model.list_storage(volume=True)
1211+
1212+
assert any([tag.storage("pgdata") in s['storage-tag'] for s in storages])
1213+
1214+
12001215
@base.bootstrapped
12011216
async def test_add_storage():
12021217
pytest.skip('skip in favour of test_add_and_list_storage')

0 commit comments

Comments
 (0)