commit | 20e92918b73c77964d03f281827f6cee9d4cee81 | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Mon Nov 24 13:01:45 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Mon Nov 24 13:01:45 2014 +0100 |
tree | 0d58b9b6928dfa03224bbeac0153bbaa467b470b | |
parent | 8031b73648b08ae2fc9347b6c8bab3e8148d2a81 [diff] [blame] |
Delete default sec group
diff --git a/openstack/compute/v2/extensions/defsecrules/requests_test.go b/openstack/compute/v2/extensions/defsecrules/requests_test.go index d220ede..bc12849 100644 --- a/openstack/compute/v2/extensions/defsecrules/requests_test.go +++ b/openstack/compute/v2/extensions/defsecrules/requests_test.go
@@ -88,3 +88,13 @@ th.AssertDeepEquals(t, expected, group) } + +func TestDelete(t *testing.T) { + th.SetupHTTP() + defer th.TeardownHTTP() + + mockDeleteRuleResponse(t, ruleID) + + err := Delete(client.ServiceClient(), ruleID).ExtractErr() + th.AssertNoErr(t, err) +}