Acceptance test for rebooting a server.
diff --git a/acceptance/rackspace/compute/v2/servers_test.go b/acceptance/rackspace/compute/v2/servers_test.go
index cf11d96..f5b018f 100644
--- a/acceptance/rackspace/compute/v2/servers_test.go
+++ b/acceptance/rackspace/compute/v2/servers_test.go
@@ -119,9 +119,32 @@
err = servers.WaitForStatus(client, s.ID, "ACTIVE", 300)
th.AssertNoErr(t, err)
+ t.Logf("Changing server password.")
err = servers.ChangeAdminPassword(client, s.ID, tools.MakeNewPassword(original)).Extract()
th.AssertNoErr(t, err)
err = servers.WaitForStatus(client, s.ID, "ACTIVE", 300)
th.AssertNoErr(t, err)
+ t.Logf("Password changed successfully.")
+}
+
+func TestReboot(t *testing.T) {
+ t.Parallel()
+
+ client, err := newClient()
+ th.AssertNoErr(t, err)
+
+ s := createServer(t, client)
+ defer deleteServer(t, client, s)
+
+ err = servers.WaitForStatus(client, s.ID, "ACTIVE", 300)
+ th.AssertNoErr(t, err)
+
+ t.Logf("Rebooting server.")
+ err = servers.Reboot(client, s.ID, os.HardReboot).Extract()
+ th.AssertNoErr(t, err)
+
+ err = servers.WaitForStatus(client, s.ID, "ACTIVE", 300)
+ th.AssertNoErr(t, err)
+ t.Logf("Server successfully rebooted.")
}