@@ -314,21 +314,36 @@ class WafMetricCollectorTest extends DDSpecification {
314314 raspRuleEval. value == 3
315315 raspRuleEval. namespace == ' appsec'
316316 raspRuleEval. metricName == ' rasp.rule.eval'
317- raspRuleEval. tags. toSet() == [' rule_type:command_injection' , ' rule_variant:' + ruleType. variant, ' waf_version:waf_ver1' ]. toSet()
317+ raspRuleEval. tags. toSet() == [
318+ ' rule_type:command_injection' ,
319+ ' rule_variant:' + ruleType. variant,
320+ ' waf_version:waf_ver1' ,
321+ ' event_rules_version:rules.1'
322+ ]. toSet()
318323
319324 def raspRuleMatch = (WafMetricCollector.RaspRuleMatch )metrics[2 ]
320325 raspRuleMatch. type == ' count'
321326 raspRuleMatch. value == 1
322327 raspRuleMatch. namespace == ' appsec'
323328 raspRuleMatch. metricName == ' rasp.rule.match'
324- raspRuleMatch. tags. toSet() == [' rule_type:command_injection' , ' rule_variant:' + ruleType. variant, ' waf_version:waf_ver1' ]. toSet()
329+ raspRuleMatch. tags. toSet() == [
330+ ' rule_type:command_injection' ,
331+ ' rule_variant:' + ruleType. variant,
332+ ' waf_version:waf_ver1' ,
333+ ' event_rules_version:rules.1'
334+ ]. toSet()
325335
326336 def raspTimeout = (WafMetricCollector.RaspTimeout )metrics[3 ]
327337 raspTimeout. type == ' count'
328338 raspTimeout. value == 1
329339 raspTimeout. namespace == ' appsec'
330340 raspTimeout. metricName == ' rasp.timeout'
331- raspTimeout. tags. toSet() == [' rule_type:command_injection' , ' rule_variant:' + ruleType. variant, ' waf_version:waf_ver1' ]. toSet()
341+ raspTimeout. tags. toSet() == [
342+ ' rule_type:command_injection' ,
343+ ' rule_variant:' + ruleType. variant,
344+ ' waf_version:waf_ver1' ,
345+ ' event_rules_version:rules.1'
346+ ]. toSet()
332347
333348 where :
334349 ruleType << [RuleType . COMMAND_INJECTION , RuleType . SHELL_INJECTION ]
0 commit comments