-
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.
- Loading branch information
Showing
21 changed files
with
279 additions
and
4 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
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/002_rule1_string_equals_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: "Basic run with equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule1-input: "arachn" | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/004_rule2_bool_equals_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: "Basic run with equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule2-input: true | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/006_rule3_signed_equals_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: "Basic run with equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: 42 | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/008_rule4_unsigned_equals_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: "Basic run with equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule4-input: 43 | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/010_rule5_double_equals_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: "Basic run with equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule5-input: 4.3 | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/equals/011_rule6_string_not_equals.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: "Basic run with not equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule6-input: "arachn" | ||
}, | ||
rules: [ | ||
{ | ||
6: [ | ||
{ | ||
address: rule6-input, | ||
value: "arachn" | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/012_rule6_string_not_equals_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: "Basic run with not equals operator and no match", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule6-input: "arachni" | ||
}, | ||
code: ok | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/equals/013_rule7_bool_not_equals.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: "Basic run with not equals operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule7-input: true | ||
}, | ||
rules: [ | ||
{ | ||
7: [ | ||
{ | ||
address: rule7-input, | ||
value: "true" | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/equals/014_rule7_bool_not_equals_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: "Basic run with not equals operator and no match", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule7-input: false | ||
}, | ||
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
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/exact_match/003_rule2_exact_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: "Basic run with negated exact_match operator", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule2-input: "something else or other" | ||
}, | ||
rules: [ | ||
{ | ||
2: [ | ||
{ | ||
address: rule2-input, | ||
value: "something else or other" | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/exact_match/004_rule2_no_exact_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: "Basic run with negated exact_match operator and no match", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule2-input: "something else" | ||
}, | ||
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
21 changes: 21 additions & 0 deletions
21
validator/tests/rules/operators/phrase_match/005_rule3_pm_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: "Basic run with negated phrase_match", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: "asjkdansdasdkjasndk" | ||
}, | ||
rules: [ | ||
{ | ||
3: [ | ||
{ | ||
address: rule3-input, | ||
value: "asjkdansdasdkjasndk", | ||
} | ||
] | ||
} | ||
], | ||
code: match | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
validator/tests/rules/operators/phrase_match/006_rule3_pm_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: "Basic run with negated phrase_match, no match", | ||
runs: [ | ||
{ | ||
persistent-input: { | ||
rule3-input: "asjkdansdstring00asdkjasndk" | ||
}, | ||
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