Adding failing test

This commit is contained in:
Julien Lengrand-Lambert
2023-02-02 10:35:47 +01:00
parent 5f660efa9d
commit c74a5abda4
3 changed files with 17 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
.openapi-generator
.openapi-generator-ignore
.idea
ijhttp
ijhttp.zip

View File

@@ -3,3 +3,10 @@
### GET /health
# @name healthGet
GET http://api.opendota.com/api/health
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}

View File

@@ -4,6 +4,14 @@
# @name heroesGet
GET http://api.opendota.com/api/heroes
> {%
client.test("Request executed successfully", function() {
// client.assert(response.status === 200, "Response status is not 200");
client.assert(response.body.length == 126, "DOTA 2 currently has 136 heroes");
});
%}
### GET /heroes/{hero_id}/durations
# @name heroesHeroIdDurationsGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/durations