Final fixes to fixtures
diff --git a/rackspace/lb/v1/lbs/fixtures.go b/rackspace/lb/v1/lbs/fixtures.go
index 2c26d2c..73b5bf4 100644
--- a/rackspace/lb/v1/lbs/fixtures.go
+++ b/rackspace/lb/v1/lbs/fixtures.go
@@ -410,7 +410,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -427,7 +427,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -542,7 +542,7 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -559,6 +559,6 @@
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
diff --git a/rackspace/lb/v1/throttle/fixtures.go b/rackspace/lb/v1/throttle/fixtures.go
index 41be218..40223f6 100644
--- a/rackspace/lb/v1/throttle/fixtures.go
+++ b/rackspace/lb/v1/throttle/fixtures.go
@@ -40,12 +40,15 @@
th.TestJSONRequest(t, r, `
{
"connectionThrottle": {
- "maxConnections": 200
+ "maxConnectionRate": 0,
+ "maxConnections": 200,
+ "minConnections": 0,
+ "rateInterval": 0
}
}
`)
- w.WriteHeader(http.StatusOK)
+ w.WriteHeader(http.StatusAccepted)
})
}
@@ -53,6 +56,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)
})
}