Adding list nodes operation
diff --git a/rackspace/lb/v1/nodes/fixtures.go b/rackspace/lb/v1/nodes/fixtures.go
index 0969561..77be3b6 100644
--- a/rackspace/lb/v1/nodes/fixtures.go
+++ b/rackspace/lb/v1/nodes/fixtures.go
@@ -10,8 +10,12 @@
fake "github.com/rackspace/gophercloud/testhelper/client"
)
-func mockListResponse(t *testing.T) {
- th.Mux.HandleFunc("/loadbalancers", func(w http.ResponseWriter, r *http.Request) {
+func _rootURL(lbID int) string {
+ return "/loadbalancers/" + strconv.Itoa(lbID) + "/nodes"
+}
+
+func mockListResponse(t *testing.T, lbID int) {
+ th.Mux.HandleFunc(_rootURL(lbID), func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
@@ -22,7 +26,7 @@
{
"nodes": [
{
- "id": "410",
+ "id": 410,
"address": "10.1.1.1",
"port": 80,
"condition": "ENABLED",
@@ -31,7 +35,7 @@
"type": "PRIMARY"
},
{
- "id": "411",
+ "id": 411,
"address": "10.1.1.2",
"port": 80,
"condition": "ENABLED",