Skip to content

Commit

Permalink
tests: revert to using IP
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 10, 2023
1 parent bafac3f commit 349d742
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,39 +189,39 @@ class TestOTelGenerateSpansOldClient:
"url, response",
[
pytest.param(
"https://localhost:8443/trace-off",
"https://127.0.0.1:8443/trace-off",
"TRACE-OFF",
id="trace-off",
),
pytest.param(
"https://localhost:8443/trace-on",
"https://127.0.0.1:8443/trace-on",
"TRACE-ON",
id="trace-on",
),
pytest.param(
"https://localhost:8443/context-ignore",
"https://127.0.0.1:8443/context-ignore",
"TRACE-OFF",
id="context-ignore",
),
pytest.param(
"https://localhost:8443/context-extract",
"https://127.0.0.1:8443/context-extract",
"TRACE-OFF",
id="context-extract",
),
pytest.param(
"https://localhost:8443/context-inject",
"https://127.0.0.1:8443/context-inject",
"TRACE-OFF",
id="context-inject",
),
pytest.param(
"https://localhost:8443/context-propagate",
"https://127.0.0.1:8443/context-propagate",
"TRACE-OFF",
id="context-propagate",
),
]
+ [
pytest.param(
"https://localhost:8443/trace-on",
"https://127.0.0.1:8443/trace-on",
"TRACE-ON",
id=f"bulk request {x}",
)
Expand Down Expand Up @@ -249,75 +249,75 @@ class TestOTelGenerateSpans:
"url, headers, response",
[
pytest.param(
"https://localhost:8443/trace-off",
"https://127.0.0.1:8443/trace-off",
None,
"TRACE-OFF",
id="trace-off",
),
pytest.param(
"https://localhost:8443/trace-on",
"https://127.0.0.1:8443/trace-on",
trace_headers,
"TRACE-ON",
id="trace-on with trace headers",
),
pytest.param(
"https://localhost:8443/trace-on",
"https://127.0.0.1:8443/trace-on",
None,
"TRACE-ON",
id="trace-on no trace headers over https",
),
pytest.param(
"https://localhost:8443/context-ignore",
"https://127.0.0.1:8443/context-ignore",
None,
"TRACE-OFF",
id="context-ignore no trace headers",
),
pytest.param(
"https://localhost:8443/context-ignore",
"https://127.0.0.1:8443/context-ignore",
trace_headers,
"TRACE-OFF",
id="context-ignore with trace headers",
),
pytest.param(
"https://localhost:8443/context-extract",
"https://127.0.0.1:8443/context-extract",
None,
"TRACE-OFF",
id="context-extract no trace headers",
),
pytest.param(
"https://localhost:8443/context-extract",
"https://127.0.0.1:8443/context-extract",
trace_headers,
"TRACE-OFF",
id="context-extract with trace headers",
),
pytest.param(
"https://localhost:8443/context-inject",
"https://127.0.0.1:8443/context-inject",
None,
"TRACE-OFF",
id="context-inject no trace headers",
),
pytest.param(
"https://localhost:8443/context-inject",
"https://127.0.0.1:8443/context-inject",
trace_headers,
"TRACE-OFF",
id="context-inject with trace headers",
),
pytest.param(
"https://localhost:8443/context-propagate",
"https://127.0.0.1:8443/context-propagate",
None,
"TRACE-OFF",
id="context-propagate no trace headers",
),
pytest.param(
"https://localhost:8443/context-propagate",
"https://127.0.0.1:8443/context-propagate",
trace_headers,
"TRACE-OFF",
id="context-propagate with trace headers",
),
]
+ [
pytest.param(
"https://localhost:8443/trace-on",
"https://127.0.0.1:8443/trace-on",
None,
"TRACE-ON",
id=f"bulk request {x}",
Expand Down

0 comments on commit 349d742

Please sign in to comment.