diff --git a/tests/scenario/test_machine_charm/conftest.py b/tests/scenario/test_machine_charm/conftest.py index 78169f3..b5831f8 100644 --- a/tests/scenario/test_machine_charm/conftest.py +++ b/tests/scenario/test_machine_charm/conftest.py @@ -3,6 +3,7 @@ from unittest.mock import PropertyMock, patch import pytest +from charms.tempo_coordinator_k8s.v0.charm_tracing import charm_tracing_disabled @pytest.fixture @@ -39,3 +40,9 @@ def mock_refresh(): @pytest.fixture(params=CONFIG_MATRIX) def charm_config(request): return request.param + + +@pytest.fixture(autouse=True) +def mock_charm_tracing(): + with charm_tracing_disabled(): + yield diff --git a/tests/scenario/test_machine_charm/test_tracing_configuration.py b/tests/scenario/test_machine_charm/test_tracing_configuration.py index 3ef2738..a6f05a5 100644 --- a/tests/scenario/test_machine_charm/test_tracing_configuration.py +++ b/tests/scenario/test_machine_charm/test_tracing_configuration.py @@ -75,7 +75,10 @@ def test_tracing_sampling_config_is_present( "tracing", remote_app_data=TracingProviderAppData( receivers=[ - Receiver(protocol={"name": "otlp_grpc", "type": "grpc"}, url="http:foo.com:1111") + Receiver(protocol={"name": "otlp_grpc", "type": "grpc"}, url="http:foo.com:1111"), + Receiver( + protocol={"name": "otlp_http", "type": "http"}, url="http://localhost:1112" + ), ] ).dump(), )