Skip to content

Commit 4b1a69e

Browse files
Revert test fixture changes
1 parent a52a400 commit 4b1a69e

File tree

3 files changed

+6
-105
lines changed
  • dd-java-agent/instrumentation/junit-4.10/src/test/resources

3 files changed

+6
-105
lines changed

dd-java-agent/instrumentation/junit-4.10/src/test/resources/test-assumption-failure-during-suite-setup/events.ftl

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
"duration" : ${content_duration},
1111
"error" : 0,
1212
"metrics" : {
13-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count},
1413
"process_id" : ${content_metrics_process_id},
1514
"_dd.profiling.enabled" : 0,
1615
"_dd.trace_span_attribute_schema" : 0
1716
},
1817
"meta" : {
19-
"_dd.p.tid" : ${content_meta__dd_p_tid},
2018
"test.type" : "test",
2119
"_dd.tracer_host" : ${content_meta__dd_tracer_host},
2220
"test.status" : "skip",
@@ -46,11 +44,8 @@
4644
"start" : ${content_start_2},
4745
"duration" : ${content_duration_2},
4846
"error" : 0,
49-
"metrics" : {
50-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_2}
51-
},
47+
"metrics" : { },
5248
"meta" : {
53-
"_dd.p.tid" : ${content_meta__dd_p_tid_2},
5449
"test.type" : "test",
5550
"test.module" : "junit-4.10",
5651
"test.status" : "skip",
@@ -77,13 +72,8 @@
7772
"start" : ${content_start_3},
7873
"duration" : ${content_duration_3},
7974
"error" : 0,
80-
"metrics" : {
81-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_3},
82-
"test.source.end" : 19,
83-
"test.source.start" : 11
84-
},
75+
"metrics" : { },
8576
"meta" : {
86-
"_dd.p.tid" : ${content_meta__dd_p_tid_3},
8777
"test.type" : "test",
8878
"test.source.file" : "dummy_source_path",
8979
"test.module" : "junit-4.10",
@@ -92,7 +82,6 @@
9282
"test_session.name" : "session-name",
9383
"env" : "none",
9484
"dummy_ci_tag" : "dummy_ci_tag_value",
95-
"test.codeowners" : "[\"owner1\",\"owner2\"]",
9685
"library_version" : ${content_meta_library_version},
9786
"component" : "junit",
9887
"span.kind" : "test_suite_end",
@@ -121,7 +110,6 @@
121110
"process_id" : ${content_metrics_process_id},
122111
"_dd.profiling.enabled" : 0,
123112
"_dd.trace_span_attribute_schema" : 0,
124-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_4},
125113
"test.source.end" : 18,
126114
"test.source.start" : 12
127115
},
@@ -149,25 +137,4 @@
149137
"test.framework" : "junit4"
150138
}
151139
}
152-
}, {
153-
"type" : "span",
154-
"version" : 1,
155-
"content" : {
156-
"trace_id" : ${content_test_session_id},
157-
"span_id" : ${content_span_id_2},
158-
"parent_id" : ${content_test_suite_id},
159-
"service" : "worker.org.gradle.process.internal.worker.gradleworkermain",
160-
"name" : "suiteSetup",
161-
"resource" : "suiteSetup",
162-
"start" : ${content_start_5},
163-
"duration" : ${content_duration_5},
164-
"error" : 0,
165-
"metrics" : { },
166-
"meta" : {
167-
"_dd.p.tid" : ${content_meta__dd_p_tid_4},
168-
"test.callback" : "BeforeClass",
169-
"library_version" : ${content_meta_library_version},
170-
"env" : "none"
171-
}
172-
}
173140
} ]

dd-java-agent/instrumentation/junit-4.10/src/test/resources/test-suite-setup-failure/events.ftl

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
"duration" : ${content_duration},
1111
"error" : 0,
1212
"metrics" : {
13-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count},
1413
"process_id" : ${content_metrics_process_id},
1514
"_dd.profiling.enabled" : 0,
1615
"_dd.trace_span_attribute_schema" : 0
1716
},
1817
"meta" : {
19-
"_dd.p.tid" : ${content_meta__dd_p_tid},
2018
"test.type" : "test",
2119
"_dd.tracer_host" : ${content_meta__dd_tracer_host},
2220
"test.status" : "fail",
@@ -46,11 +44,8 @@
4644
"start" : ${content_start_2},
4745
"duration" : ${content_duration_2},
4846
"error" : 0,
49-
"metrics" : {
50-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_2}
51-
},
47+
"metrics" : { },
5248
"meta" : {
53-
"_dd.p.tid" : ${content_meta__dd_p_tid_2},
5449
"test.type" : "test",
5550
"test.module" : "junit-4.10",
5651
"test.status" : "fail",
@@ -77,21 +72,15 @@
7772
"start" : ${content_start_3},
7873
"duration" : ${content_duration_3},
7974
"error" : 1,
80-
"metrics" : {
81-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_3},
82-
"test.source.end" : 19,
83-
"test.source.start" : 11
84-
},
75+
"metrics" : { },
8576
"meta" : {
86-
"_dd.p.tid" : ${content_meta__dd_p_tid_3},
8777
"test.type" : "test",
8878
"test.source.file" : "dummy_source_path",
8979
"test.module" : "junit-4.10",
9080
"test.status" : "fail",
9181
"test_session.name" : "session-name",
9282
"env" : "none",
9383
"dummy_ci_tag" : "dummy_ci_tag_value",
94-
"test.codeowners" : "[\"owner1\",\"owner2\"]",
9584
"library_version" : ${content_meta_library_version},
9685
"component" : "junit",
9786
"error.type" : "java.lang.RuntimeException",
@@ -103,25 +92,4 @@
10392
"test.framework" : "junit4"
10493
}
10594
}
106-
}, {
107-
"type" : "span",
108-
"version" : 1,
109-
"content" : {
110-
"trace_id" : ${content_test_session_id},
111-
"span_id" : ${content_span_id},
112-
"parent_id" : ${content_test_suite_id},
113-
"service" : "worker.org.gradle.process.internal.worker.gradleworkermain",
114-
"name" : "suiteSetup",
115-
"resource" : "suiteSetup",
116-
"start" : ${content_start_4},
117-
"duration" : ${content_duration_4},
118-
"error" : 0,
119-
"metrics" : { },
120-
"meta" : {
121-
"_dd.p.tid" : ${content_meta__dd_p_tid_4},
122-
"test.callback" : "BeforeClass",
123-
"library_version" : ${content_meta_library_version},
124-
"env" : "none"
125-
}
126-
}
12795
} ]

