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

Method InstallOrgWebhook

test/integration/organizations_test.go:88–99  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

86}
87
88func (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
101func (suite *GarmSuite) ValidateOrgWebhookInstalled(ghToken, url, orgName string) {
102 hook, err := getGhOrgWebhook(url, ghToken, orgName)

Callers 1

TestOrganizationsMethod · 0.95

Calls 2

getOrgWebhookFunction · 0.85
installOrgWebhookFunction · 0.70

Tested by

no test coverage detected