(orgName, credentialsName, orgWebhookSecret string)
| 62 | } |
| 63 | |
| 64 | func (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 | |
| 77 | func (suite *GarmSuite) UpdateOrg(id, credentialsName string) *params.Organization { |
| 78 | t := suite.T() |
no test coverage detected