Unit test for server reboots.
diff --git a/rackspace/compute/v2/servers/delegate_test.go b/rackspace/compute/v2/servers/delegate_test.go
index 5f282cc..02c23eb 100644
--- a/rackspace/compute/v2/servers/delegate_test.go
+++ b/rackspace/compute/v2/servers/delegate_test.go
@@ -80,8 +80,17 @@
func TestChangeAdminPassword(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
- os.HandleServerDeletionSuccessfully(t)
+ os.HandleAdminPasswordChangeSuccessfully(t)
res := ChangeAdminPassword(client.ServiceClient(), "1234asdf", "new-password")
th.AssertNoErr(t, res.Err)
}
+
+func TestReboot(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+ os.HandleRebootSuccessfully(t)
+
+ res := Reboot(client.ServiceClient(), "1234asdf", os.SoftReboot)
+ th.AssertNoErr(t, res.Err)
+}