commit | 61f81ca5dbacee399cfa1204fe3444b6fa63c8b5 | [log] [tgz] |
---|---|---|
author | Jamie Hannaford <jamie.hannaford@rackspace.com> | Wed Nov 19 14:44:33 2014 +0100 |
committer | Jamie Hannaford <jamie.hannaford@rackspace.com> | Thu Nov 20 11:06:06 2014 +0100 |
tree | 228b5edfa455076efcedf8b8d9e3cd989b897a47 | |
parent | 8badf1ecf5a2478b4af94283dc27486d2035ecb6 [diff] [blame] |
Delete rule support
diff --git a/openstack/compute/v2/extensions/secgroups/requests_test.go b/openstack/compute/v2/extensions/secgroups/requests_test.go index f59471f..cf13056 100644 --- a/openstack/compute/v2/extensions/secgroups/requests_test.go +++ b/openstack/compute/v2/extensions/secgroups/requests_test.go
@@ -177,3 +177,13 @@ th.AssertDeepEquals(t, expected, rule) } + +func TestDeleteRule(t *testing.T) { + th.SetupHTTP() + defer th.TeardownHTTP() + + mockDeleteRuleResponse(t, ruleID) + + err := DeleteRule(client.ServiceClient(), ruleID).ExtractErr() + th.AssertNoErr(t, err) +}