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

Method TestGetOrganizationPool

database/sql/organizations_test.go:826–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

824}
825
826func (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
840func (s *OrgTestSuite) TestGetOrganizationPoolInvalidOrgID() {
841 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