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

Method TestConnection

backend/test/helper/api.go:38–45  ·  view source on GitHub ↗

CreateConnection FIXME

(pluginName string, connection any)

Source from the content-addressed store, hash-verified

36
37// CreateConnection FIXME
38func (d *DevlakeClient) TestConnection(pluginName string, connection any) {
39 d.testCtx.Helper()
40 _ = sendHttpRequest[Connection](d.testCtx, d.timeout, &testContext{
41 client: d,
42 printPayload: true,
43 inlineJson: false,
44 }, http.MethodPost, fmt.Sprintf("%s/plugins/%s/test", d.Endpoint, pluginName), nil, connection)
45}
46
47// CreateConnection FIXME
48func (d *DevlakeClient) CreateConnection(pluginName string, connection any) *Connection {

Callers 4

createConnectionFunction · 0.45
createConnectionFunction · 0.45
TestArgoCDPluginFunction · 0.45
TestGitlabPluginFunction · 0.45

Calls

no outgoing calls

Tested by 4

createConnectionFunction · 0.36
createConnectionFunction · 0.36
TestArgoCDPluginFunction · 0.36
TestGitlabPluginFunction · 0.36