diff --git a/tests.yml b/tests.yml index 2b3c137..b39b1b5 100644 --- a/tests.yml +++ b/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 \ No newline at end of file + - result.bodyjson ShouldContainKey data + - result.bodyjson.data.name ShouldEqual Just Chatting \ No newline at end of file