From f30f5a3ce8b207a18c0fc72ca3e5560032d50e86 Mon Sep 17 00:00:00 2001 From: Esad Cetiner <104706115+EsadCetiner@users.noreply.github.com> Date: Fri, 5 Jan 2024 19:31:26 +1100 Subject: [PATCH] test: create 9520133, 9520110, 9502104 regression tests --- .../sogo-rule-exclusions-plugin/9520101.yaml | 2 +- .../sogo-rule-exclusions-plugin/9520104.yaml | 135 ++++++++++++++++++ .../sogo-rule-exclusions-plugin/9520110.yaml | 39 +++++ .../sogo-rule-exclusions-plugin/9520133.yaml | 23 +++ 4 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520104.yaml create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520110.yaml create mode 100644 tests/regression/sogo-rule-exclusions-plugin/9520133.yaml diff --git a/tests/regression/sogo-rule-exclusions-plugin/9520101.yaml b/tests/regression/sogo-rule-exclusions-plugin/9520101.yaml index 7fef043..266eabd 100644 --- a/tests/regression/sogo-rule-exclusions-plugin/9520101.yaml +++ b/tests/regression/sogo-rule-exclusions-plugin/9520101.yaml @@ -6,7 +6,7 @@ meta: name: 9520101.yaml tests: - test_title: 9520101-1 - desc: Disable OWASP_CRS for ARGS:json.password + desc: Disable OWASP_CRS for password box when logging in stages: - stage: input: diff --git a/tests/regression/sogo-rule-exclusions-plugin/9520104.yaml b/tests/regression/sogo-rule-exclusions-plugin/9520104.yaml new file mode 100644 index 0000000..c5e76a0 --- /dev/null +++ b/tests/regression/sogo-rule-exclusions-plugin/9520104.yaml @@ -0,0 +1,135 @@ +--- +meta: + author: "Esad Cetiner" + description: "SOGo Rule Exclusions Plugin" + enabled: true + name: 9520104.yaml +tests: + - test_title: 9520104-1 + desc: Disable OWASP CRS for email body when sending an email + 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/so/user@example.com/Mail/4/folderDrafts/newDraft-4/send?json.text=