()
| 757 | } |
| 758 | |
| 759 | func (s *EnterpriseTestSuite) TestGetEnterprisePool() { |
| 760 | entity, err := s.Fixtures.Enterprises[0].GetEntity() |
| 761 | s.Require().Nil(err) |
| 762 | pool, err := s.Store.CreateEntityPool(s.adminCtx, entity, s.Fixtures.CreatePoolParams) |
| 763 | if err != nil { |
| 764 | s.FailNow(fmt.Sprintf("cannot create enterprise pool: %v", err)) |
| 765 | } |
| 766 | |
| 767 | enterprisePool, err := s.Store.GetEntityPool(s.adminCtx, entity, pool.ID) |
| 768 | |
| 769 | s.Require().Nil(err) |
| 770 | s.Require().Equal(enterprisePool.ID, pool.ID) |
| 771 | } |
| 772 | |
| 773 | func (s *EnterpriseTestSuite) TestGetEnterprisePoolInvalidEnterpriseID() { |
| 774 | entity := params.ForgeEntity{ |
nothing calls this directly
no test coverage detected