Skip to content

Commit 449bdd7

Browse files
tag
1 parent 37c2e0a commit 449bdd7

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

tests/ci_visibility/test_quarantine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ def test_quarantine_tags_set(self):
5252
test.finish_test(TestStatus.FAIL)
5353
session.finish()
5454

55-
assert test._span.get_tag("test.quarantine.is_quarantined") == "true"
55+
assert test._span.get_tag("test.management.is_quarantined") == "true"
5656
assert session._span.get_tag("test_session.quarantine.enabled") == "true"

tests/contrib/pytest/test_pytest_disabling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,17 @@ def test_disabling(self):
197197
# [suite_span_pass_quarantined] = _get_spans_from_list(spans, "suite", "test_pass_quarantined.py")
198198

199199
# [test_span_fail_quarantined] = _get_spans_from_list(spans, "test", "test_fail_quarantined")
200-
# assert test_span_fail_quarantined.get_tag("test.quarantine.is_quarantined") == "true"
200+
# assert test_span_fail_quarantined.get_tag("test.management.is_quarantined") == "true"
201201
# assert test_span_fail_quarantined.get_tag("test.status") == "skip"
202202

203203
# [test_span_pass_quarantined] = _get_spans_from_list(spans, "test", "test_pass_quarantined")
204-
# assert test_span_pass_quarantined.get_tag("test.quarantine.is_quarantined") == "true"
204+
# assert test_span_pass_quarantined.get_tag("test.management.is_quarantined") == "true"
205205
# assert test_span_pass_quarantined.get_tag("test.status") == "skip"
206206

207207
# [test_span_fail_setup] = _get_spans_from_list(spans, "test", "test_fail_setup")
208-
# assert test_span_fail_setup.get_tag("test.quarantine.is_quarantined") == "true"
208+
# assert test_span_fail_setup.get_tag("test.management.is_quarantined") == "true"
209209
# assert test_span_fail_setup.get_tag("test.status") == "skip"
210210

211211
# [test_span_fail_teardown] = _get_spans_from_list(spans, "test", "test_fail_teardown")
212-
# assert test_span_fail_teardown.get_tag("test.quarantine.is_quarantined") == "true"
212+
# assert test_span_fail_teardown.get_tag("test.management.is_quarantined") == "true"
213213
# assert test_span_fail_teardown.get_tag("test.status") == "skip"

tests/contrib/pytest/test_pytest_quarantine.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_failing_and_passing_quarantined_and_unquarantined_tests(self):
159159
def test_env_var_disables_quarantine(self):
160160
self.testdir.makepyfile(test_fail_quarantined=_TEST_FAIL_QUARANTINED)
161161

162-
rec = self.inline_run("--ddtrace", "-q", extra_env={"DD_TEST_QUARANTINE_ENABLED": "0"})
162+
rec = self.inline_run("--ddtrace", "-q", extra_env={"DD_TEST_MANAGEMENT_ENABLED": "0"})
163163

164164
assert rec.ret == 1
165165
assert_stats(rec, quarantined=0, failed=1)
@@ -178,7 +178,7 @@ def test_env_var_does_not_override_api(self):
178178
test_management=TestManagementSettings(enabled=False),
179179
),
180180
):
181-
rec = self.inline_run("--ddtrace", "-q", extra_env={"DD_TEST_QUARANTINE_ENABLED": "1"})
181+
rec = self.inline_run("--ddtrace", "-q", extra_env={"DD_TEST_MANAGEMENT_ENABLED": "1"})
182182

183183
assert rec.ret == 1
184184
assert_stats(rec, failed=1)
@@ -270,11 +270,11 @@ def test_quarantine_spans_without_atr(self):
270270
[suite_span_pass_quarantined] = _get_spans_from_list(spans, "suite", "test_pass_quarantined.py")
271271

272272
[test_span_fail_quarantined] = _get_spans_from_list(spans, "test", "test_fail_quarantined")
273-
assert test_span_fail_quarantined.get_tag("test.quarantine.is_quarantined") == "true"
273+
assert test_span_fail_quarantined.get_tag("test.management.is_quarantined") == "true"
274274
assert test_span_fail_quarantined.get_tag("test.status") == "fail"
275275

276276
[test_span_pass_quarantined] = _get_spans_from_list(spans, "test", "test_pass_quarantined")
277-
assert test_span_pass_quarantined.get_tag("test.quarantine.is_quarantined") == "true"
277+
assert test_span_pass_quarantined.get_tag("test.management.is_quarantined") == "true"
278278
assert test_span_pass_quarantined.get_tag("test.status") == "pass"
279279

280280
def test_quarantine_spans_with_atr(self):
@@ -304,11 +304,11 @@ def test_quarantine_spans_with_atr(self):
304304

305305
test_spans_fail_quarantined = _get_spans_from_list(spans, "test", "test_fail_quarantined")
306306
assert len(test_spans_fail_quarantined) == 6
307-
assert all(span.get_tag("test.quarantine.is_quarantined") == "true" for span in test_spans_fail_quarantined)
307+
assert all(span.get_tag("test.management.is_quarantined") == "true" for span in test_spans_fail_quarantined)
308308
assert all(span.get_tag("test.status") == "fail" for span in test_spans_fail_quarantined)
309309
assert test_spans_fail_quarantined[0].get_tag("test.is_retry") is None
310310
assert all(span.get_tag("test.is_retry") for span in test_spans_fail_quarantined[1:])
311311

312312
[test_span_pass_quarantined] = _get_spans_from_list(spans, "test", "test_pass_quarantined")
313-
assert test_span_pass_quarantined.get_tag("test.quarantine.is_quarantined") == "true"
313+
assert test_span_pass_quarantined.get_tag("test.management.is_quarantined") == "true"
314314
assert test_span_pass_quarantined.get_tag("test.status") == "pass"

0 commit comments

Comments
 (0)