MCPcopy Create free account
hub / github.com/cloudbase/garm / TestDeleteOrganization

Method TestDeleteOrganization

database/sql/organizations_test.go:430–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428}
429
430func (s *OrgTestSuite) TestDeleteOrganization() {
431 err := s.Store.DeleteOrganization(s.adminCtx, s.Fixtures.Orgs[0].ID)
432
433 s.Require().Nil(err)
434 _, err = s.Store.GetOrganizationByID(s.adminCtx, s.Fixtures.Orgs[0].ID)
435 s.Require().NotNil(err)
436 s.Require().Equal("error fetching org: not found", err.Error())
437}
438
439func (s *OrgTestSuite) TestDeleteOrganizationInvalidOrgID() {
440 err := s.Store.DeleteOrganization(s.adminCtx, "dummy-org-id")

Callers

nothing calls this directly

Calls 3

DeleteOrganizationMethod · 0.65
GetOrganizationByIDMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected