Skip to content

Commit

Permalink
wait for active before cert relation
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberCharitos committed Jul 24, 2024
1 parent 90c1df9 commit f41cf5a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/integration/test_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,24 @@ async def deploy_opensearch(lxd_model: Model):
lxd_model: The LXD model.
"""
logger.info("deploying opensearch")
await asyncio.gather(
lxd_model.deploy("ch:opensearch", num_units=2, channel="2/edge"),
lxd_model.deploy(
"self-signed-certificates", num_units=1, channel="edge"
),
await lxd_model.deploy("ch:opensearch", num_units=2, channel="2/edge")
await lxd_model.wait_for_idle(
apps=["opensearch"],
status="active",
raise_on_blocked=False,
timeout=3000,
)
await lxd_model.deploy(
"self-signed-certificates", num_units=1, channel="edge"
)
await lxd_model.add_relation("self-signed-certificates", "opensearch")
await lxd_model.create_offer("opensearch:opensearch-client")
await lxd_model.wait_for_idle(
apps=["opensearch"],
status="active",
raise_on_blocked=False,
timeout=3000,
)
await lxd_model.create_offer("opensearch:opensearch-client")


async def deploy_ranger(
Expand Down

0 comments on commit f41cf5a

Please sign in to comment.