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

Method CreateConnection

backend/test/helper/api.go:48–56  ·  view source on GitHub ↗

CreateConnection FIXME

(pluginName string, connection any)

Source from the content-addressed store, hash-verified

46
47// CreateConnection FIXME
48func (d *DevlakeClient) CreateConnection(pluginName string, connection any) *Connection {
49 d.testCtx.Helper()
50 created := sendHttpRequest[Connection](d.testCtx, d.timeout, &testContext{
51 client: d,
52 printPayload: true,
53 inlineJson: false,
54 }, http.MethodPost, fmt.Sprintf("%s/plugins/%s/connections", d.Endpoint, pluginName), nil, connection)
55 return &created
56}
57
58// ListConnections FIXME
59func (d *DevlakeClient) ListConnections(pluginName string) []*Connection {

Callers 6

createConnectionFunction · 0.80
createConnectionFunction · 0.80
TestAzureFunction · 0.80
TestArgoCDPluginFunction · 0.80
TestGitlabPluginFunction · 0.80
CreateTestConnectionFunction · 0.80

Calls

no outgoing calls

Tested by 5

createConnectionFunction · 0.64
createConnectionFunction · 0.64
TestAzureFunction · 0.64
TestArgoCDPluginFunction · 0.64
TestGitlabPluginFunction · 0.64