Skip to content

Commit 1b9b684

Browse files
committed
error
1 parent 9185fdd commit 1b9b684

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal-api/src/test/groovy/datadog/trace/api/telemetry/WafMetricCollectorTest.groovy

+4-4
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class WafMetricCollectorTest extends DDSpecification {
176176
raspTimeout.metricName == 'rasp.timeout'
177177
raspTimeout.tags.toSet() == ['rule_type:sql_injection', 'waf_version:waf_ver1'].toSet()
178178

179-
def raspInvalidCode = (WafMetricCollector.RaspError)metrics[10]
179+
def raspInvalidCode = (WafMetricCollector.RaspError)metrics[11]
180180
raspInvalidCode.type == 'count'
181181
raspInvalidCode.value == 1
182182
raspInvalidCode.namespace == 'appsec'
@@ -189,7 +189,7 @@ class WafMetricCollectorTest extends DDSpecification {
189189
'waf_error:' + DD_WAF_RUN_INTERNAL_ERROR
190190
].toSet()
191191

192-
def wafInvalidCode = (WafMetricCollector.WafError)metrics[11]
192+
def wafInvalidCode = (WafMetricCollector.WafError)metrics[12]
193193
wafInvalidCode.type == 'count'
194194
wafInvalidCode.value == 1
195195
wafInvalidCode.namespace == 'appsec'
@@ -202,7 +202,7 @@ class WafMetricCollectorTest extends DDSpecification {
202202
'waf_error:' +DD_WAF_RUN_INTERNAL_ERROR
203203
].toSet()
204204

205-
def raspInvalidObjectCode = (WafMetricCollector.RaspError)metrics[12]
205+
def raspInvalidObjectCode = (WafMetricCollector.RaspError)metrics[13]
206206
raspInvalidObjectCode.type == 'count'
207207
raspInvalidObjectCode.value == 1
208208
raspInvalidObjectCode.namespace == 'appsec'
@@ -214,7 +214,7 @@ class WafMetricCollectorTest extends DDSpecification {
214214
]
215215
.toSet()
216216

217-
def wafInvalidObjectCode = (WafMetricCollector.WafError)metrics[13]
217+
def wafInvalidObjectCode = (WafMetricCollector.WafError)metrics[14]
218218
wafInvalidObjectCode.type == 'count'
219219
wafInvalidObjectCode.value == 1
220220
wafInvalidObjectCode.namespace == 'appsec'

0 commit comments

Comments
 (0)