Skip to content

Commit 9cceda6

Browse files
committed
fixup! Add scheme support for otel endpoint.
1 parent 1bbb75a commit 9cceda6

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

tests/test_otel.py

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,8 @@ def response(logger, http_ver, otel_mode, url, headers):
218218
@pytest.mark.parametrize(
219219
("nginx_config", "http_ver", "otel_mode"),
220220
[
221-
(
222-
{"port": 4317, "scheme": "", "name": "http0", "mode": "ssl"},
223-
0,
224-
0,
225-
),
226-
(
227-
{"port": 8317, "scheme": "", "name": "http0", "mode": "ssl"},
228-
0,
229-
1,
230-
),
221+
({"port": 4317, "name": "http0", "mode": "ssl"}, 0, 0),
222+
({"port": 8317, "name": "http0", "mode": "ssl"}, 0, 1),
231223
(
232224
{"port": 4317, "scheme": "http://", "name": "http1", "mode": "ssl"},
233225
1,
@@ -238,26 +230,10 @@ def response(logger, http_ver, otel_mode, url, headers):
238230
1,
239231
1,
240232
),
241-
(
242-
{"port": 4317, "scheme": "", "name": "http2", "mode": "ssl http2"},
243-
2,
244-
0,
245-
),
246-
(
247-
{"port": 8317, "scheme": "", "name": "http2", "mode": "ssl http2"},
248-
2,
249-
1,
250-
),
251-
(
252-
{"port": 4317, "scheme": "", "name": "http3", "mode": "quic"},
253-
3,
254-
0,
255-
),
256-
(
257-
{"port": 8317, "scheme": "", "name": "http3", "mode": "quic"},
258-
3,
259-
1,
260-
),
233+
({"port": 4317, "name": "http2", "mode": "ssl http2"}, 2, 0),
234+
({"port": 8317, "name": "http2", "mode": "ssl http2"}, 2, 1),
235+
({"port": 4317, "name": "http3", "mode": "quic"}, 3, 0),
236+
({"port": 8317, "name": "http3", "mode": "quic"}, 3, 1),
261237
],
262238
indirect=["nginx_config"],
263239
ids=["https 0.9-to mock", "https 0.9-to otelcol"]

0 commit comments

Comments
 (0)