Adding batch delete nodes
diff --git a/rackspace/lb/v1/nodes/requests_test.go b/rackspace/lb/v1/nodes/requests_test.go
index 8e4813f..090f4fa 100644
--- a/rackspace/lb/v1/nodes/requests_test.go
+++ b/rackspace/lb/v1/nodes/requests_test.go
@@ -9,8 +9,9 @@
)
const (
- lbID = 12345
- nodeID = 67890
+ lbID = 12345
+ nodeID = 67890
+ nodeID2 = 67891
)
func TestList(t *testing.T) {
@@ -105,3 +106,15 @@
th.CheckDeepEquals(t, expected, actual)
}
+
+func TestBulkDelete(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ ids := []int{nodeID, nodeID2}
+
+ mockBatchDeleteResponse(t, lbID, ids)
+
+ err := BulkDelete(client.ServiceClient(), lbID, ids).ExtractErr()
+ th.AssertNoErr(t, err)
+}