MCPcopy
hub / github.com/apache/devlake / CreateScopeConfig

Method CreateScopeConfig

backend/test/helper/api.go:273–280  ·  view source on GitHub ↗
(pluginName string, connectionId uint64, scopeConfig any)

Source from the content-addressed store, hash-verified

271}
272
273func (d *DevlakeClient) CreateScopeConfig(pluginName string, connectionId uint64, scopeConfig any) any {
274 return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{
275 client: d,
276 printPayload: true,
277 inlineJson: false,
278 }, http.MethodPost, fmt.Sprintf("%s/plugins/%s/connections/%d/scope-configs",
279 d.Endpoint, pluginName, connectionId), nil, scopeConfig)
280}
281
282func (d *DevlakeClient) PatchScopeConfig(pluginName string, connectionId uint64, scopeConfigId uint64, scopeConfig any) any {
283 return sendHttpRequest[any](d.testCtx, d.timeout, &testContext{

Callers 8

TestAzureFunction · 0.80
TestArgoCDPluginFunction · 0.80
TestGitlabPluginFunction · 0.80
CreateTestScopeConfigFunction · 0.80
TestCreateScopeConfigFunction · 0.80
TestUpdateScopeConfigFunction · 0.80
TestDeleteScopeConfigFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestAzureFunction · 0.64
TestArgoCDPluginFunction · 0.64
TestGitlabPluginFunction · 0.64
TestCreateScopeConfigFunction · 0.64
TestUpdateScopeConfigFunction · 0.64
TestDeleteScopeConfigFunction · 0.64