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

Method CreateOrg

test/integration/organizations_test.go:64–75  ·  view source on GitHub ↗
(orgName, credentialsName, orgWebhookSecret string)

Source from the content-addressed store, hash-verified

62}
63
64func (suite *GarmSuite) CreateOrg(orgName, credentialsName, orgWebhookSecret string) *params.Organization {
65 t := suite.T()
66 t.Logf("Create org with org_name %s", orgName)
67 orgParams := params.CreateOrgParams{
68 Name: orgName,
69 CredentialsName: credentialsName,
70 WebhookSecret: orgWebhookSecret,
71 }
72 org, err := createOrg(suite.cli, suite.authToken, orgParams)
73 suite.Require().NoError(err, "error creating organization")
74 return org
75}
76
77func (suite *GarmSuite) UpdateOrg(id, credentialsName string) *params.Organization {
78 t := suite.T()

Callers 1

TestOrganizationsMethod · 0.95

Calls 1

createOrgFunction · 0.70

Tested by

no test coverage detected