This repository has been archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1709 from fgsch/fgsch/fix-tests
Move tests to their own file
- Loading branch information
Showing
4 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
Empty file modified
0
tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920180.yaml
100755 → 100644
Empty file.
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
24 changes: 24 additions & 0 deletions
24
tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920201.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,24 @@ | ||
--- | ||
meta: | ||
author: "csanders-git" | ||
enabled: true | ||
name: "920201.yaml" | ||
description: "Tests for 920201" | ||
tests: | ||
- | ||
test_title: 920201-1 | ||
desc: This should FAIL with rule 920201 (PL2) | ||
stages: | ||
- | ||
stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
Range: "bytes=10-11, 20-21, 30-31, 40-41, 50-51, 60-61, 70-71, 80-81, 90-91, 100-101, 110-11, 120-21, 130-31, 140-41, 150-51, 160-61, 170-71, 180-81, 190-91, 200-101, 210-11, 220-21, 230-31, 240-41, 250-51, 260-61, 270-71, 280-81, 290-91, 300-101, 310-311, 320-321, 330-331, 340-341, 350-351, 360-361, 370-371, 380-381, 390-391, 400-401, 410-411, 420-421, 430-431, 440-441, 450-451, 460-461, 470-471, 480-481, 490-491, 500-501, 510-511, 520-521, 530-531, 540-541, 550-551, 560-561, 570-571, 580-581, 590-591, 600-601, 610-611, 620-621, 630-631" | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
method: GET | ||
port: 80 | ||
uri: /index.pdf | ||
output: | ||
log_contains: id "920201" |
24 changes: 24 additions & 0 deletions
24
tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920202.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,24 @@ | ||
--- | ||
meta: | ||
author: "csanders-git" | ||
enabled: true | ||
name: "920202.yaml" | ||
description: "Tests for 920202" | ||
tests: | ||
- | ||
test_title: 920202-1 | ||
desc: This should FAIL with rule 920202 (PL4) | ||
stages: | ||
- | ||
stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
Range: "bytes=10-11, 20-21, 30-31, 40-41, 50-51, 60-61" | ||
User-Agent: "ModSecurity CRS 3 Tests" | ||
method: GET | ||
port: 80 | ||
uri: /index.pdf | ||
output: | ||
log_contains: id "920202" |