Adding instance actions
diff --git a/openstack/db/v1/instances/requests_test.go b/openstack/db/v1/instances/requests_test.go
index 0dfcdc6..e079dd0 100644
--- a/openstack/db/v1/instances/requests_test.go
+++ b/openstack/db/v1/instances/requests_test.go
@@ -155,3 +155,36 @@
th.AssertNoErr(t, err)
th.AssertEquals(t, true, isEnabled)
}
+
+func TestRestartService(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ HandleRestartSuccessfully(t, instanceID)
+
+ res := RestartService(fake.ServiceClient(), instanceID)
+
+ th.AssertNoErr(t, res.Err)
+}
+
+func TestResizeInstance(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ HandleResizeInstanceSuccessfully(t, instanceID)
+
+ res := ResizeInstance(fake.ServiceClient(), instanceID, "2")
+
+ th.AssertNoErr(t, res.Err)
+}
+
+func TestResizeVolume(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ HandleResizeVolSuccessfully(t, instanceID)
+
+ res := ResizeVolume(fake.ServiceClient(), instanceID, 4)
+
+ th.AssertNoErr(t, res.Err)
+}