(id string)
| 86 | } |
| 87 | |
| 88 | func (suite *GarmSuite) InstallOrgWebhook(id string) *params.HookInfo { |
| 89 | t := suite.T() |
| 90 | t.Logf("Install org webhook with org_id %s", id) |
| 91 | webhookParams := params.InstallWebhookParams{ |
| 92 | WebhookEndpointType: params.WebhookEndpointDirect, |
| 93 | } |
| 94 | _, err := installOrgWebhook(suite.cli, suite.authToken, id, webhookParams) |
| 95 | suite.Require().NoError(err, "error installing organization webhook") |
| 96 | webhookInfo, err := getOrgWebhook(suite.cli, suite.authToken, id) |
| 97 | suite.Require().NoError(err, "error getting organization webhook") |
| 98 | return webhookInfo |
| 99 | } |
| 100 | |
| 101 | func (suite *GarmSuite) ValidateOrgWebhookInstalled(ghToken, url, orgName string) { |
| 102 | hook, err := getGhOrgWebhook(url, ghToken, orgName) |
no test coverage detected