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

Method CreateBasicBlueprintV2

backend/test/helper/api.go:81–105  ·  view source on GitHub ↗

CreateBasicBlueprintV2 FIXME

(name string, config *BlueprintV2Config)

Source from the content-addressed store, hash-verified

79
80// CreateBasicBlueprintV2 FIXME
81func (d *DevlakeClient) CreateBasicBlueprintV2(name string, config *BlueprintV2Config) models.Blueprint {
82 blueprint := models.Blueprint{
83 Name: name,
84 ProjectName: config.ProjectName,
85 Mode: models.BLUEPRINT_MODE_NORMAL,
86 Plan: nil,
87 Enable: true,
88 CronConfig: "manual",
89 IsManual: true,
90 SyncPolicy: models.SyncPolicy{
91 SkipOnFail: config.SkipOnFail,
92 },
93 Labels: []string{"test-label"},
94 Connections: []*models.BlueprintConnection{
95 config.Connection,
96 },
97 }
98 d.testCtx.Helper()
99 blueprint = sendHttpRequest[models.Blueprint](d.testCtx, d.timeout, &testContext{
100 client: d,
101 printPayload: true,
102 inlineJson: false,
103 }, http.MethodPost, fmt.Sprintf("%s/blueprints", d.Endpoint), nil, &blueprint)
104 return blueprint
105}
106
107// PatchBasicBlueprintV2 FIXME
108func (d *DevlakeClient) PatchBasicBlueprintV2(blueprintId uint64, name string, config *BlueprintV2Config) models.Blueprint {

Callers 4

TestTestmoPluginFunction · 0.80
TestPagerDutyPluginFunction · 0.80
TestAzureFunction · 0.80
TestGitlabPluginFunction · 0.80

Calls 1

sendHttpRequestFunction · 0.85

Tested by 4

TestTestmoPluginFunction · 0.64
TestPagerDutyPluginFunction · 0.64
TestAzureFunction · 0.64
TestGitlabPluginFunction · 0.64