From 56296ce12aab31dad65ca4d8e20a16ee6b1dfdb5 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Wed, 20 Feb 2019 11:03:12 -0800 Subject: [PATCH] updated postman tests --- source/tmpl/postman.json | 53 +++++++++++++++++++++++++++++++++++++++- source/wiki.go | 2 +- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/source/tmpl/postman.json b/source/tmpl/postman.json index f40da184..9c16ce81 100644 --- a/source/tmpl/postman.json +++ b/source/tmpl/postman.json @@ -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": [ diff --git a/source/wiki.go b/source/wiki.go index ea356a5e..2ef91ec7 100644 --- a/source/wiki.go +++ b/source/wiki.go @@ -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