updated postman tests

pull/156/head
Hunter Long 2019-02-20 11:03:12 -08:00
parent 8872161764
commit 56296ce12a
2 changed files with 53 additions and 2 deletions

View File

@ -1081,7 +1081,7 @@
"exec": [
"pm.test(\"View All Groups\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.length).to.eql(2);",
" pm.expect(jsonData.length).to.eql(3);",
"});"
],
"type": "text/javascript"
@ -1365,6 +1365,57 @@
}
]
},
{
"name": "Reorder Groups",
"event": [
{
"listen": "test",
"script": {
"id": "b5a67a19-fd08-40b0-a961-3e9474ab78c6",
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{api_key}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "[{\"group\":1,\"order\":1},{\"group\":2,\"order\":2}]"
},
"url": {
"raw": "{{endpoint}}/api/groups/reorder",
"host": [
"{{endpoint}}"
],
"path": [
"api",
"groups",
"reorder"
]
},
"description": "Reorder services in a specific order for the index page."
},
"response": []
},
{
"name": "Delete Group",
"event": [

View File

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
// 2019-02-19 18:08:37.551118 -0800 PST m=+0.477496156
// 2019-02-20 10:59:36.34293 -0800 PST m=+0.523219567
//
// This contains the most recently Markdown source for the Statping Wiki.
package source