0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 05:02:58 -05:00

Fix tests

This commit is contained in:
dragongoose 2023-05-31 08:14:08 -04:00
parent 7a76dd7712
commit bce1f73823
No known key found for this signature in database
GPG key ID: 50DB99B921579009

View file

@ -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