Fixing tests :wrench:
diff --git a/rackspace/lb/v1/lbs/requests_test.go b/rackspace/lb/v1/lbs/requests_test.go
index 8c912ae..04c2785 100644
--- a/rackspace/lb/v1/lbs/requests_test.go
+++ b/rackspace/lb/v1/lbs/requests_test.go
@@ -4,6 +4,7 @@
"testing"
"github.com/rackspace/gophercloud/pagination"
+ "github.com/rackspace/gophercloud/rackspace/lb/v1/nodes"
th "github.com/rackspace/gophercloud/testhelper"
"github.com/rackspace/gophercloud/testhelper/client"
)
@@ -71,8 +72,8 @@
VIP{ID: 2341},
VIP{ID: 900001},
},
- Nodes: []Node{
- Node{Address: "10.1.1.1", Port: 80, Condition: "ENABLED"},
+ Nodes: []nodes.Node{
+ nodes.Node{Address: "10.1.1.1", Port: 80, Condition: "ENABLED"},
},
}
@@ -89,8 +90,8 @@
Status: BUILD,
Timeout: 30,
Cluster: Cluster{Name: "ztm-n01.staging1.lbaas.rackspace.net"},
- Nodes: []Node{
- Node{
+ Nodes: []nodes.Node{
+ nodes.Node{
Address: "10.1.1.1",
ID: 653,
Port: 80,
@@ -168,15 +169,15 @@
Version: "IPV4",
},
},
- Nodes: []Node{
- Node{
+ Nodes: []nodes.Node{
+ nodes.Node{
Address: "10.1.1.1",
ID: 1041,
Port: 80,
Status: "ONLINE",
Condition: "ENABLED",
},
- Node{
+ nodes.Node{
Address: "10.1.1.2",
ID: 1411,
Port: 80,
diff --git a/rackspace/lb/v1/nodes/requests_test.go b/rackspace/lb/v1/nodes/requests_test.go
index f50dae6..03f4b20 100644
--- a/rackspace/lb/v1/nodes/requests_test.go
+++ b/rackspace/lb/v1/nodes/requests_test.go
@@ -176,7 +176,9 @@
count := 0
- err := ListEvents(client.ServiceClient(), lbID, nodeID).EachPage(func(page pagination.Page) (bool, error) {
+ pager := ListEvents(client.ServiceClient(), lbID, nodeID, ListEventsOpts{})
+
+ err := pager.EachPage(func(page pagination.Page) (bool, error) {
count++
actual, err := ExtractNodeEvents(page)
th.AssertNoErr(t, err)