Skip to content

Commit

Permalink
test: specify http version
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Jun 4, 2024
1 parent 05b2924 commit 42510ee
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tests:
port: 80
method: POST
uri: /SOGo/
version: HTTP/1.1
output:
no_log_contains: |
id "(?:920272|920273)"
Expand All @@ -36,6 +37,7 @@ tests:
port: 80
method: POST
uri: /SOGo/
version: HTTP/1.1
output:
no_log_contains: id "942450"
- test_title: 9520100-3
Expand All @@ -52,6 +54,7 @@ tests:
port: 80
method: POST
uri: /SOGo/
version: HTTP/1.1
output:
no_log_contains: id "932236"
- test_title: 9520100-4
Expand All @@ -68,6 +71,7 @@ tests:
port: 80
method: POST
uri: /SOGo/
version: HTTP/1.1
output:
no_log_contains: id "942450"
- test_title: 9520100-5
Expand All @@ -84,5 +88,6 @@ tests:
port: 80
method: POST
uri: /SOGo/
version: HTTP/1.1
output:
no_log_contains: id "932236"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520101.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ tests:
uri: /SOGo/connect
data: |
{ "userName": "[email protected]", "password": "<script>", "domain": null, "rememberLogin": 0 }
version: HTTP/1.1
output:
no_log_contains: id "941110"
6 changes: 6 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520102.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tests:
port: 80
method: POST
uri: /SOGo/example.com
version: HTTP/1.1
output:
no_log_contains: id "920440"
- test_title: 9520102-2
Expand All @@ -33,6 +34,7 @@ tests:
port: 80
method: POST
uri: /SOGo/so/example.com
version: HTTP/1.1
output:
no_log_contains: id "920440"
- test_title: 9520102-3
Expand All @@ -48,6 +50,7 @@ tests:
port: 80
method: POST
uri: /SOGo/dav/example.com
version: HTTP/1.1
output:
no_log_contains: id "920440"
- test_title: 9520102-4
Expand All @@ -63,6 +66,7 @@ tests:
port: 80
method: POST
uri: /SOGo/example.inc
version: HTTP/1.1
output:
no_log_contains: id "920440"
- test_title: 9520102-5
Expand All @@ -78,6 +82,7 @@ tests:
port: 80
method: POST
uri: /SOGo/so/example.inc
version: HTTP/1.1
output:
no_log_contains: id "920440"
- test_title: 9520102-6
Expand All @@ -93,5 +98,6 @@ tests:
port: 80
method: POST
uri: /SOGo/dav/example.inc
version: HTTP/1.1
output:
no_log_contains: id "920440"
2 changes: 2 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520104.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tests:
uri: /SOGo/so/[email protected]/Mail/4/folderDrafts/newDraft-4/send
data: |
{"to":["postmaster <[email protected]>"],"cc":[],"bcc":[],"isHTML":1,"text":"<p>&lt;script&gt;</p>","from":"postmaster <[email protected]>","locale":"en","subject":"<script>"}
version: HTTP/1.1
output:
no_log_contains: id "941110"
- test_title: 9520104-2
Expand All @@ -39,5 +40,6 @@ tests:
uri: /SOGo/so/[email protected]/Mail/4/folderDrafts/newDraft-4/save
data: |
{"to":["postmaster <[email protected]>"],"cc":[],"bcc":[],"isHTML":1,"text":"<p>&lt;script&gt;</p>","from":"postmaster <[email protected]>","locale":"en","subject":"<script>"}
version: HTTP/1.1
output:
no_log_contains: id "941110"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520110.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ tests:
uri: /SOGo/so/changePassword
data: |
{ "userName":null,"newPassword":"<script>","oldPassword":"<script>" }
version: HTTP/1.1
output:
no_log_contains: id "941110"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520111.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ tests:
"NotifyOnExternalModifications":{"[email protected]:Calendar/personal":1,"[email protected]:Calendar/1C0-65E5E900-1B-2141CA00":1},"AutoReloadedWebCalendars":{"[email protected]:Calendar/1C0-65E5E900-1B-2141CA00":1},
"NotifyUserOnPersonalModifications":{"[email protected]:Calendar/personal":0,"[email protected]:Calendar/1C0-65E5E900-1B-2141CA00":0},"TasksFilterState":"view_incomplete","TasksSortingState":["status","1"],"FolderSynchronize":{"[email protected]:Calendar/personal":1},
"PreventInvitationsWhitelist":{},"EventsSortingState":["start","1"]},"ShowCompletedTasks":"0","General":{"PrivateSalt":"6c92b8b8d902cee3228ecacd0c33ad7433b451bf"}},"inboxSyncToken":"7-11"}
version: HTTP/1.1
output:
no_log_contains: |
id "(?:920272|920273|931130|932236|942131)"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520120.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ tests:
{ "refs":[],"categories":[],"c_screenname":null,"pid":"personal","c_component":"vcard","notes":[""],"empty":" ","isNew":true,"id":"1C0-65E5E480-9-2141CA00.vcf",
"urls":[{"type":"work","value":"https://www.fsf.org/"}],"c_cn":"display name","c_givenname":"Firstname","c_sn":"Lastname","nickname":"Nickname","org":"org","title":"title","role":"role",
"addresses":[{"type":"","postoffice":"","street":"","street2":"","locality":"","region":"","country":"","postalcode":""}],"birthday":"" }
version: HTTP/1.1
output:
no_log_contains: id "931130"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520121.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ tests:
data: |
{ "name":"test","isEditable":true,"isRemote":false,"owner":"[email protected]","isOwned":true,"isSubscription":false,"id":"1BE-65E5E580-B-1B22B300",
"publicCardDavURL":"","cardDavURL":"https://sogo.example.com/SOGo/dav/[email protected]/Contacts/1BE-65E5E580-B-1B22B300/","synchronize":1 }
version: HTTP/1.1
output:
no_log_contains: id "931130"
2 changes: 2 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520130.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ tests:
"id":"1BB-65E5EA80-1-7B69C580.ics","sendAppointmentNotifications":1,"attachUrls":[{"value":"https://example.com/"}],
"summary":"test","due":"2024-03-04T15:30:26.610Z","dueDate":"2024-03-05","start":"2024-03-04T15:30:27.775Z","priority":4,"comment":"test",
"location":"test","startDate":"2024-03-05","startTime":"02:30","endDate":"","endTime":"","dueTime":"02:30","completedDate":"2024-03-05"}
version: HTTP/1.1
output:
no_log_contains: id "931130"
- test_title: 9520130-2
Expand All @@ -48,5 +49,6 @@ tests:
"localizedDueDate":"Tuesday, March 05, 2024","localizedStartDate":"Tuesday, March 05, 2024","summary":"test","classification":"confidential",
"isEditable":1,"pid":"personal","type":"task","start":"2024-03-04T15:30:00.000Z","due":"2024-03-04T15:30:00.000Z","completed":"2024-03-04T15:40:01.319Z",
"$hasAlarm":false,"destinationCalendar":"personal","selected":false,"startTime":"02:30","endDate":"","endTime":"","dueTime":"02:30","completedDate":"2024-03-05"}
version: HTTP/1.1
output:
no_log_contains: id "931130"
2 changes: 2 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520131.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tests:
"classification":"public","occurrenceId":"occurence1709710200","isEditable":1,"pid":"personal","type":"appointment","start":"2024-03-05T15:30:00.000Z",
"end":"2024-03-05T16:30:00.000Z","$hasAlarm":false,"destinationCalendar":"personal","selected":false,"delegatedTo":"","startTime":"02:30","endTime":"03:30",
"dueDate":"","dueTime":"","completedDate":""}
version: HTTP/1.1
output:
no_log_contains: id "931130"
- test_title: 9520131-2
Expand All @@ -49,5 +50,6 @@ tests:
"sendAppointmentNotifications":1,"summary":"Stuff","location":"Somewhere","comment":"Come to somewhere, it's going to be awesome!","priority":2,
"isAllDay":1,"attachUrls":[{"value":"https://example.com/"}],"startDate":"2024-03-05","startTime":"02:15","endDate":"2024-03-05","endTime":"03:15",
"dueDate":"","dueTime":"","completedDate":""}
version: HTTP/1.1
output:
no_log_contains: id "931130"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520132.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ tests:
"notifications":{"notifyOnPersonalModifications":0,"notifyUserOnPersonalModifications":0,"notifyOnExternalModifications":1},
"name":"Personal Calendar","isWebCalendar":0,"synchronize":1,"showCalendarTasks":1,"owner":"[email protected]",
"acls":{"objectEraser":1,"objectCreator":1},"isOwned":true,"isSubscription":false}
version: HTTP/1.1
output:
no_log_contains: id "931130"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520133.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ tests:
uri: /SOGo/so/[email protected]/Calendar/addWebCalendar
data: |
{"url":"https://example.com/"}
version: HTTP/1.1
output:
no_log_contains: id "931130"
5 changes: 5 additions & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520140.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tests:
port: 80
method: PUT
uri: /SOGo/dav/stuff
version: HTTP/1.1
output:
no_log_contains: id "911000"
- test_title: 9520140-2
Expand All @@ -35,6 +36,7 @@ tests:
port: 80
method: DELETE
uri: /SOGo/dav/stuff
version: HTTP/1.1
output:
no_log_contains: id "911000"
- test_title: 9520140-3
Expand All @@ -51,6 +53,7 @@ tests:
port: 80
method: PROPFIND
uri: /SOGo/dav/stuff
version: HTTP/1.1
output:
no_log_contains: id "911000"
- test_title: 9520140-4
Expand All @@ -67,6 +70,7 @@ tests:
port: 80
method: REPORT
uri: /SOGo/dav/stuff
version: HTTP/1.1
output:
no_log_contains: id "911000"
- test_title: 9520140-5
Expand All @@ -83,5 +87,6 @@ tests:
port: 80
method: MKCOL
uri: /SOGo/dav/stuff
version: HTTP/1.1
output:
no_log_contains: id "911000"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520141.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ tests:
port: 80
method: GET
uri: /SOGo/dav/username/Contacts/work/johndoe.vcf
version: HTTP/1.1
output:
no_log_contains: id "920420"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520142.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ tests:
port: 80
method: GET
uri: /SOGo/dav/username/Calendar/stuff/reminders.ics
version: HTTP/1.1
output:
no_log_contains: id "920420"
1 change: 1 addition & 0 deletions tests/regression/sogo-rule-exclusions-plugin/9520143.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ tests:
port: 80
method: PROPFIND
uri: /
version: HTTP/1.1
output:
no_log_contains: id "911100"

0 comments on commit 42510ee

Please sign in to comment.