Create VIP operation
diff --git a/rackspace/lb/v1/vips/requests_test.go b/rackspace/lb/v1/vips/requests_test.go
index a50fbae..762b139 100644
--- a/rackspace/lb/v1/vips/requests_test.go
+++ b/rackspace/lb/v1/vips/requests_test.go
@@ -38,3 +38,27 @@
th.AssertNoErr(t, err)
th.AssertEquals(t, 1, count)
}
+
+func TestCreate(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ mockCreateResponse(t, lbID)
+
+ opts := CreateOpts{
+ Type: "PUBLIC",
+ Version: "IPV6",
+ }
+
+ vip, err := Create(client.ServiceClient(), lbID, opts).Extract()
+ th.AssertNoErr(t, err)
+
+ expected := &VIP{
+ Address: "fd24:f480:ce44:91bc:1af2:15ff:0000:0002",
+ ID: 9000134,
+ Type: "PUBLIC",
+ Version: "IPV6",
+ }
+
+ th.CheckDeepEquals(t, expected, vip)
+}