File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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
12011216async def test_add_storage ():
12021217 pytest .skip ('skip in favour of test_add_and_list_storage' )
You can’t perform that action at this time.
0 commit comments