(ctx context.Context, t *testing.T, ctl *controller)
| 585 | } |
| 586 | |
| 587 | func createGitOpsVCSUserTestProject(ctx context.Context, t *testing.T, ctl *controller) *v1pb.Project { |
| 588 | t.Helper() |
| 589 | projectID := generateRandomString("gitops-vcs-user") |
| 590 | projectResp, err := ctl.projectServiceClient.CreateProject(ctx, connect.NewRequest(&v1pb.CreateProjectRequest{ |
| 591 | Project: &v1pb.Project{ |
| 592 | Name: fmt.Sprintf("projects/%s", projectID), |
| 593 | Title: projectID, |
| 594 | AllowSelfApproval: true, |
| 595 | }, |
| 596 | ProjectId: projectID, |
| 597 | })) |
| 598 | require.NoError(t, err) |
| 599 | return projectResp.Msg |
| 600 | } |
| 601 | |
| 602 | func createGitOpsVCSUserTestTarget(ctx context.Context, t *testing.T, ctl *controller, project *v1pb.Project) string { |
| 603 | t.Helper() |
no test coverage detected