-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Khanayan123/add consistent config system tests #3745
Changes from all commits
93b06c3
3b647ce
e5122ef
5fae302
4e3a3f8
03b4393
7aed866
4f452e6
01c7df0
a7e3218
fa5f72b
f076206
a8cdf0f
cd83c49
9720599
88cf28b
b9141bf
c4f5b47
1a886f3
06a3e98
df7fbf9
9f252b0
aa01333
7015b1b
5ecd9bb
fe2311a
a7d1d92
1974004
8b1007a
bbdbb6f
7a6d5e8
0ace883
8a33a1f
e7572bb
1dbd672
59e0b4c
1606a5a
d70d7dd
3b24397
5ff75f3
b9961e7
9b0ab11
c18b713
b27ba4f
124beee
f24b586
42df4aa
bdcfa58
a12ccb5
849811e
b683c21
1040fe4
f160669
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ def test_datadog_128_bit_generation_enabled(self, test_agent, test_library): | |
|
||
@missing_feature(context.library == "golang", reason="not implemented") | ||
@missing_feature(context.library < "[email protected]", reason="Implemented in 1.24.0") | ||
@missing_feature(context.library == "nodejs", reason="not implemented") | ||
@missing_feature(context.library < "nodejs@4.19.0", reason="Implemented in 4.19.0 & 3.40.0") | ||
@missing_feature(context.library == "ruby", reason="not implemented") | ||
@pytest.mark.parametrize("library_env", [{"DD_TRACE_PROPAGATION_STYLE": "Datadog"}]) | ||
def test_datadog_128_bit_generation_enabled_by_default(self, test_agent, test_library): | ||
simon-id marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -383,6 +383,7 @@ def test_w3c_128_bit_propagation(self, test_agent, test_library): | |
assert dd_p_tid == "640cfd8d00000000" | ||
check_128_bit_trace_id(fields[1], trace_id, dd_p_tid) | ||
|
||
@missing_feature(context.library < "[email protected]", reason="implemented in 5.7.0 & 4.31.0") | ||
@missing_feature(context.library == "ruby", reason="not implemented") | ||
@pytest.mark.parametrize( | ||
"library_env", | ||
|
@@ -409,8 +410,6 @@ def test_w3c_128_bit_propagation_tid_consistent(self, test_agent, test_library): | |
assert propagation_error is None | ||
|
||
@missing_feature(context.library == "ruby", reason="not implemented") | ||
@missing_feature(context.library == "nodejs", reason="not implemented") | ||
@missing_feature(context.library == "java", reason="not implemented") | ||
@pytest.mark.parametrize( | ||
"library_env", | ||
[{"DD_TRACE_PROPAGATION_STYLE": "tracecontext", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "true"}], | ||
|
@@ -422,6 +421,26 @@ def test_w3c_128_bit_propagation_tid_in_chunk_root(self, test_agent, test_librar | |
with test_library.dd_start_span(name="child", service="service", parent_id=parent.span_id) as child: | ||
pass | ||
|
||
traces = test_agent.wait_for_num_traces(1, clear=True, sort_by_start=False) | ||
trace = find_trace(traces, parent.trace_id) | ||
assert len(trace) == 2 | ||
first_span = find_first_span_in_trace_payload(trace) | ||
tid_chunk_root = first_span["meta"].get("_dd.p.tid") | ||
assert tid_chunk_root is not None | ||
|
||
@missing_feature(context.library == "ruby", reason="not implemented") | ||
@missing_feature(context.library == "java", reason="not implemented") | ||
@pytest.mark.parametrize( | ||
"library_env", | ||
[{"DD_TRACE_PROPAGATION_STYLE": "tracecontext", "DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED": "true"}], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test in the file test_datadog_128_bit_generation_enabled_by_default already verifies that 128-bit generation is enabled by default. Other tests explicitly configure this setting to ensure that other aspects of the feature can be tested, even in scenarios where the language may not enable this functionality by default There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm.. okay. Like we don't care whether DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED is true by default in this test, we just want to check what the behavior is when it is enabled? I don't think we do that for other tests, but this isn't a blocker, it's fine. Maybe add a comment or something |
||
) | ||
def test_w3c_128_bit_propagation_tid_only_in_chunk_root(self, test_agent, test_library): | ||
"""Ensure that only root span contains the tid.""" | ||
with test_library: | ||
with test_library.dd_start_span(name="parent", service="service", resource="resource") as parent: | ||
with test_library.dd_start_span(name="child", service="service", parent_id=parent.span_id) as child: | ||
pass | ||
|
||
traces = test_agent.wait_for_num_traces(1, clear=True, sort_by_start=False) | ||
trace = find_trace(traces, parent.trace_id) | ||
assert len(trace) == 2 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of missing feature can we use
system-tests/docs/edit/skip-tests.md
Line 5 in 25c79a3