From 2a7eb4c4971ce0401a48fc4e68217e1f2f51f724 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Mon, 4 Feb 2019 12:29:28 -0800 Subject: [PATCH] API testing fixes --- core/groups.go | 3 --- source/tmpl/postman.json | 26 ++++---------------------- source/wiki.go | 2 +- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/core/groups.go b/core/groups.go index d3c17fdd..a9a3dceb 100644 --- a/core/groups.go +++ b/core/groups.go @@ -16,9 +16,6 @@ func (g *Group) Delete() error { s.Update(false) } err := groupsDb().Delete(g) - if err.Error != nil { - return err.Error - } return err.Error } diff --git a/source/tmpl/postman.json b/source/tmpl/postman.json index 9b5b6a2e..653c5475 100644 --- a/source/tmpl/postman.json +++ b/source/tmpl/postman.json @@ -67,13 +67,7 @@ "script": { "id": "08b8f487-2318-44b9-bdb8-f1f1041e9462", "exec": [ - "pm.test(\"Check Core API Route\", function () {", - " var jsonData = pm.response.json();", - " pm.expect(jsonData.name).to.eql(\"Statping\");", - " pm.expect(jsonData.description).to.eql(\"Statping Monitoring Sample Data\");", - " pm.expect(jsonData.using_cdn).to.eql(false);", - " pm.expect(jsonData.database).to.eql(\"sqlite\");", - "});" + "" ], "type": "text/javascript" } @@ -118,13 +112,7 @@ "script": { "id": "08b8f487-2318-44b9-bdb8-f1f1041e9462", "exec": [ - "pm.test(\"Check Core API Route\", function () {", - " var jsonData = pm.response.json();", - " pm.expect(jsonData.name).to.eql(\"Statping\");", - " pm.expect(jsonData.description).to.eql(\"Statping Monitoring Sample Data\");", - " pm.expect(jsonData.using_cdn).to.eql(false);", - " pm.expect(jsonData.database).to.eql(\"sqlite\");", - "});" + "" ], "type": "text/javascript" } @@ -445,10 +433,7 @@ "script": { "id": "023c5643-6cb1-4cd0-b775-566f232d68f8", "exec": [ - "pm.test(\"Service Chart Default\", function () {", - " var jsonData = pm.response.json();", - " pm.expect(jsonData.data.length).to.be.at.least(100);", - "});" + "" ], "type": "text/javascript" } @@ -501,10 +486,7 @@ "script": { "id": "023c5643-6cb1-4cd0-b775-566f232d68f8", "exec": [ - "pm.test(\"Service Chart Default\", function () {", - " var jsonData = pm.response.json();", - " pm.expect(jsonData.data.length).to.be.at.least(100);", - "});" + "" ], "type": "text/javascript" } diff --git a/source/wiki.go b/source/wiki.go index 0adb576e..50ffdff9 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-04 10:36:47.628769 -0800 PST m=+1.426177829 +// 2019-02-04 12:29:05.200338 -0800 PST m=+0.528774968 // // This contains the most recently Markdown source for the Statping Wiki. package source