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

Method TestGetEnterprisePool

database/sql/enterprise_test.go:759–771  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

757}
758
759func (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
773func (s *EnterpriseTestSuite) TestGetEnterprisePoolInvalidEnterpriseID() {
774 entity := params.ForgeEntity{

Callers

nothing calls this directly

Calls 3

GetEntityMethod · 0.65
CreateEntityPoolMethod · 0.65
GetEntityPoolMethod · 0.65

Tested by

no test coverage detected