()
| 330 | } |
| 331 | |
| 332 | func (s *OrgTestSuite) TestDeleteOrganization() { |
| 333 | s.Fixtures.PoolMgrCtrlMock.On("DeleteOrgPoolManager", mock.AnythingOfType("params.Organization")).Return(nil) |
| 334 | |
| 335 | err := s.Runner.DeleteOrganization(s.Fixtures.AdminContext, s.Fixtures.StoreOrgs["test-org-3"].ID, true) |
| 336 | |
| 337 | s.Fixtures.PoolMgrCtrlMock.AssertExpectations(s.T()) |
| 338 | s.Require().Nil(err) |
| 339 | |
| 340 | _, err = s.Fixtures.Store.GetOrganizationByID(s.Fixtures.AdminContext, s.Fixtures.StoreOrgs["test-org-3"].ID) |
| 341 | s.Require().Equal("error fetching org: not found", err.Error()) |
| 342 | } |
| 343 | |
| 344 | func (s *OrgTestSuite) TestDeleteOrganizationErrUnauthorized() { |
| 345 | err := s.Runner.DeleteOrganization(context.Background(), "dummy-org-id", true) |
nothing calls this directly
no test coverage detected