MCPcopy
hub / github.com/PeerDB-io/peerdb / RunQRepFlowWorkflow

Function RunQRepFlowWorkflow

flow/e2e/test_utils.go:506–517  ·  view source on GitHub ↗
(t *testing.T, tc client.Client, config *protos.QRepConfig)

Source from the content-addressed store, hash-verified

504}
505
506func RunQRepFlowWorkflow(t *testing.T, tc client.Client, config *protos.QRepConfig) WorkflowRun {
507 t.Helper()
508
509 client, err := NewApiClient()
510 require.NoError(t, err)
511 res, err := client.CreateQRepFlow(t.Context(), &protos.CreateQRepFlowRequest{QrepConfig: config})
512 require.NoError(t, err)
513 return WorkflowRun{
514 WorkflowRun: tc.GetWorkflow(t.Context(), res.WorkflowId, ""),
515 c: tc,
516 }
517}
518
519func GetOwnersSchema() *types.QRecordSchema {
520 return &types.QRecordSchema{

Calls 2

NewApiClientFunction · 0.85
CreateQRepFlowMethod · 0.80