From 49b8fe94703ad961ef4db96f9deae6a8a0f9312d Mon Sep 17 00:00:00 2001 From: Esad Cetiner <104706115+EsadCetiner@users.noreply.github.com> Date: Thu, 4 Jan 2024 06:05:55 +1100 Subject: [PATCH] test: create 9520141, 9520142 and 9520143 regression tests --- .../sogo-rule-exclusions-plugin/9520141.yaml | 23 +++++++++++++++++++ .../sogo-rule-exclusions-plugin/9520142.yaml | 23 +++++++++++++++++++ .../sogo-rule-exclusions-plugin/9520143.yaml | 22 ++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520141.yaml create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520142.yaml create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520143.yaml diff --git a/tests/regression/sogo-rule-exclusions-plugin/9520141.yaml b/tests/regression/sogo-rule-exclusions-plugin/9520141.yaml new file mode 100644 index 0000000..300005b --- /dev/null +++ b/tests/regression/sogo-rule-exclusions-plugin/9520141.yaml @@ -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" diff --git a/tests/regression/sogo-rule-exclusions-plugin/9520142.yaml b/tests/regression/sogo-rule-exclusions-plugin/9520142.yaml new file mode 100644 index 0000000..6cda8fb --- /dev/null +++ b/tests/regression/sogo-rule-exclusions-plugin/9520142.yaml @@ -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" diff --git a/tests/regression/sogo-rule-exclusions-plugin/9520143.yaml b/tests/regression/sogo-rule-exclusions-plugin/9520143.yaml new file mode 100644 index 0000000..1108158 --- /dev/null +++ b/tests/regression/sogo-rule-exclusions-plugin/9520143.yaml @@ -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"