diff --git a/tests/integration/test_kyuubi.py b/tests/integration/test_kyuubi.py index bfebd79e..e713b8db 100644 --- a/tests/integration/test_kyuubi.py +++ b/tests/integration/test_kyuubi.py @@ -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...") diff --git a/tests/integration/test_postgresql.py b/tests/integration/test_postgresql.py index 7139094f..d3871a39 100644 --- a/tests/integration/test_postgresql.py +++ b/tests/integration/test_postgresql.py @@ -17,6 +17,7 @@ fetch_action_database, fetch_action_get_credentials, ) +from .juju_ import has_secrets logger = logging.getLogger(__name__) @@ -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, ) )