Beginning work on Load Balancer resource
diff --git a/rackspace/lb/lb/fixtures.go b/rackspace/lb/lb/fixtures.go
new file mode 100644
index 0000000..331d06e
--- /dev/null
+++ b/rackspace/lb/lb/fixtures.go
@@ -0,0 +1,50 @@
+package lb
+
+import (
+ "fmt"
+ "net/http"
+ "testing"
+
+ th "github.com/rackspace/gophercloud/testhelper"
+ fake "github.com/rackspace/gophercloud/testhelper/client"
+)
+
+func mockListLBResponse(t *testing.T) {
+ th.Mux.HandleFunc("/loadbalancers", func(w http.ResponseWriter, r *http.Request) {
+ th.TestMethod(t, r, "GET")
+ th.TestHeader(t, r, "X-Auth-Token", fake.TokenID)
+
+ w.Header().Add("Content-Type", "application/json")
+ w.WriteHeader(http.StatusOK)
+
+ fmt.Fprintf(w, `
+{
+ "loadBalancers": [
+ {
+ "name": "lb-site1",
+ "id": 71,
+ "protocol": "HTTP",
+ "port": 80,
+ "algorithm": "RANDOM",
+ "status": "ACTIVE",
+ "nodeCount": 3,
+ "virtualIps": [
+ {
+ "id": 403,
+ "address": "206.55.130.1",
+ "type": "PUBLIC",
+ "ipVersion": "IPV4"
+ }
+ ],
+ "created": {
+ "time": "2010-11-30T03:23:42Z"
+ },
+ "updated": {
+ "time": "2010-11-30T03:23:44Z"
+ }
+ }
+ ]
+}
+ `)
+ })
+}