File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
tests/integration/ha_tests Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 66import logging
77
88import pytest
9- from juju import tag
109from pytest_operator .plugin import OpsTest
1110from tenacity import Retrying , stop_after_delay , wait_fixed
1211
@@ -143,14 +142,9 @@ async def test_app_resources_conflicts_v3(ops_test: OpsTest, charm: str):
143142 garbage_storage = await get_any_deatached_storage (ops_test )
144143
145144 logger .info ("deploying duplicate application with attached storage" )
146- await ops_test .model .deploy (
147- charm ,
148- application_name = DUP_APPLICATION_NAME ,
149- num_units = 1 ,
150- base = CHARM_BASE ,
151- attach_storage = [tag .storage (garbage_storage )],
152- config = {"profile" : "testing" },
153- )
145+ deploy_cmd = f"deploy ./{ charm } { DUP_APPLICATION_NAME } --model={ ops_test .model .info .name } --attach-storage={ garbage_storage } --config profile=testing" .split ()
146+ return_code , _ , _ = await ops_test .juju (* deploy_cmd )
147+ assert return_code == 0 , "Failed to add unit with storage"
154148
155149 # Reducing the update status frequency to speed up the triggering of deferred events.
156150 await ops_test .model .set_config ({"update-status-hook-interval" : "10s" })
You can’t perform that action at this time.
0 commit comments