rackspace update server acceptance test
diff --git a/acceptance/rackspace/compute/v2/servers_test.go b/acceptance/rackspace/compute/v2/servers_test.go
index 81c8599..a8b5937 100644
--- a/acceptance/rackspace/compute/v2/servers_test.go
+++ b/acceptance/rackspace/compute/v2/servers_test.go
@@ -100,6 +100,18 @@
logServer(t, details, -1)
}
+func updateServer(t *testing.T, client *gophercloud.ServiceClient, server *os.Server) {
+ t.Logf("> servers.Get")
+
+ opts := os.UpdateOpts{
+ Name: "updated-server",
+ }
+ updatedServer, err := servers.Update(client, server.ID, opts).Extract()
+ th.AssertNoErr(t, err)
+ th.AssertEquals(t, "updated-server", updatedServer.Name)
+ logServer(t, updatedServer, -1)
+}
+
func listServers(t *testing.T, client *gophercloud.ServiceClient) {
t.Logf("> servers.List")
@@ -197,6 +209,7 @@
defer deleteServer(t, client, server)
getServer(t, client, server)
+ updateServer(t, client, server)
listServers(t, client)
changeAdminPassword(t, client, server)
rebootServer(t, client, server)