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

Method DeleteConnection

backend/test/helper/api.go:70–78  ·  view source on GitHub ↗

DeleteConnection FIXME

(pluginName string, connectionId uint64)

Source from the content-addressed store, hash-verified

68
69// DeleteConnection FIXME
70func (d *DevlakeClient) DeleteConnection(pluginName string, connectionId uint64) services.BlueprintProjectPairs {
71 d.testCtx.Helper()
72 refs := sendHttpRequest[shared.TypedApiBody[services.BlueprintProjectPairs]](d.testCtx, d.timeout, &testContext{
73 client: d,
74 printPayload: true,
75 inlineJson: false,
76 }, http.MethodDelete, fmt.Sprintf("%s/plugins/%s/connections/%d", d.Endpoint, pluginName, connectionId), nil, nil)
77 return refs.Data
78}
79
80// CreateBasicBlueprintV2 FIXME
81func (d *DevlakeClient) CreateBasicBlueprintV2(name string, config *BlueprintV2Config) models.Blueprint {

Callers 8

TestTestmoPluginFunction · 0.45
TestPagerDutyPluginFunction · 0.45
TestAzureFunction · 0.45
TestArgoCDPluginFunction · 0.45
TestGitlabPluginFunction · 0.45
TestDeleteConnectionFunction · 0.45

Calls 1

sendHttpRequestFunction · 0.85

Tested by 8

TestTestmoPluginFunction · 0.36
TestPagerDutyPluginFunction · 0.36
TestAzureFunction · 0.36
TestArgoCDPluginFunction · 0.36
TestGitlabPluginFunction · 0.36
TestDeleteConnectionFunction · 0.36