-
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 9520102 regression test
- Loading branch information
1 parent
27b231e
commit 33d1371
Showing
2 changed files
with
97 additions
and
1 deletion.
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
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,97 @@ | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "SOGo Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9520102.yaml | ||
tests: | ||
- test_title: 9520102-1 | ||
desc: Disable 920440 if uri ends in com | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/example.com | ||
output: | ||
no_log_contains: id "920440" | ||
- test_title: 9520102-2 | ||
desc: Disable 920440 if uri ends in com | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/so/example.com | ||
output: | ||
no_log_contains: id "920440" | ||
- test_title: 9520102-3 | ||
desc: Disable 920440 if uri ends in com | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/dav/example.com | ||
output: | ||
no_log_contains: id "920440" | ||
- test_title: 9520102-4 | ||
desc: Disable 920440 if uri ends in inc | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/example.inc | ||
output: | ||
no_log_contains: id "920440" | ||
- test_title: 9520102-5 | ||
desc: Disable 920440 if uri ends in inc | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/so/example.inc | ||
output: | ||
no_log_contains: id "920440" | ||
- test_title: 9520102-6 | ||
desc: Disable 920440 if uri ends in inc | ||
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 | ||
port: 80 | ||
method: POST | ||
uri: /SOGo/dav/example.inc | ||
output: | ||
no_log_contains: id "920440" |