Skip to content

Commit

Permalink
DPE-3557 Workaround pvc transient error (#465)
Browse files Browse the repository at this point in the history
* workaround for python-libjuju#972

* include scaling duties

* missing option
  • Loading branch information
paulomach committed Jul 26, 2024
1 parent 0b01e5c commit 91671dd
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ async def scale_application(
timeout=(15 * 60),
wait_for_exact_units=desired_count,
raise_on_blocked=True,
raise_on_error=False,
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ async def deploy_and_scale_mysql(
status="active",
raise_on_blocked=True,
timeout=TIMEOUT,
raise_on_error=False,
)

assert len(ops_test.model.applications[mysql_application_name].units) == num_units
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/high_availability/test_async_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ async def test_build_and_deploy(
apps=[MYSQL_APP1],
status="active",
timeout=10 * MINUTE,
raise_on_error=False,
),
second_model.wait_for_idle(
apps=[MYSQL_APP2],
status="active",
timeout=10 * MINUTE,
raise_on_error=False,
),
)

Expand Down
1 change: 1 addition & 0 deletions tests/integration/high_availability/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async def test_deploy_latest(ops_test: OpsTest) -> None:
apps=[MYSQL_APP_NAME, TEST_APP_NAME],
status="active",
timeout=TIMEOUT,
raise_on_error=False,
)
assert len(ops_test.model.applications[MYSQL_APP_NAME].units) == 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async def test_deploy_stable(ops_test: OpsTest) -> None:
apps=[MYSQL_APP_NAME, TEST_APP_NAME],
status="active",
timeout=TIMEOUT,
raise_on_error=False,
)
assert len(ops_test.model.applications[MYSQL_APP_NAME].units) == 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None:
apps=[MYSQL_APP_NAME],
status="active",
timeout=TIMEOUT,
raise_on_error=False,
)


Expand Down
1 change: 1 addition & 0 deletions tests/integration/relations/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ async def test_build_and_deploy(ops_test: OpsTest):
status="active",
raise_on_blocked=True,
timeout=1000,
raise_on_error=False,
),
ops_test.model.wait_for_idle(
apps=[APPLICATION_APP_NAME],
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None:
raise_on_blocked=True,
timeout=TIMEOUT,
wait_for_exact_units=3,
raise_on_error=False,
)
assert len(ops_test.model.applications[APP_NAME].units) == 3

Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None:
status="active",
raise_on_blocked=True,
timeout=15 * 60,
raise_on_error=False,
)


Expand Down

0 comments on commit 91671dd

Please sign in to comment.