-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: create 9520100 regression test
- Loading branch information
1 parent
6d46b65
commit a538dae
Showing
3 changed files
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
integration-tests: | ||
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@main |
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,6 @@ | ||
--- | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
plugin-lint: | ||
uses: coreruleset/crs-plugin-test-action/.github/workflows/lint.yaml@main |
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,55 @@ | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "SOGo Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9520100.yaml | ||
tests: | ||
- test_title: 9520100-1 | ||
desc: Disable 920272 for cookie header | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: \% | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "920272" | ||
- test_title: 9520100-2 | ||
desc: Disable 942450 for XSRF-TOKEN cookie | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: XSRF-TOKEN=0x0806 | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "942450" | ||
- test_title: 9520100-3 | ||
desc: Disable 942450 for identviewsplitter cookie name | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: SOGo rule exclusions plugin | ||
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | ||
cookie: 0xHIGHFLYxSOGo=0x0800 | ||
port: 80 | ||
method: POST | ||
uri: /post | ||
output: | ||
no_log_contains: id "942450" |