1
- package datadog.smoketest.asmstandalonebilling
1
+ package datadog.smoketest.apmtracingdisabled
2
2
3
3
import datadog.trace.api.sampling.PrioritySampling
4
4
import okhttp3.Request
5
5
6
- class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSmokeTest {
6
+ class ApmTracingDisabledMatrixSmokeTest extends AbstractApmTracingDisabledSmokeTest {
7
7
8
- static final String STANDALONE_BILLING_SERVICE_NAME = " asm-standalone-billing -matrix-smoketest-app"
9
- static final String STANDALONE_BILLING_SERVICE_NAME_2 = " asm-standalone-billing -matrix-smoketest-app2"
8
+ static final String APM_TRACING_DISABLED_SERVICE_NAME = " apm-tracing-disabled -matrix-smoketest-app"
9
+ static final String APM_TRACING_DISABLED_SERVICE_NAME_2 = " apm-tracing-disabled -matrix-smoketest-app2"
10
10
static final String APM_ENABLED_SERVICE_NAME = " apm-enabled-matrix-smoketest-app"
11
11
static final String ASM_ENABLED_SERVICE_NAME = " asm-enabled-matrix-smoketest-app"
12
12
13
- static final String [] STANDALONE_BILLING_PROPERTIES = [
14
- " -Ddd.experimental.appsec.standalone. enabled=true " ,
13
+ static final String [] APM_TRACING_DISABLED_PROPERTIES = [
14
+ " -Ddd.apm.tracing. enabled=false " ,
15
15
" -Ddd.iast.enabled=true" ,
16
16
" -Ddd.iast.detection.mode=FULL" ,
17
17
" -Ddd.iast.debug.enabled=true" ,
18
18
" -Ddd.trace.tracer.metrics.enabled=true" ,
19
- " -Ddd.service.name=${ STANDALONE_BILLING_SERVICE_NAME } " ,
19
+ " -Ddd.service.name=${ APM_TRACING_DISABLED_SERVICE_NAME } " ,
20
20
]
21
21
22
- static final String [] STANDALONE_BILLING_PROPERTIES_2 = [
23
- " -Ddd.experimental.appsec.standalone. enabled=true " ,
22
+ static final String [] APM_TRACING_DISABLED_PROPERTIES_2 = [
23
+ " -Ddd.apm.tracing. enabled=false " ,
24
24
" -Ddd.iast.enabled=true" ,
25
25
" -Ddd.iast.detection.mode=FULL" ,
26
26
" -Ddd.iast.debug.enabled=true" ,
27
27
" -Ddd.trace.tracer.metrics.enabled=true" ,
28
- " -Ddd.service.name=${ STANDALONE_BILLING_SERVICE_NAME_2 } " ,
28
+ " -Ddd.service.name=${ APM_TRACING_DISABLED_SERVICE_NAME_2 } " ,
29
29
]
30
30
31
31
static final String [] APM_ENABLED_PROPERTIES = [" -Ddd.service.name=${ APM_ENABLED_SERVICE_NAME} " , " -Ddd.trace.tracer.metrics.enabled=true" ,]
@@ -46,13 +46,13 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
46
46
ProcessBuilder createProcessBuilder (int processIndex ) {
47
47
switch (processIndex) {
48
48
case 0 :
49
- return createProcess(processIndex, STANDALONE_BILLING_PROPERTIES )
49
+ return createProcess(processIndex, APM_TRACING_DISABLED_PROPERTIES )
50
50
case 1 :
51
51
return createProcess(processIndex, APM_ENABLED_PROPERTIES )
52
52
case 2 :
53
53
return createProcess(processIndex, ASM_ENABLED_PROPERTIES )
54
54
case 3 :
55
- return createProcess(processIndex, STANDALONE_BILLING_PROPERTIES_2 )
55
+ return createProcess(processIndex, APM_TRACING_DISABLED_PROPERTIES_2 )
56
56
default :
57
57
throw new IllegalArgumentException (" Invalid process index: ${ processIndex} " )
58
58
}
@@ -82,7 +82,7 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
82
82
! hasApmDisabledTag (upstreamTrace)
83
83
84
84
and :" No ASM events, resulting in the local sampling decision"
85
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
85
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
86
86
isSampledBySampler(standAloneBillingTrace)
87
87
! hasAppsecPropagationTag (standAloneBillingTrace)
88
88
hasApmDisabledTag (standAloneBillingTrace)
@@ -118,7 +118,7 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
118
118
! hasApmDisabledTag (upstreamTrace)
119
119
120
120
and :" ASM events"
121
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
121
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
122
122
checkRootSpanPrioritySampling(standAloneBillingTrace, PrioritySampling . USER_KEEP )
123
123
hasAppsecPropagationTag (standAloneBillingTrace)
124
124
hasApmDisabledTag (standAloneBillingTrace)
@@ -154,7 +154,7 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
154
154
! hasApmDisabledTag (upstreamTrace)
155
155
156
156
and :" No ASM events, resulting in the local sampling decision"
157
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
157
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
158
158
isSampledBySampler(standAloneBillingTrace)
159
159
! hasAppsecPropagationTag (standAloneBillingTrace)
160
160
hasApmDisabledTag (standAloneBillingTrace)
@@ -184,13 +184,13 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
184
184
waitForTraceCount(3 )
185
185
186
186
and : " Upstream standalone ASM service having ASM events result in force keep and propagation of the tag"
187
- def upstreamTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME_2 )
187
+ def upstreamTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME_2 )
188
188
checkRootSpanPrioritySampling(upstreamTrace, PrioritySampling . USER_KEEP )
189
189
hasAppsecPropagationTag (upstreamTrace)
190
190
hasApmDisabledTag (upstreamTrace)
191
191
192
192
and :" standalone service must keep the local trace with the local sampling priority"
193
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
193
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
194
194
checkRootSpanPrioritySampling(standAloneBillingTrace, PrioritySampling . USER_KEEP )
195
195
hasAppsecPropagationTag (standAloneBillingTrace)
196
196
hasApmDisabledTag (standAloneBillingTrace)
@@ -224,11 +224,11 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
224
224
def upstreamTraceId = getServiceTrace(APM_ENABLED_SERVICE_NAME ). spans[0 ]. traceId
225
225
226
226
and : ' No ASM events, resulting in the local sampling decision'
227
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
227
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
228
228
isSampledBySampler(standAloneBillingTrace)
229
229
! hasAppsecPropagationTag (standAloneBillingTrace)
230
230
hasApmDisabledTag (standAloneBillingTrace)
231
- def standAloneBillingTraceId = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME ). spans[0 ]. traceId
231
+ def standAloneBillingTraceId = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME ). spans[0 ]. traceId
232
232
upstreamTraceId == standAloneBillingTraceId // There is propagation
233
233
234
234
and : ' Propagation is stopped'
@@ -255,18 +255,18 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
255
255
waitForTraceCount(3)
256
256
257
257
and: ' Upstream ASM events'
258
- def upstreamTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME_2 )
258
+ def upstreamTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME_2 )
259
259
checkRootSpanPrioritySampling(upstreamTrace, PrioritySampling.USER_KEEP)
260
260
hasAppsecPropagationTag (upstreamTrace)
261
261
hasApmDisabledTag (upstreamTrace)
262
- def upstreamTraceId = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME_2 ).spans[0].traceId
262
+ def upstreamTraceId = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME_2 ).spans[0].traceId
263
263
264
264
and: ' No ASM events, resulting in the local sampling decision'
265
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
265
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
266
266
checkRootSpanPrioritySampling(standAloneBillingTrace, PrioritySampling.USER_KEEP)
267
267
hasAppsecPropagationTag (standAloneBillingTrace)
268
268
hasApmDisabledTag (standAloneBillingTrace)
269
- def standAloneBillingTraceId = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME ).spans[0].traceId
269
+ def standAloneBillingTraceId = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME ).spans[0].traceId
270
270
upstreamTraceId == standAloneBillingTraceId //There is propagation
271
271
272
272
and: ' Default APM distributed tracing behavior with'
@@ -300,11 +300,11 @@ class AsmStandaloneBillingMatrixSmokeTest extends AbstractAsmStandaloneBillingSm
300
300
def upstreamTraceId = getServiceTrace(APM_ENABLED_SERVICE_NAME).spans[0].traceId
301
301
302
302
and: ' ASM events, resulting in force keep and appsec propagation'
303
- def standAloneBillingTrace = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME )
303
+ def standAloneBillingTrace = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME )
304
304
checkRootSpanPrioritySampling(standAloneBillingTrace, PrioritySampling.USER_KEEP)
305
305
hasAppsecPropagationTag (standAloneBillingTrace)
306
306
hasApmDisabledTag (standAloneBillingTrace)
307
- def standAloneBillingTraceId = getServiceTrace(STANDALONE_BILLING_SERVICE_NAME ).spans[0].traceId
307
+ def standAloneBillingTraceId = getServiceTrace(APM_TRACING_DISABLED_SERVICE_NAME ).spans[0].traceId
308
308
upstreamTraceId == standAloneBillingTraceId //There is propagation
309
309
310
310
and: ' Default APM distributed tracing behavior with'
0 commit comments