MCPcopy Create free account
hub / github.com/apache/devlake / testOld

Function testOld

config-ui/src/api/connection/index.ts:61–76  ·  view source on GitHub ↗
(
  plugin: string,
  payload: Pick<
    IConnectionAPI,
    | 'endpoint'
    | 'authMethod'
    | 'username'
    | 'password'
    | 'token'
    | 'appId'
    | 'secretKey'
    | 'proxy'
    | 'dbUrl'
    | 'organization'
  >,
)

Source from the content-addressed store, hash-verified

59 request(`/plugins/${plugin}/connections/${connectionId}/test`, { method: 'post', data: payload });
60
61export const testOld = (
62 plugin: string,
63 payload: Pick<
64 IConnectionAPI,
65 | 'endpoint'
66 | 'authMethod'
67 | 'username'
68 | 'password'
69 | 'token'
70 | 'appId'
71 | 'secretKey'
72 | 'proxy'
73 | 'dbUrl'
74 | 'organization'
75 >,
76): Promise<IConnectionOldTestResult> => request(`/plugins/${plugin}/test`, { method: 'post', data: payload });

Callers

nothing calls this directly

Calls 1

requestFunction · 0.90

Tested by

no test coverage detected