From be30eeffc1761b8ffa9cc5c8b65f6dae6892bac1 Mon Sep 17 00:00:00 2001 From: Eugene Grebenschikov Date: Wed, 18 Dec 2024 16:52:30 -0800 Subject: [PATCH] Verify HTTP scheme support in endpoint (#60). --- tests/test_otel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_otel.py b/tests/test_otel.py index 5fbac517..10ce2fe8 100644 --- a/tests/test_otel.py +++ b/tests/test_otel.py @@ -21,7 +21,7 @@ ssl_certificate_key localhost.key; otel_exporter { - endpoint 127.0.0.1:14317; + endpoint {{ scheme }}127.0.0.1:14317; interval {{ interval or "1ms" }}; batch_size 3; batch_count 3; @@ -239,7 +239,9 @@ def test_context(client, trace_service, parent, path): @pytest.mark.parametrize( - "nginx_config", [({"interval": "200ms"})], indirect=True + "nginx_config", + [({"interval": "200ms", "scheme": "http://"})], + indirect=True, ) @pytest.mark.parametrize("batch_count", [1, 3]) def test_batches(client, trace_service, batch_count):