fix openstack cdn service update unit test
diff --git a/openstack/cdn/v1/services/fixtures.go b/openstack/cdn/v1/services/fixtures.go
index d9bc9f2..c2f6acf 100644
--- a/openstack/cdn/v1/services/fixtures.go
+++ b/openstack/cdn/v1/services/fixtures.go
@@ -311,48 +311,14 @@
th.TestJSONRequest(t, r, `
[
{
- "op": "add",
- "path": "/domains/-",
- "value": {"domain": "appended.mocksite4.com"}
- },
- {
- "op": "add",
- "path": "/domains/4",
- "value": {"domain": "inserted.mocksite4.com"}
+ "op": "replace",
+ "path": "/origins",
+ "value": [{"origin": "44.33.22.11", "port": 80, "ssl": false}]
},
{
"op": "add",
"path": "/domains",
- "value": [
- {"domain": "bulkadded1.mocksite4.com"},
- {"domain": "bulkadded2.mocksite4.com"}
- ]
- },
- {
- "op": "replace",
- "path": "/origins/2",
- "value": {"origin": "44.33.22.11", "port": 80, "ssl": false}
- },
- {
- "op": "replace",
- "path": "/origins",
- "value": [
- {"origin": "44.33.22.11", "port": 80, "ssl": false},
- {"origin": "55.44.33.22", "port": 443, "ssl": true}
- ]
- },
- {
- "op": "remove",
- "path": "/caching/8"
- },
- {
- "op": "remove",
- "path": "/caching"
- },
- {
- "op": "replace",
- "path": "/name",
- "value": "differentServiceName"
+ "value": [{"domain": "appended.mocksite4.com"}]
}
]
`)
diff --git a/openstack/cdn/v1/services/requests_test.go b/openstack/cdn/v1/services/requests_test.go
index 6ace1ec..c5a0405 100644
--- a/openstack/cdn/v1/services/requests_test.go
+++ b/openstack/cdn/v1/services/requests_test.go
@@ -312,7 +312,7 @@
Append{
Value: DomainList{
Domain{
- Domain: "added.mocksite4.com",
+ Domain: "appended.mocksite4.com",
},
},
},