diff --git a/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920180.yaml b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920180.yaml old mode 100755 new mode 100644 diff --git a/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920200.yaml b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920200.yaml index d24384adf..3951e508f 100644 --- a/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920200.yaml +++ b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920200.yaml @@ -168,37 +168,3 @@ uri: /index.pdf output: no_log_contains: id "920200" - - - test_title: 920200-11 - 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" - - - test_title: 920200-12 - 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" diff --git a/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920201.yaml b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920201.yaml new file mode 100644 index 000000000..d3a8b12ee --- /dev/null +++ b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920201.yaml @@ -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" diff --git a/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920202.yaml b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920202.yaml new file mode 100644 index 000000000..5b2632229 --- /dev/null +++ b/tests/regression/tests/REQUEST-920-PROTOCOL-ENFORCEMENT/920202.yaml @@ -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"