()
| 849 | } |
| 850 | |
| 851 | func (s *OrgTestSuite) TestDeleteOrganizationPool() { |
| 852 | entity, err := s.Fixtures.Orgs[0].GetEntity() |
| 853 | s.Require().Nil(err) |
| 854 | pool, err := s.Store.CreateEntityPool(s.adminCtx, entity, s.Fixtures.CreatePoolParams) |
| 855 | if err != nil { |
| 856 | s.FailNow(fmt.Sprintf("cannot create org pool: %v", err)) |
| 857 | } |
| 858 | |
| 859 | err = s.Store.DeleteEntityPool(s.adminCtx, entity, pool.ID) |
| 860 | |
| 861 | s.Require().Nil(err) |
| 862 | _, err = s.Store.GetEntityPool(s.adminCtx, entity, pool.ID) |
| 863 | s.Require().Equal("fetching pool: error finding pool: not found", err.Error()) |
| 864 | } |
| 865 | |
| 866 | func (s *OrgTestSuite) TestDeleteOrganizationPoolInvalidOrgID() { |
| 867 | entity := params.ForgeEntity{ |
nothing calls this directly
no test coverage detected