From f9d5cbfba826a6fcd338e1639faed65dff29554c Mon Sep 17 00:00:00 2001 From: Tiffany Jernigan Date: Tue, 17 Nov 2015 12:22:35 -0800 Subject: [PATCH] Added additional checks to client_config_func_test.go --- mgmt/rest/client/client_config_func_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mgmt/rest/client/client_config_func_test.go b/mgmt/rest/client/client_config_func_test.go index 681286b15..14baac28f 100644 --- a/mgmt/rest/client/client_config_func_test.go +++ b/mgmt/rest/client/client_config_func_test.go @@ -232,6 +232,7 @@ func TestPulseClientConfig(t *testing.T) { Convey("A plugin config item for a specific type of a plugin is removed", t, func() { res := c.DeletePluginConfig(core.CollectorPluginType.String(), "", "", "user") So(res.Err, ShouldBeNil) + So(res.DeletePluginConfigItem, ShouldNotBeNil) So(len(res.DeletePluginConfigItem.Table()), ShouldEqual, 0) Convey("Get config for the version 1 'test' collector plugin", func() { res := c.GetPluginConfig(core.CollectorPluginType.String(), "test", "1") @@ -244,6 +245,8 @@ func TestPulseClientConfig(t *testing.T) { }) Convey("A plugin config item for a specific type and version of a plugin is removed", t, func() { res := c.DeletePluginConfig(core.CollectorPluginType.String(), "test", "1", "go") + So(res.Err, ShouldBeNil) + So(res.DeletePluginConfigItem, ShouldNotBeNil) So(len(res.DeletePluginConfigItem.Table()), ShouldEqual, 1) So(res.DeletePluginConfigItem.Table()["foo"], ShouldResemble, ctypes.ConfigValueStr{Value: "bar"}) Convey("Get config for the version 1 'test' collector plugin", func() {