diff --git a/endpoint_tests/VIPSCore-Python tests.postman_collection.json b/endpoint_tests/VIPSCore-Python tests.postman_collection.json index 8ce425bbd581d4ae2bd3a0513755a6542e48b686..298d9dd68823b35ce74d76ec0548162dd7a3cdda 100644 --- a/endpoint_tests/VIPSCore-Python tests.postman_collection.json +++ b/endpoint_tests/VIPSCore-Python tests.postman_collection.json @@ -89,6 +89,42 @@ }, "response": [] }, + { + "name": "List all models (plain text)", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "pm.test(\"Text is returned\", function () {", + " var textData = pm.response.text()", + " pm.expect(textData.indexOf(\"reference\") >=0);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{vipscore_python_url}}/models/", + "host": [ + "{{vipscore_python_url}}" + ], + "path": [ + "models", + "" + ] + }, + "description": "Test one of the stockpile models of VIPS" + }, + "response": [] + }, { "name": "Get REFERENCEM warning status interpretation", "event": [ @@ -112,14 +148,14 @@ "method": "GET", "header": [], "url": { - "raw": "{{vipscore_python_url}}/models/REFERENCEM/description", + "raw": "{{vipscore_python_url}}/models/REFERENCEM/warningstatusinterpretation", "host": [ "{{vipscore_python_url}}" ], "path": [ "models", "REFERENCEM", - "description" + "warningstatusinterpretation" ] }, "description": "Test one of the stockpile models of VIPS"