MCPcopy
hub / github.com/crowdsecurity/crowdsec / ValidateMachine

Function ValidateMachine

pkg/apiserver/apiserver_test.go:189–195  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, machineID string, config *csconfig.DatabaseCfg)

Source from the content-addressed store, hash-verified

187}
188
189func ValidateMachine(t *testing.T, ctx context.Context, machineID string, config *csconfig.DatabaseCfg) {
190 dbClient, err := database.NewClient(ctx, config, nil)
191 require.NoError(t, err)
192
193 err = dbClient.ValidateMachine(ctx, machineID)
194 require.NoError(t, err)
195}
196
197func GetMachineIP(t *testing.T, machineID string, config *csconfig.DatabaseCfg) string {
198 ctx := t.Context()

Callers 2

TestLoginFunction · 0.85
LoginToTestAPIFunction · 0.85

Calls 2

ValidateMachineMethod · 0.95
NewClientFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…