Skip to content

Commit d5a7e02

Browse files
committed
updating waf tests
Signed-off-by: Andreas Gkizas <andreas.gkizas@elastic.co>
1 parent 5382883 commit d5a7e02

File tree

2 files changed

+49
-4
lines changed

2 files changed

+49
-4
lines changed

packages/aws/data_stream/waf/_dev/test/system/test-default-config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ vars:
77
skip_ignored_fields:
88
- aws.waf.terminating_rule_match_details.location
99
- aws.waf.non_terminating_matching_rules.ruleMatchDetails.location
10-
- aws.waf.non_terminating_matching_rules.ruleMatchDetails.action
11-
- aws.waf.terminating_rule_match_details.conditionType
1210
- aws.waf.rule_group_list.nonTerminatingMatchingRules.ruleMatchDetails.location
13-
- aws.waf.rule_group_list.terminatingRule.ruleId
14-
- aws.waf.terminating_rule_match_details.matchedData
1511
data_stream:
1612
vars:
1713
queue_url: "{{TF_OUTPUT_queue_url}}"

packages/aws/data_stream/waf/fields/fields.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,59 @@
1313
type: nested
1414
description: |
1515
The list of non-terminating rules in the rule group that match the request. These are always COUNT rules (non-terminating rules that match)
16+
fields:
17+
- name: action
18+
type: keyword
19+
- name: ruleId
20+
type: keyword
21+
- name: ruleMatchDetails
22+
type: nested
23+
fields:
24+
- name: conditionType
25+
type: keyword
26+
- name: location
27+
type: keyword
28+
- name: matchedData
29+
type: keyword
30+
- name: rule_group_list
31+
type: nested
32+
fields:
33+
- name: nonTerminatingMatchingRules
34+
type: nested
35+
fields:
36+
- name: action
37+
type: keyword
38+
- name: ruleId
39+
type: keyword
40+
- name: ruleMatchDetails
41+
type: nested
42+
fields:
43+
- name: conditionType
44+
type: keyword
45+
- name: location
46+
type: keyword
47+
- name: matchedData
48+
type: keyword
49+
- name: ruleGroupId
50+
type: keyword
51+
- name: terminatingRule
52+
type: group
53+
fields:
54+
- name: action
55+
type: keyword
56+
- name: ruleId
57+
type: keyword
1658
- name: rate_based_rule_list
1759
type: nested
1860
description: |
1961
The list of rate-based rules that acted on the request.
62+
fields:
63+
- name: conditionType
64+
type: keyword
65+
- name: location
66+
type: keyword
67+
- name: matchedData
68+
type: keyword
2069
- name: request.headers
2170
type: flattened
2271
description: |

0 commit comments

Comments
 (0)