Skip to content

Commit 415854e

Browse files
authored
[MISC] Fix smoke test (#1184)
* Volume tests * Manually deploying
1 parent 544ac72 commit 415854e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/integration/ha_tests/test_smoke.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import logging
77

88
import pytest
9-
from juju import tag
109
from pytest_operator.plugin import OpsTest
1110
from 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"})

0 commit comments

Comments
 (0)