Skip to content

Commit

Permalink
test: specify http version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner committed Jun 6, 2024
1 parent 470d61a commit 6ec0cfe
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ tests:
port: 80
method: POST
uri: /post
version: HTTP/1.1
output:
no_log_contains: id "942450"
- test_title: 9519100-5
Expand All @@ -83,5 +84,6 @@ tests:
port: 80
method: POST
uri: /post
version: HTTP/1.1
output:
no_log_contains: id "942450"
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tests:
uri: /post?_task=login
data: |
_token=randomtoken&_task=login&_action=login&_timezone=Australia%2FSydney&_url=empty&_user=emptypostmaster%40example.com&_pass=empty%3Cscript%3E
version: HTTP/1.1
output:
no_log_contains: |
id "920273" | id "921180" | id "932235" | id "932236" | id "942432" | id "941110"
Expand All @@ -40,6 +41,7 @@ tests:
uri: /post?_task=login
data: |
_token=Chai6shie1jaifoori0Mai4iey6ua0el&_task=login&_action=login&_timezone=Europe%2FBudapest&_url=_task%3Dmail%26_mbox%3DINBOX&_user=account%40mydomain.com&_pass=S3cr3T
version: HTTP/1.1
output:
no_log_contains: |
id "920273" | id "921180" | id "932235" | id "932236" | id "942432" | id "941110"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tests:
port: 80
method: POST
uri: /post
version: HTTP/1.1
output:
no_log_contains: |
id "932237"| id "932239"
Expand All @@ -36,6 +37,7 @@ tests:
port: 80
method: GET
uri: /post
version: HTTP/1.1
output:
no_log_contains: |
id "932237"| id "932239"
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tests:
port: 80
method: get
uri: /get?_task=mail&_mbox=INBOX
version: HTTP/1.1
output:
no_log_contains: id "932236"
- test_title: 9519103-2
Expand All @@ -33,5 +34,6 @@ tests:
port: 80
method: get
uri: /get?_task=settings&_action=preferences
version: HTTP/1.1
output:
no_log_contains: id "932236"
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tests:
uri: /post
data: |
_token=lsrandom&_task=login&_action=login&_timezone=Australia%2FSydney&_url=empty&_user=postmaster%40example.com&_pass=%3Cscript%3E
version: HTTP/1.1
output:
no_log_contains: id "932236"
- test_title: 9519104-2
Expand All @@ -37,5 +38,6 @@ tests:
uri: /post
data: |
_token=0x0800random&_task=login&_action=login&_timezone=Australia%2FSydney&_url=empty&_user=postmaster%40example.com&_pass=%3Cscript%3E
version: HTTP/1.1
output:
no_log_contains: id "942450"
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ tests:
method: POST
uri: /post
data: "maximum allowed file size is 10MB"
version: HTTP/1.1
output:
no_log_contains: id "953101"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tests:
method: GET
uri: /get?_task=mail
data: "SqlException"
version: HTTP/1.1
output:
no_log_contains: id "951220"
- test_title: 9519112-2
Expand All @@ -35,5 +36,6 @@ tests:
method: GET
uri: /get?_task=mail
data: "MySqlClient."
version: HTTP/1.1
output:
no_log_contains: id "951230"
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ tests:
port: 80
method: GET
uri: /get?_task=mail&_framed=1&_uid=42&_mbox=INBOX&_framed=1&_action=headers
version: HTTP/1.1
output:
no_log_contains: id "921180"
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ tests:
_keepformatting=empty
_priority=0
_store_target=Sent
version: HTTP/1.1
output:
no_log_contains: |
id "(?:921180|941101|942131)"
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tests:
port: 80
method: POST
uri: /post?_task=utils&_action=text2html
version: HTTP/1.1
output:
no_log_contains: id "920420"
- test_title: 9519115-2
Expand All @@ -35,5 +36,6 @@ tests:
port: 80
method: POST
uri: /post?_task=utils&_action=html2text
version: HTTP/1.1
output:
no_log_contains: id "920420"
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ tests:
port: 80
method: POST
uri: /post
version: HTTP/1.1
output:
no_log_contains: id "932131"
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ tests:
uri: /post?_task=addressbook&_framed=1&_orig_source=0
data: |
_token=random&_framed=1&_photo=-del-&_task=addressbook&_action=save&_framed=1&_source=0&_gid=0&_search=test&_cid=1test&_prefix=test&_firstname=Test&_middlename=test&_surname=Test&_suffix=test&_name=test&_nickname=test&_organization=test&_department=test&_jobtitle=test&_subtype_email[]=home&_email[]=test&_subtype_phone[]=home&_phone[]=test&_subtype_address[]=home&_street[]=test&_locality[]=test&_zipcode[]=test&_country[]=test&_region[]=test&_subtype_website[]=homepage&_website[]=https://example.com/&_subtype_im[]=aim&_im[]=https://example.com/&_gender=test&_birthday=test&_notes=test
version: HTTP/1.1
output:
no_log_contains: id "931130"
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ tests:
_bcc=empty
_standard=1
_signature=<script>
version: HTTP/1.1
output:
no_log_contains: id "941101"
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ tests:
port: 80
method: POST
uri: /post?_action=identities
version: HTTP/1.1
output:
no_log_contains: id "932236"
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ tests:
_curpasswd=<script>
_newpasswd=<script>
_confpasswd=<script>
version: HTTP/1.1
output:
no_log_contains: id "941101"
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tests:
uri: /post?_task=settings&_action=plugin.managesieve-action
data: |
_act=list&_set=managesieve&_remote=1&_unlock=loading1710411392771
version: HTTP/1.1
output:
no_log_contains: id "941101"
- test_title: 9519153-2
Expand Down Expand Up @@ -90,5 +91,6 @@ tests:
_action_notifyimportance%5B0%5D=2
_action_notifyoption%5B0%5D%5B%5D=test
_action_mailbox%5B0%5D=INBOX
version: HTTP/1.1
output:
no_log_contains: id "941101"
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tests:
port: 80
method: POST
uri: /post?_act=setdel
version: HTTP/1.1
output:
no_log_contains: id "932236"
- test_title: 9519154-2
Expand All @@ -33,6 +34,7 @@ tests:
port: 80
method: POST
uri: /post?_act=setact
version: HTTP/1.1
output:
no_log_contains: id "932236"
- test_title: 9519154-3
Expand All @@ -48,5 +50,6 @@ tests:
port: 80
method: POST
uri: /post?_act=setget
version: HTTP/1.1
output:
no_log_contains: id "932236"
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ tests:
port: 80
method: POST
uri: /post?_from=set
version: HTTP/1.1
output:
no_log_contains: id "932236"
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tests:
uri: /post?_task=settings&_action=plugin.managesieve-vacation
data: |
_token=randomtoken&_task=settings&_action=plugin.managesieve-vacation&vacation_subject=%3Cscript%3E&vacation_reason=%3Cscript%3E%0D%0AI+am+not+home&vacation_datefrom=14%2F03%2F2024&vacation_timefrom=&vacation_dateto=15%2F03%2F2024&vacation_timeto=&vacation_status=on&vacation_from=postmaster%40example.com&vacation_addresses%5B%5D=postmaster%40example.com&vacation_interval=1&vacation_action=keep&action_target=&_remote=1&_unlock=loading1710410586795
version: HTTP/1.1
output:
no_log_contains: |
id "(?:921180|941101)"

0 comments on commit 6ec0cfe

Please sign in to comment.