-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Negated scalar condition for matchers
- Loading branch information
Showing
8 changed files
with
218 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/ip_match/009-rule3_ipv4_cidr_match.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
name: "negated ip_match operator, match IPv4 CIDR", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: 192.187.25.1 | ||
}, | ||
rules: [ | ||
{ | ||
3: [ | ||
{ | ||
address: rule3-input, | ||
value: 192.187.25.1 | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/ip_match/010_rule3_ipv6_cidr_match.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
name: "negated ip_match operator, match IPv6 CIDR", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: "abce::1234:0:ab11:0" | ||
}, | ||
rules: [ | ||
{ | ||
3: [ | ||
{ | ||
address: rule3-input, | ||
value: "abce::1234:0:ab11:0" | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/ip_match/011_rule3_ipv4_cidr_no_match.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
name: "negated ip_match operator, no match on IPv4 CIDR", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: 192.188.25.1 | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/ip_match/012_rule3_ipv6_cidr_no_match.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
name: "negated ip_match operator, no match on IPv6 CIDR", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: "abcd::1234:0:ab11:0" | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters