Skip to content

Commit

Permalink
test: create 9520140 regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Jan 7, 2024
1 parent f30f5a3 commit f36bc03
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520140.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
meta:
author: "Esad Cetiner"
description: "SOGo Rule Exclusions Plugin"
enabled: true
name: 9520140.yaml
tests:
- test_title: 9520140-1
desc: Allow PUT request method for Caldav/Cardav
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
Content-Type: text/vcard
port: 80
method: PUT
uri: /SOGo/dav/stuff
output:
no_log_contains: id "911000"
- test_title: 9520140-2
desc: Allow DELETE request method for Caldav/Cardav
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
Content-Type: text/vcard
port: 80
method: DELETE
uri: /SOGo/dav/stuff
output:
no_log_contains: id "911000"
- test_title: 9520140-3
desc: Allow PROPFIND request method for Caldav/Cardav
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
Content-Type: text/vcard
port: 80
method: PROPFIND
uri: /SOGo/dav/stuff
output:
no_log_contains: id "911000"
- test_title: 9520140-4
desc: Allow REPORT request method for Caldav/Cardav
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
Content-Type: text/vcard
port: 80
method: REPORT
uri: /SOGo/dav/stuff
output:
no_log_contains: id "911000"
- test_title: 9520140-5
desc: Allow MKCOL request method for Caldav/Cardav
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
Content-Type: text/vcard
port: 80
method: MKCOL
uri: /SOGo/dav/stuff
output:
no_log_contains: id "911000"

0 comments on commit f36bc03

Please sign in to comment.