Documentation
¶
Index ¶
- func AddGitLabProjectMember(client *gitlab.Client, projectID int, userID int64, ...) error
- func CleanTag(client *gitlab2.Client, pid int, tagName string)
- func CreateCRD(ctx context.Context, topts *TestOpts) error
- func CreateGitLabProject(client *gitlab.Client, groupPath, projectName, hookURL, webhookSecret string, ...) (*gitlab.Project, error)
- func CreateMR(client *gitlab.Client, pid int, sourceBranch, targetBranch, title string) (int, error)
- func CreateTag(client *gitlab.Client, pid int, tagName string) error
- func DeleteTag(client *gitlab.Client, pid int, tagName string) error
- func ForkGitLabProject(client *gitlab.Client, projectID int, namespacePath string, ...) (*gitlab.Project, error)
- func HasSecondIdentity() bool
- func Setup(ctx context.Context) (*params.Run, options.E2E, gitlab.Provider, error)
- func SetupSecond(ctx context.Context, run *params.Run) (options.E2E, gitlab.Provider, error)
- func SetupSecondIdentity(ctx context.Context, topts *TestOpts) error
- func TearDown(ctx context.Context, t *testing.T, topts *TestOpts)
- func TestMR(t *testing.T, topts *TestOpts) (context.Context, func())
- type TestOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGitLabProjectMember ¶ added in v0.44.0
func AddGitLabProjectMember(client *gitlab.Client, projectID int, userID int64, accessLevel gitlab.AccessLevelValue, logger *zap.SugaredLogger) error
func CleanTag ¶ added in v0.28.1
CleanTag a wrapper function on DeleteTag to ignore errors in cleaning.
func CreateGitLabProject ¶ added in v0.43.0
func CreateGitLabProject(client *gitlab.Client, groupPath, projectName, hookURL, webhookSecret string, logger *zap.SugaredLogger) (*gitlab.Project, error)
CreateGitLabProject creates a new GitLab project inside a group and adds a webhook pointing to the given hookURL (for example, a smee channel URL used to forward events to the controller). The project is initialised with a README on the "main" branch.
func ForkGitLabProject ¶ added in v0.44.0
func HasSecondIdentity ¶ added in v0.44.0
func HasSecondIdentity() bool
func SetupSecond ¶ added in v0.44.0
func SetupSecondIdentity ¶ added in v0.44.0
Types ¶
type TestOpts ¶ added in v0.43.0
type TestOpts struct {
TargetNS string
TargetRefName string
TargetEvent string
DefaultBranch string
ProjectID int
ProjectInfo *gitlab.Project
MRNumber int
GitCloneURL string
GitHTMLURL string
SHA string
ParamsRun *params.Run
GLProvider gitlab2.Provider
SecondGLProvider gitlab2.Provider
Opts options.E2E
SecondOpts options.E2E
YAMLFiles map[string]string
ExtraArgs map[string]string
Regexp *regexp.Regexp
CheckForStatus string
CheckForNumberStatus int
Settings *v1alpha1.Settings
Incomings *[]v1alpha1.Incoming
NoMRCreation bool
SkipEventsCheck bool
ExpectEvents bool
}
Click to show internal directories.
Click to hide internal directories.