diff --git a/tests/integration/test_model.py b/tests/integration/test_model.py index 8d213553..c488b750 100644 --- a/tests/integration/test_model.py +++ b/tests/integration/test_model.py @@ -1197,6 +1197,21 @@ async def test_model_cache_update(): await controller.destroy_models(model_name) +@base.bootstrapped +async def test_deploy_with_storage(): + async with base.CleanModel() as model: + await model.deploy( + 'postgresql', + storage={"pgdata": {"size": 1024, "count": 1}}, + ) + await model.wait_for_idle(status="active") + storages = await model.list_storage() + await model.list_storage(filesystem=True) + await model.list_storage(volume=True) + + assert any([tag.storage("pgdata") in s['storage-tag'] for s in storages]) + + @base.bootstrapped async def test_add_storage(): pytest.skip('skip in favour of test_add_and_list_storage')