Update the service update CDN acceptance test.
diff --git a/acceptance/rackspace/cdn/v1/service_test.go b/acceptance/rackspace/cdn/v1/service_test.go
index af73dcf..ddec667 100644
--- a/acceptance/rackspace/cdn/v1/service_test.go
+++ b/acceptance/rackspace/cdn/v1/service_test.go
@@ -60,17 +60,13 @@
}
func testServiceUpdate(t *testing.T, client *gophercloud.ServiceClient, id string) {
- updateOpts := os.UpdateOpts{
- os.UpdateOpt{
- Op: os.Add,
- Path: "/domains/-",
- Value: map[string]interface{}{
- "domain": "newDomain.com",
- "protocol": "http",
- },
+ opts := []os.Patch{
+ os.Append{
+ Value: os.Domain{Domain: "newDomain.com", Protocol: "http"},
},
}
- loc, err := services.Update(client, id, updateOpts).Extract()
+
+ loc, err := services.Update(client, id, opts).Extract()
th.AssertNoErr(t, err)
t.Logf("Successfully updated service at location: %s", loc)
}