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

Function TestDeleteConnection

backend/test/e2e/remote/python_plugin_test.go:40–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func TestDeleteConnection(t *testing.T) {
41 client := CreateClient(t)
42
43 CreateTestConnection(client)
44
45 conns := client.ListConnections(PLUGIN_NAME)
46 require.Equal(t, 1, len(conns))
47 require.Equal(t, EMPTY_TOKEN, conns[0].Token)
48 refs := client.DeleteConnection(PLUGIN_NAME, conns[0].ID)
49 require.Equal(t, 0, len(refs.Projects))
50 require.Equal(t, 0, len(refs.Blueprints))
51}
52
53func TestDeleteConnection_Conflict(t *testing.T) {
54 client := CreateClient(t)

Callers

nothing calls this directly

Calls 4

CreateClientFunction · 0.85
CreateTestConnectionFunction · 0.85
ListConnectionsMethod · 0.45
DeleteConnectionMethod · 0.45

Tested by

no test coverage detected