From b162f283153f736d501705716fcc1814ad01a093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Wed, 15 Nov 2023 11:42:22 +0100 Subject: [PATCH] add test several get things --- src/main/getThingDetails.http | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/main/getThingDetails.http diff --git a/src/main/getThingDetails.http b/src/main/getThingDetails.http new file mode 100644 index 0000000..75407e8 --- /dev/null +++ b/src/main/getThingDetails.http @@ -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"); + }); +%}