()
| 824 | } |
| 825 | |
| 826 | func (s *OrgTestSuite) TestGetOrganizationPool() { |
| 827 | entity, err := s.Fixtures.Orgs[0].GetEntity() |
| 828 | s.Require().Nil(err) |
| 829 | pool, err := s.Store.CreateEntityPool(s.adminCtx, entity, s.Fixtures.CreatePoolParams) |
| 830 | if err != nil { |
| 831 | s.FailNow(fmt.Sprintf("cannot create org pool: %v", err)) |
| 832 | } |
| 833 | |
| 834 | orgPool, err := s.Store.GetEntityPool(s.adminCtx, entity, pool.ID) |
| 835 | |
| 836 | s.Require().Nil(err) |
| 837 | s.Require().Equal(orgPool.ID, pool.ID) |
| 838 | } |
| 839 | |
| 840 | func (s *OrgTestSuite) TestGetOrganizationPoolInvalidOrgID() { |
| 841 | entity := params.ForgeEntity{ |
nothing calls this directly
no test coverage detected