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
|
timeout: 5
|
||||||
assertions:
|
assertions:
|
||||||
- result.statuscode ShouldEqual 200
|
- result.statuscode ShouldEqual 200
|
||||||
- result.bodyjson ShouldContainKey message
|
- result.bodyjson ShouldContainKey data
|
||||||
- name: GET proxy endpoint
|
- name: GET proxy endpoint
|
||||||
steps:
|
steps:
|
||||||
- type: http
|
- type: http
|
||||||
|
@ -33,9 +33,9 @@ testcases:
|
||||||
assertions:
|
assertions:
|
||||||
- result.statuscode ShouldEqual 200
|
- result.statuscode ShouldEqual 200
|
||||||
- result.timeseconds ShouldBeLessThan 1
|
- result.timeseconds ShouldBeLessThan 1
|
||||||
- result.bodyjson ShouldContainKey message
|
- result.bodyjson ShouldContainKey data
|
||||||
- result.bodyjson.message ShouldContainKey pfp
|
- result.bodyjson.data ShouldContainKey pfp
|
||||||
- result.bodyjson.message.username ShouldEqual {{.testStreamerName}}
|
- result.bodyjson.data.username ShouldEqual {{.testStreamerName}}
|
||||||
- name: GET categories
|
- name: GET categories
|
||||||
steps:
|
steps:
|
||||||
- type: http
|
- type: http
|
||||||
|
@ -45,8 +45,8 @@ testcases:
|
||||||
assertions:
|
assertions:
|
||||||
- result.statuscode ShouldEqual 200
|
- result.statuscode ShouldEqual 200
|
||||||
- result.timeseconds ShouldBeLessThan 1
|
- result.timeseconds ShouldBeLessThan 1
|
||||||
- result.bodyjson ShouldContainKey message
|
- result.bodyjson ShouldContainKey data
|
||||||
- result.bodyjson.message.message0.name ShouldNotBeNil
|
- result.bodyjson.data.data0.name ShouldNotBeNil
|
||||||
- name: GET category
|
- name: GET category
|
||||||
steps:
|
steps:
|
||||||
- type: http
|
- type: http
|
||||||
|
@ -56,5 +56,5 @@ testcases:
|
||||||
assertions:
|
assertions:
|
||||||
- result.statuscode ShouldEqual 200
|
- result.statuscode ShouldEqual 200
|
||||||
- result.timeseconds ShouldBeLessThan 1
|
- result.timeseconds ShouldBeLessThan 1
|
||||||
- result.bodyjson ShouldContainKey message
|
- result.bodyjson ShouldContainKey data
|
||||||
- result.bodyjson.message.name ShouldEqual Just Chatting
|
- result.bodyjson.data.name ShouldEqual Just Chatting
|
Loading…
Reference in a new issue