Skip to content

Commit f5b17dc

Browse files
authored
[MISC] Use test app beta for isolated test (#1032)
* Use postgresql-test-app from latestl/beta in spaces test. * Re-enable test_ugprade.py test. * Bump lock to trigger release on merge.
1 parent 695fb93 commit f5b17dc

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

poetry.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ opentelemetry-exporter-otlp-proto-http = "1.21.0"
3939
optional = true
4040

4141
[tool.poetry.group.format.dependencies]
42-
ruff = "^0.12.1"
42+
ruff = "^0.12.2"
4343

4444
[tool.poetry.group.lint]
4545
optional = true

tests/integration/spaces/test_spaced_database.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_integrate_with_isolated_space(juju: jubilant.Juju):
7878
juju.deploy(
7979
APP_NAME,
8080
app=ISOLATED_APP_NAME,
81-
channel="latest/edge",
81+
channel="latest/beta",
8282
constraints={"spaces": "isolated"},
8383
bind={"database": "isolated"},
8484
)
@@ -88,7 +88,9 @@ def test_integrate_with_isolated_space(juju: jubilant.Juju):
8888
juju.integrate(PG_NAME, f"{ISOLATED_APP_NAME}:database")
8989
sleep(SLEEP_TIME)
9090
# Wait for the relation to be established
91-
juju.wait(lambda status: status.apps[PG_NAME].is_active, delay=SLEEP_TIME)
91+
juju.wait(
92+
lambda status: jubilant.all_active(status, PG_NAME, ISOLATED_APP_NAME), delay=SLEEP_TIME
93+
)
9294

9395
status = juju.status()
9496
unit = next(iter(status.apps[ISOLATED_APP_NAME].units))

tests/spread/test_upgrade.py/task.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ execute: |
55
tox run -e integration -- "tests/integration/$TEST_MODULE" --model testing --alluredir="$SPREAD_TASK/allure-results"
66
artifacts:
77
- allure-results
8-
systems:
9-
- -ubuntu-24.04
10-
- -ubuntu-24.04-arm

0 commit comments

Comments
 (0)