-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for rule 9521180 (#12)
- Loading branch information
1 parent
62d761a
commit 188c34e
Showing
3 changed files
with
34 additions
and
2 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
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
32 changes: 32 additions & 0 deletions
32
tests/regression/iredadmin-rule-exclusions-plugin/9521180.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,32 @@ | ||
--- | ||
meta: | ||
author: "Esad Cetiner" | ||
description: "iRedAdmin Rule Exclusions Plugin" | ||
enabled: true | ||
name: 9521180.yaml | ||
tests: | ||
- test_title: 9521180-1 | ||
desc: | | ||
Setting a disclaimer message | ||
example taken from: https://exclaimer.com/email-signature-handbook/email-disclaimer-examples-templates/ | ||
stages: | ||
- stage: | ||
input: | ||
dest_addr: 127.0.0.1 | ||
headers: | ||
Host: localhost | ||
User-Agent: iRedAdmin 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 | ||
Content-Type: application/x-www-form-urlencoded | ||
port: 80 | ||
method: POST | ||
uri: /iredadmin/profile/domain/general/example.com?msg=UPDATED | ||
data: >- | ||
csrf_token=9sdXg3y655dLp7NdZ57aXd432QFNRws3&domainName=example.com&accountStatus=on&cn=&disclaimer=CONFIDENTIAL%3A+This+email+and+any+files+transmitted+with+it+are+confidential+and+intended+solely+for+the+use+of+the+individual+or+entity+to+whom+they+are+addressed.+ | ||
If+you+have+received+this+email+in+error%2C+please+notify+the+system+manager.+This+message+contains+confidential+information+and+is+intended+only+for+the+individual+named.+If+you+are+not+the+named+addressee+you+should+not+disseminate%2C+distribute+or+copy+this+e-mail. | ||
+Please+notify+the+sender+immediately+by+e-mail+if+you+have+received+this+e-mail+by+mistake+and+delete+this+e-mail+from+your+system.+If+you+are+not+the+intended+recipient+you+are+notified+that+disclosing%2C+copying%2C+distributing+or+taking+any+action+in+reliance+on+the | ||
+contents+of+this+information+is+strictly+prohibited. | ||
version: HTTP/1.1 | ||
output: | ||
no_log_contains: |- | ||
id "920272"|id "920273"|id "931130"|id "932236"|id "932240"|id "942110"|id "942431"|id "942432"|id "942460" |