Skip to content

Commit

Permalink
tests: Fixups for 6.0.x
Browse files Browse the repository at this point in the history
Issue: 6549

Fixups for the tests for 6.0.x. The dsize/bsize validation message
format has changed so the checks in the test.yaml are being updatd.
  • Loading branch information
jlucovsky committed Nov 28, 2023
1 parent 4de2a8c commit 5d2e291
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/test-bad-content-dsize-rule-1/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 5.0.0
min-version: 6.0.16
lt-version: 7

features:
Expand All @@ -15,7 +15,7 @@ checks:
count: 1
match:
event_type: engine
engine.message: "signature can't match as content length 30 is bigger than dsize 10."
engine.message: "signature can't match as required content length 30 exceeds dsize value 10"

- filter:
count: 1
Expand Down
4 changes: 2 additions & 2 deletions tests/test-bad-dsize-offset-rule-1/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 5.0.0
min-version: 6.0.16
lt-version: 7

features:
Expand All @@ -15,7 +15,7 @@ checks:
count: 1
match:
event_type: engine
engine.message: "signature can't match as content length 2 with offset 100 (=102) is bigger than dsize 50."
engine.message: "signature can't match as required content length 102 exceeds dsize value 50"


- filter:
Expand Down
4 changes: 2 additions & 2 deletions tests/test-bad-dsize-range-offset-rule-1/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 5.0.0
min-version: 6.0.16
lt-version: 7

features:
Expand All @@ -15,7 +15,7 @@ checks:
count: 1
match:
event_type: engine
engine.message: "signature can't match as content length 4 with offset 8 (=12) is bigger than dsize 10."
engine.message: "signature can't match as required content length 12 exceeds dsize value 10"

- filter:
count: 1
Expand Down
4 changes: 2 additions & 2 deletions tests/test-bad-dsize-range-rule-1/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requires:
min-version: 5.0.0
min-version: 6.0.16
lt-version: 7

features:
Expand All @@ -15,7 +15,7 @@ checks:
count: 1
match:
event_type: engine
engine.message: "signature can't match as content length 30 is bigger than dsize 10."
engine.message: "signature can't match as required content length 30 exceeds dsize value 10"

- filter:
count: 1
Expand Down

0 comments on commit 5d2e291

Please sign in to comment.