Fixes to fixture files
diff --git a/rackspace/lb/v1/acl/fixtures.go b/rackspace/lb/v1/acl/fixtures.go
index a1b30c9..e3c941c 100644
--- a/rackspace/lb/v1/acl/fixtures.go
+++ b/rackspace/lb/v1/acl/fixtures.go
@@ -80,7 +80,7 @@
th.Mux.HandleFunc(_rootURL(lbID), func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -96,7 +96,7 @@
th.AssertEquals(t, strconv.Itoa(v), fids[k])
}
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -104,6 +104,6 @@
th.Mux.HandleFunc(_rootURL(lbID)+"/"+strconv.Itoa(networkID), func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
diff --git a/rackspace/lb/v1/lbs/fixtures.go b/rackspace/lb/v1/lbs/fixtures.go
index 53f5334..64ec3c5 100644
--- a/rackspace/lb/v1/lbs/fixtures.go
+++ b/rackspace/lb/v1/lbs/fixtures.go
@@ -81,7 +81,7 @@
`)
w.Header().Add("Content-Type", "application/json")
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
fmt.Fprintf(w, `
{
@@ -253,7 +253,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
diff --git a/rackspace/lb/v1/monitors/fixtures.go b/rackspace/lb/v1/monitors/fixtures.go
index 023a379..a565abc 100644
--- a/rackspace/lb/v1/monitors/fixtures.go
+++ b/rackspace/lb/v1/monitors/fixtures.go
@@ -51,7 +51,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -74,7 +74,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -82,6 +82,6 @@
th.Mux.HandleFunc(_rootURL(lbID), func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
diff --git a/rackspace/lb/v1/nodes/fixtures.go b/rackspace/lb/v1/nodes/fixtures.go
index 1eda271..0aea541 100644
--- a/rackspace/lb/v1/nodes/fixtures.go
+++ b/rackspace/lb/v1/nodes/fixtures.go
@@ -78,7 +78,7 @@
`)
w.Header().Add("Content-Type", "application/json")
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
fmt.Fprintf(w, `
{
@@ -127,7 +127,7 @@
th.Mux.HandleFunc(_nodeURL(lbID, nodeID), func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
diff --git a/rackspace/lb/v1/vips/fixtures.go b/rackspace/lb/v1/vips/fixtures.go
index 4c0a00d..158759f 100644
--- a/rackspace/lb/v1/vips/fixtures.go
+++ b/rackspace/lb/v1/vips/fixtures.go
@@ -83,6 +83,6 @@
th.Mux.HandleFunc(url, func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}