Skip to content

Commit be30eef

Browse files
committed
Verify HTTP scheme support in endpoint (#60).
1 parent 1e183a3 commit be30eef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_otel.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
ssl_certificate_key localhost.key;
2222
2323
otel_exporter {
24-
endpoint 127.0.0.1:14317;
24+
endpoint {{ scheme }}127.0.0.1:14317;
2525
interval {{ interval or "1ms" }};
2626
batch_size 3;
2727
batch_count 3;
@@ -239,7 +239,9 @@ def test_context(client, trace_service, parent, path):
239239

240240

241241
@pytest.mark.parametrize(
242-
"nginx_config", [({"interval": "200ms"})], indirect=True
242+
"nginx_config",
243+
[({"interval": "200ms", "scheme": "http://"})],
244+
indirect=True,
243245
)
244246
@pytest.mark.parametrize("batch_count", [1, 3])
245247
def test_batches(client, trace_service, batch_count):

0 commit comments

Comments
 (0)