mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-21 20:53:00 -05:00
Fix tests
This commit is contained in:
parent
7a76dd7712
commit
bce1f73823
1 changed files with 8 additions and 8 deletions
16
tests.yml
16
tests.yml
|
@ -15,7 +15,7 @@ testcases:
|
|||
timeout: 5
|
||||
assertions:
|
||||
- result.statuscode ShouldEqual 200
|
||||
- result.bodyjson ShouldContainKey message
|
||||
- result.bodyjson ShouldContainKey data
|
||||
- name: GET proxy endpoint
|
||||
steps:
|
||||
- type: http
|
||||
|
@ -33,9 +33,9 @@ testcases:
|
|||
assertions:
|
||||
- result.statuscode ShouldEqual 200
|
||||
- result.timeseconds ShouldBeLessThan 1
|
||||
- result.bodyjson ShouldContainKey message
|
||||
- result.bodyjson.message ShouldContainKey pfp
|
||||
- result.bodyjson.message.username ShouldEqual {{.testStreamerName}}
|
||||
- result.bodyjson ShouldContainKey data
|
||||
- result.bodyjson.data ShouldContainKey pfp
|
||||
- result.bodyjson.data.username ShouldEqual {{.testStreamerName}}
|
||||
- name: GET categories
|
||||
steps:
|
||||
- type: http
|
||||
|
@ -45,8 +45,8 @@ testcases:
|
|||
assertions:
|
||||
- result.statuscode ShouldEqual 200
|
||||
- result.timeseconds ShouldBeLessThan 1
|
||||
- result.bodyjson ShouldContainKey message
|
||||
- result.bodyjson.message.message0.name ShouldNotBeNil
|
||||
- result.bodyjson ShouldContainKey data
|
||||
- result.bodyjson.data.data0.name ShouldNotBeNil
|
||||
- name: GET category
|
||||
steps:
|
||||
- type: http
|
||||
|
@ -56,5 +56,5 @@ testcases:
|
|||
assertions:
|
||||
- result.statuscode ShouldEqual 200
|
||||
- result.timeseconds ShouldBeLessThan 1
|
||||
- result.bodyjson ShouldContainKey message
|
||||
- result.bodyjson.message.name ShouldEqual Just Chatting
|
||||
- result.bodyjson ShouldContainKey data
|
||||
- result.bodyjson.data.name ShouldEqual Just Chatting
|
Loading…
Reference in a new issue