Skip to content

Commit

Permalink
test: create 9520141, 9520142 and 9520143 regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Jan 3, 2024
1 parent 33d1371 commit 49b8fe9
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520141.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
meta:
author: "Esad Cetiner"
description: "SOGo Rule Exclusions Plugin"
enabled: true
name: 9520141.yaml
tests:
- test_title: 9520141-1
desc: Allow text/vcard content type for 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: GET
uri: /SOGo/dav/username/Contacts/work/johndoe.vcf
output:
no_log_contains: id "920420"
23 changes: 23 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520142.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
meta:
author: "Esad Cetiner"
description: "SOGo Rule Exclusions Plugin"
enabled: true
name: 9520142.yaml
tests:
- test_title: 9520142-1
desc: Allow text/calendar content type for caldav
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/calendar
port: 80
method: GET
uri: /SOGo/dav/username/Calendar/stuff/reminders.ics
output:
no_log_contains: id "920420"
22 changes: 22 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520143.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
meta:
author: "Esad Cetiner"
description: "SOGo Rule Exclusions Plugin"
enabled: true
name: 9520143.yaml
tests:
- test_title: 9520143-1
desc: Allow dav clients to discover dav path
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: PROPFIND
uri: /
output:
no_log_contains: id "911100"

0 comments on commit 49b8fe9

Please sign in to comment.