Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/integration/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
CASSANDRA_EXTRA_USER_ROLES = "ALTER,AUTHORIZE,DROP,MODIFY,SELECT,CREATE"

VALKEY = "valkey"
VALKEY_BASE = "ubuntu@26.04"
VALKEY_KEY_PREFIX = "client_application:"

MLFLOW = "mlflow-server"
Expand Down
10 changes: 8 additions & 2 deletions tests/integration/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ async def test_deploy_and_relate_mongodb(ops_test: OpsTest, cloud_name: str):
await ops_test.model.wait_for_idle(apps=[MONGODB[cloud_name]], wait_for_active=True)
assert ops_test.model.applications[MONGODB[cloud_name]].status == "active"
integrator_relation = await ops_test.model.add_relation(DATA_INTEGRATOR, MONGODB[cloud_name])
await ops_test.model.wait_for_idle(apps=[DATA_INTEGRATOR, MONGODB[cloud_name]])
assert ops_test.model.applications[DATA_INTEGRATOR].status == "active"
# mongodb-k8s reports active before its workload is up and skips client requests until the
# database is initialised, so wait for data-integrator to receive credentials
await ops_test.model.wait_for_idle(
apps=[DATA_INTEGRATOR, MONGODB[cloud_name]],
status="active",
idle_period=10,
timeout=1000,
)

# check if secrets are used on Juju3
assert await check_secrets_usage_matching_juju_version(
Expand Down
21 changes: 13 additions & 8 deletions tests/integration/test_valkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pytest
from pytest_operator.plugin import OpsTest

from .constants import APP, DATA_INTEGRATOR, VALKEY, VALKEY_KEY_PREFIX
from .constants import APP, DATA_INTEGRATOR, VALKEY, VALKEY_BASE, VALKEY_KEY_PREFIX
from .helpers import (
fetch_action_database,
fetch_action_get_credentials,
Expand All @@ -31,14 +31,19 @@ async def test_deploy(
}
await ops_test.model.set_config(model_config)

# python-libjuju does not know the ubuntu@26.04 base yet, so deploy Valkey through the CLI;
# without an explicit base, Juju picks the older ubuntu@24.04 revision from the channel
return_code, _, stderr = await ops_test.juju(
"deploy",
VALKEY,
"--channel=9/edge",
f"--base={VALKEY_BASE}",
"--num-units=3",
"--trust",
)
assert return_code == 0, f"Failed to deploy {VALKEY}: {stderr}"

await asyncio.gather(
ops_test.model.deploy(
VALKEY,
channel="9/edge",
application_name=VALKEY,
num_units=3,
trust=True,
),
ops_test.model.deploy(
data_integrator_charm, application_name="data-integrator", num_units=1, series="jammy"
),
Expand Down
2 changes: 2 additions & 0 deletions tests/spread/test_kafka.py/task.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
summary: test_kafka.py
# TODO: re-enable once the test moves to Kafka 4
manual: true
environment:
TEST_MODULE: test_kafka.py
execute: |
Expand Down
Loading