MCPcopy Index your code
hub / github.com/apache/devlake / CreateScopes

Method CreateScopes

backend/test/helper/api.go:221–230  ·  view source on GitHub ↗
(pluginName string, connectionId uint64, scopes ...any)

Source from the content-addressed store, hash-verified

219}
220
221func (d *DevlakeClient) CreateScopes(pluginName string, connectionId uint64, scopes ...any) any {
222 request := map[string]any{
223 "data": scopes,
224 }
225 return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{
226 client: d,
227 printPayload: true,
228 inlineJson: false,
229 }, http.MethodPut, fmt.Sprintf("%s/plugins/%s/connections/%d/scopes", d.Endpoint, pluginName, connectionId), nil, request)
230}
231
232func (d *DevlakeClient) UpdateScope(pluginName string, connectionId uint64, scopeId string, scope any) any {
233 return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{

Callers 6

TestTestmoPluginFunction · 0.80
TestPagerDutyPluginFunction · 0.80
TestAzureFunction · 0.80
TestArgoCDPluginFunction · 0.80
TestGitlabPluginFunction · 0.80
CreateTestScopeFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestTestmoPluginFunction · 0.64
TestPagerDutyPluginFunction · 0.64
TestAzureFunction · 0.64
TestArgoCDPluginFunction · 0.64
TestGitlabPluginFunction · 0.64