Delete VIPs
diff --git a/rackspace/lb/v1/vips/requests_test.go b/rackspace/lb/v1/vips/requests_test.go
index 762b139..74ac461 100644
--- a/rackspace/lb/v1/vips/requests_test.go
+++ b/rackspace/lb/v1/vips/requests_test.go
@@ -9,8 +9,9 @@
)
const (
- lbID = 12345
- vipID = 67890
+ lbID = 12345
+ vipID = 67890
+ vipID2 = 67891
)
func TestList(t *testing.T) {
@@ -62,3 +63,25 @@
th.CheckDeepEquals(t, expected, vip)
}
+
+func TestBulkDelete(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ ids := []int{vipID, vipID2}
+
+ mockBatchDeleteResponse(t, lbID, ids)
+
+ err := BulkDelete(client.ServiceClient(), lbID, ids).ExtractErr()
+ th.AssertNoErr(t, err)
+}
+
+func TestDelete(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ mockDeleteResponse(t, lbID, vipID)
+
+ err := Delete(client.ServiceClient(), lbID, vipID).ExtractErr()
+ th.AssertNoErr(t, err)
+}