Skip to content
Snippets Groups Projects
Commit 5004dbb5 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updated /added Postman tests

parent 26af5853
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment