Skip to content

Commit 5b3627b

Browse files
Skip data integrator tests on focal
1 parent 8293c94 commit 5b3627b

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

tests/integration/markers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2024 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
4+
import pytest
5+
6+
from . import juju_
7+
8+
only_with_juju_secrets = pytest.mark.skipif(
9+
not juju_.has_secrets, reason="Requires juju version w/secrets"
10+
)

tests/integration/test_data_integrator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
import pytest
1010
from pytest_operator.plugin import OpsTest
1111

12-
from . import juju_
1312
from .helpers import execute_queries_against_unit, get_tls_certificate_issuer
13+
from . import juju_
14+
from . import markers
1415

1516
logger = logging.getLogger(__name__)
1617

@@ -41,6 +42,7 @@ async def get_data_integrator_credentials(ops_test: OpsTest) -> typing.Dict:
4142

4243
@pytest.mark.group(1)
4344
@pytest.mark.abort_on_fail
45+
@markers.only_with_juju_secrets
4446
async def test_external_connectivity_with_data_integrator(
4547
ops_test: OpsTest, mysql_router_charm_series: str
4648
) -> None:
@@ -103,6 +105,7 @@ async def test_external_connectivity_with_data_integrator(
103105

104106
@pytest.mark.group(1)
105107
@pytest.mark.abort_on_fail
108+
@markers.only_with_juju_secrets
106109
async def test_external_connectivity_with_data_integrator_and_tls(ops_test: OpsTest) -> None:
107110
"""Test data integrator along with TLS operator"""
108111
logger.info("Ensuring no data exists in the test database")

tests/integration/test_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async def test_exporter_endpoint_with_tls(ops_test: OpsTest) -> None:
178178

179179
await ops_test.model.wait_for_idle([TLS_APP_NAME], status="active", timeout=SLOW_TIMEOUT)
180180

181-
logger.info(f"Relation mysqlrouter with {TLS_APP_NAME}")
181+
logger.info(f"Relating mysqlrouter with {TLS_APP_NAME}")
182182

183183
await ops_test.model.relate(
184184
f"{MYSQL_ROUTER_APP_NAME}:certificates", f"{TLS_APP_NAME}:certificates"

0 commit comments

Comments
 (0)