Skip to content

Commit f1cc753

Browse files
.
1 parent 9bbf1a2 commit f1cc753

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎tests/integrations/otlp/test_otlp.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def test_sets_new_tracer_provider_with_otlp_exporter(sentry_init):
8484
)
8585

8686
if OTLP_EXPORTER_VERSION is not None and OTLP_EXPORTER_VERSION >= (1, 45):
87-
assert "X-Sentry-Auth" in exporter._client._headers
87+
assert "x-sentry-auth" in exporter._client._headers
8888
assert (
8989
"Sentry sentry_key=mysecret, sentry_version=7, sentry_client=sentry.python/"
90-
in exporter._client._headers["X-Sentry-Auth"]
90+
in exporter._client._headers["x-sentry-auth"]
9191
)
9292
return
9393

@@ -121,10 +121,10 @@ def test_uses_existing_tracer_provider_with_otlp_exporter(sentry_init):
121121
== "https://bla.ingest.sentry.io/api/12312012/integration/otlp/v1/traces/"
122122
)
123123
if OTLP_EXPORTER_VERSION is not None and OTLP_EXPORTER_VERSION >= (1, 45):
124-
assert "X-Sentry-Auth" in exporter._client._headers
124+
assert "x-sentry-auth" in exporter._client._headers
125125
assert (
126126
"Sentry sentry_key=mysecret, sentry_version=7, sentry_client=sentry.python/"
127-
in exporter._client._headers["X-Sentry-Auth"]
127+
in exporter._client._headers["x-sentry-auth"]
128128
)
129129
return
130130

@@ -278,7 +278,7 @@ def test_collector_url_sets_endpoint(sentry_init):
278278
if OTLP_EXPORTER_VERSION is not None and OTLP_EXPORTER_VERSION >= (1, 45):
279279
assert (
280280
exporter._client._headers is None
281-
or "X-Sentry-Auth" not in exporter._client._headers
281+
or "x-sentry-auth" not in exporter._client._headers
282282
)
283283
return
284284

@@ -325,7 +325,8 @@ def test_collector_url_none_falls_back_to_dsn(sentry_init):
325325
)
326326

327327
if OTLP_EXPORTER_VERSION is not None and OTLP_EXPORTER_VERSION >= (1, 45):
328-
assert "X-Sentry-Auth" in exporter._client._headers
328+
assert "x-sentry-auth" in exporter._client._headers
329+
return
329330

330331
assert "X-Sentry-Auth" in exporter._headers
331332

0 commit comments

Comments
 (0)