Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-4811] Disable Postgresql tests for 3.1 #58

Merged
merged 1 commit into from
Jul 10, 2024
Merged
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
9 changes: 9 additions & 0 deletions tests/integration/test_postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
@pytest.mark.group(1)
@pytest.mark.abort_on_fail
async def test_deploy(ops_test: OpsTest, app_charm: PosixPath, data_integrator_charm: PosixPath):
if (await ops_test.model.get_status()).model.version.startswith("3.1."):
pytest.skip("Test is incompatible with Juju 3.1")

await asyncio.gather(
ops_test.model.deploy(
data_integrator_charm, application_name="data-integrator", num_units=1, series="jammy"
Expand All @@ -46,6 +49,9 @@ 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."""
if (await ops_test.model.get_status()).model.version.startswith("3.1."):
pytest.skip("Test is incompatible with Juju 3.1")

await asyncio.gather(
ops_test.model.deploy(
POSTGRESQL[cloud_name],
Expand Down Expand Up @@ -143,6 +149,9 @@ async def test_deploy_and_relate_postgresql(ops_test: OpsTest, cloud_name: str):
@pytest.mark.group(1)
async def test_deploy_and_relate_pgbouncer(ops_test: OpsTest, cloud_name: str):
"""Test the relation with PgBouncer and database accessibility."""
if (await ops_test.model.get_status()).model.version.startswith("3.1."):
pytest.skip("Test is incompatible with Juju 3.1")

logger.info(f"Test the relation with {PGBOUNCER[cloud_name]}.")
num_units = 0 if cloud_name == "localhost" else 1
await asyncio.gather(
Expand Down