add test several get things
This commit is contained in:
parent
1708fc117b
commit
b162f28315
44
src/main/getThingDetails.http
Normal file
44
src/main/getThingDetails.http
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
### GET Thing 1
|
||||||
|
GET http://localhost:8080/things/thing1
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.test("Request executed successfully", function() {
|
||||||
|
client.assert(response.status != 500, "Response status is 500");
|
||||||
|
});
|
||||||
|
%}
|
||||||
|
|
||||||
|
### GET Thing 2
|
||||||
|
GET http://localhost:8080/things/thing2
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.test("Request executed successfully", function() {
|
||||||
|
client.assert(response.status != 500, "Response status is 500");
|
||||||
|
});
|
||||||
|
%}
|
||||||
|
|
||||||
|
### GET Thing 3
|
||||||
|
GET http://localhost:8080/things/thing3
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.test("Request executed successfully", function() {
|
||||||
|
client.assert(response.status != 500, "Response status is 500");
|
||||||
|
});
|
||||||
|
%}
|
||||||
|
|
||||||
|
### GET Thing 4
|
||||||
|
GET http://localhost:8080/things/thing4
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.test("Request executed successfully", function() {
|
||||||
|
client.assert(response.status != 500, "Response status is 500");
|
||||||
|
});
|
||||||
|
%}
|
||||||
|
|
||||||
|
### GET Thing 5
|
||||||
|
GET http://localhost:8080/things/toto
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.test("Request executed successfully", function() {
|
||||||
|
client.assert(response.status != 500, "Response status is 500");
|
||||||
|
});
|
||||||
|
%}
|
Reference in New Issue
Block a user