Update node
diff --git a/rackspace/lb/v1/nodes/requests_test.go b/rackspace/lb/v1/nodes/requests_test.go
index 5fdeadd..121cbee 100644
--- a/rackspace/lb/v1/nodes/requests_test.go
+++ b/rackspace/lb/v1/nodes/requests_test.go
@@ -140,3 +140,20 @@
th.AssertDeepEquals(t, expected, node)
}
+
+func TestUpdate(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ mockUpdateResponse(t, lbID, nodeID)
+
+ opts := UpdateOpts{
+ Address: "1.2.3.4",
+ Weight: IntToPointer(10),
+ Condition: DRAINING,
+ Type: SECONDARY,
+ }
+
+ err := Update(client.ServiceClient(), lbID, nodeID, opts).ExtractErr()
+ th.AssertNoErr(t, err)
+}