Skip to content

Commit

Permalink
test: add test for rule 9521180 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Jul 30, 2024
1 parent 62d761a commit 188c34e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ tests:
csrf_token=random&domainName=example.com&username=test&newpw=%3Cscript%3E&confirmpw=%3Cscript%3E&cn=test&preferredLanguage=en_US&mailQuota=42&submit_add_user=Add
version: HTTP/1.1
output:
no_log_contains: |
no_log_contains: |-
id "932260"|id "932236"|id "941110"
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ tests:
csrf_token=random&accountStatus=on&mailQuota=1024&cn=test&first_name=test&last_name=test&preferredLanguage=en_US&timezone=America%2FDenver&employeeNumber=123&title=test&title=test&mobile=564&telephoneNumber=54325&telephoneNumber=563
version: HTTP/1.1
output:
no_log_contains: |
no_log_contains: |-
id "921180"|id "932260"|id "932236"|id "941110"
32 changes: 32 additions & 0 deletions tests/regression/iredadmin-rule-exclusions-plugin/9521180.yaml
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"

0 comments on commit 188c34e

Please sign in to comment.