dd-java-agent/instrumentation/junit-4.10/src/test/resources/test-suite-teardown-failure/events.ftl

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
"duration" : ${content_duration},
1111
"error" : 0,
1212
"metrics" : {
13-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count},
1413
"process_id" : ${content_metrics_process_id},
1514
"_dd.profiling.enabled" : 0,
1615
"_dd.trace_span_attribute_schema" : 0
1716
},
1817
"meta" : {
19-
"_dd.p.tid" : ${content_meta__dd_p_tid},
2018
"test.type" : "test",
2119
"_dd.tracer_host" : ${content_meta__dd_tracer_host},
2220
"test.status" : "fail",
@@ -46,11 +44,8 @@
4644
"start" : ${content_start_2},
4745
"duration" : ${content_duration_2},
4846
"error" : 0,
49-
"metrics" : {
50-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_2}
51-
},
47+
"metrics" : { },
5248
"meta" : {
53-
"_dd.p.tid" : ${content_meta__dd_p_tid_2},
5449
"test.type" : "test",
5550
"test.module" : "junit-4.10",
5651
"test.status" : "fail",
@@ -77,21 +72,15 @@
7772
"start" : ${content_start_3},
7873
"duration" : ${content_duration_3},
7974
"error" : 1,
80-
"metrics" : {
81-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_3},
82-
"test.source.end" : 19,
83-
"test.source.start" : 11
84-
},
75+
"metrics" : { },
8576
"meta" : {
86-
"_dd.p.tid" : ${content_meta__dd_p_tid_3},
8777
"test.type" : "test",
8878
"test.source.file" : "dummy_source_path",
8979
"test.module" : "junit-4.10",
9080
"test.status" : "fail",
9181
"test_session.name" : "session-name",
9282
"env" : "none",
9383
"dummy_ci_tag" : "dummy_ci_tag_value",
94-
"test.codeowners" : "[\"owner1\",\"owner2\"]",
9584
"library_version" : ${content_meta_library_version},
9685
"component" : "junit",
9786
"error.type" : "java.lang.RuntimeException",
@@ -123,7 +112,6 @@
123112
"process_id" : ${content_metrics_process_id},
124113
"_dd.profiling.enabled" : 0,
125114
"_dd.trace_span_attribute_schema" : 0,
126-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_4},
127115
"test.source.end" : 18,
128116
"test.source.start" : 12
129117
},
@@ -170,7 +158,6 @@
170158
"process_id" : ${content_metrics_process_id},
171159
"_dd.profiling.enabled" : 0,
172160
"_dd.trace_span_attribute_schema" : 0,
173-
"_dd.host.vcpu_count" : ${content_metrics__dd_host_vcpu_count_5},
174161
"test.source.end" : 18,
175162
"test.source.start" : 12
176163
},
@@ -197,25 +184,4 @@
197184
"test.framework" : "junit4"
198185
}
199186
}
200-
}, {
201-
"type" : "span",
202-
"version" : 1,
203-
"content" : {
204-
"trace_id" : ${content_test_session_id},
205-
"span_id" : ${content_span_id_3},
206-
"parent_id" : ${content_test_suite_id},
207-
"service" : "worker.org.gradle.process.internal.worker.gradleworkermain",
208-
"name" : "suiteTearDown",
209-
"resource" : "suiteTearDown",
210-
"start" : ${content_start_6},
211-
"duration" : ${content_duration_6},
212-
"error" : 0,
213-
"metrics" : { },
214-
"meta" : {
215-
"_dd.p.tid" : ${content_meta__dd_p_tid_4},
216-
"test.callback" : "AfterClass",
217-
"library_version" : ${content_meta_library_version},
218-
"env" : "none"
219-
}
220-
}
221187
} ]

0 commit comments

Comments
 (0)