Skip to content
Draft
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
5 changes: 3 additions & 2 deletions tests/integration/test_kyuubi.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ async def test_deploy_kyuubi_setup(
# Deploy the postgresql charm and wait
hub_deploy_args = {
"application_name": POSTGRESQL_APP_NAME,
"channel": "14/stable",
"series": "jammy",
"channel": "16/edge",
"series": "noble",
"config": {"profile": "testing"},
"trust": True,
}
logger.info("Deploying postgresql charm...")
Expand Down
8 changes: 6 additions & 2 deletions tests/integration/test_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
fetch_action_database,
fetch_action_get_credentials,
)
from .juju_ import has_secrets

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -46,13 +47,16 @@ async def test_deploy(ops_test: OpsTest, app_charm: PosixPath, data_integrator_c
@pytest.mark.group(1)
async def test_deploy_and_relate_postgresql(ops_test: OpsTest, cloud_name: str):
"""Test the relation with PostgreSQL and database accessibility."""
channel = "16/edge" if has_secrets else "14/edge"
series = "noble" if has_secrets else "jammy"
await asyncio.gather(
ops_test.model.deploy(
POSTGRESQL[cloud_name],
channel="14/edge",
channel=channel,
application_name=POSTGRESQL[cloud_name],
num_units=1,
series="jammy",
series=series,
config={"profile": "testing"},
trust=True,
)
)
Expand Down