func (c *context) deleteDBs() { for _, id := range c.DBIDs { err := db.Delete(c.client, c.instanceID, id).ExtractErr() c.AssertNoErr(err) c.Logf("Deleted DB %s", id) } }
func (c context) deleteDBs() { for _, id := range []string{"db1", "db2", "db3"} { err := db.Delete(c.client, c.instanceID, id).ExtractErr() c.AssertNoErr(err) c.Logf("Deleted DB %s", id) } }
func TestDelete(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() os.HandleDelete(t) err := os.Delete(fake.ServiceClient(), instanceID, "{dbName}").ExtractErr() th.AssertNoErr(t, err) }
func Delete(client *gophercloud.ServiceClient, instanceID, dbName string) os.DeleteResult { return os.Delete(client, instanceID, dbName) }