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

Method UpdateOrgPool

test/integration/organizations_test.go:160–170  ·  view source on GitHub ↗
(orgID, orgPoolID string, maxRunners, minIdleRunners uint)

Source from the content-addressed store, hash-verified

158}
159
160func (suite *GarmSuite) UpdateOrgPool(orgID, orgPoolID string, maxRunners, minIdleRunners uint) *params.Pool {
161 t := suite.T()
162 t.Logf("Update org pool with org_id %s and pool_id %s", orgID, orgPoolID)
163 poolParams := params.UpdatePoolParams{
164 MinIdleRunners: &minIdleRunners,
165 MaxRunners: &maxRunners,
166 }
167 pool, err := updateOrgPool(suite.cli, suite.authToken, orgID, orgPoolID, poolParams)
168 suite.Require().NoError(err, "error updating organization pool")
169 return pool
170}
171
172func (suite *GarmSuite) WaitOrgRunningIdleInstances(orgID string, timeout time.Duration) {
173 t := suite.T()

Callers 1

TestOrganizationsMethod · 0.95

Calls 1

updateOrgPoolFunction · 0.70

Tested by

no test coverage detected