Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Added additional checks to client_config_func_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanyfay committed Nov 18, 2015
1 parent 21a144a commit f9d5cbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mgmt/rest/client/client_config_func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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() {
Expand Down

0 comments on commit f9d5cbf

Please sign in to comment.