func (c context) deleteUsers() { 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() HandleDelete(t) err := databases.Delete(fake.ServiceClient(), instanceID, "{dbName}").ExtractErr() th.AssertNoErr(t, err) }