Adding more tests and delete fn
diff --git a/openstack/db/v1/instances/requests_test.go b/openstack/db/v1/instances/requests_test.go
index 6c0825b..5e5dcaa 100644
--- a/openstack/db/v1/instances/requests_test.go
+++ b/openstack/db/v1/instances/requests_test.go
@@ -120,3 +120,13 @@
th.AssertNoErr(t, err)
th.AssertDeepEquals(t, instance, expectedInstance)
}
+
+func TestDeleteInstance(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ HandleDeleteInstanceSuccessfully(t, instanceID)
+
+ res := Delete(fake.ServiceClient(), instanceID)
+ th.AssertNoErr(t, res.Err)
+}