Documentation ¶
Index ¶
- func CheckIfPipelineRunsCancelled(t *testing.T, topts *TestOpts)
- func CreateAccess(topts *TestOpts, touser, accessMode string) error
- func CreateCRD(ctx context.Context, topts *TestOpts) error
- func CreateForkPullRequest(t *testing.T, topts *TestOpts, secondcnx pgitea.Provider, accessMode string) *gitea.PullRequest
- func CreateGiteaRepo(giteaClient *gitea.Client, user, name, hookURL string, onOrg bool, ...) (*gitea.Repository, error)
- func CreateGiteaUser(giteaClient *gitea.Client, username, password string) (*gitea.User, error)
- func CreateGiteaUserSecondCnx(topts *TestOpts, username, password string) (pgitea.Provider, *gitea.User, error)
- func CreateProvider(ctx context.Context, giteaURL, user, password string) (gitea.Provider, error)
- func CreateTeam(topts *TestOpts, orgName, teamName string) (*gitea.Team, error)
- func CreateToken(topts *TestOpts) (string, error)
- func GetGiteaRepo(giteaClient *gitea.Client, user, name string, _ *zap.SugaredLogger) (*gitea.Repository, error)
- func GetStandardParams(t *testing.T, topts *TestOpts, eventType string) (repoURL, sourceURL, sourceBranch, targetBranch string)
- func InitGitRepo(t *testing.T) (string, func())
- func MakeRequest(ctx context.Context, httpClient http.Client, url, username, password string) (*http.Response, error)
- func NewPR(t *testing.T, topts *TestOpts) func()
- func PostCommentOnPullRequest(t *testing.T, topt *TestOpts, body string)
- func PushFilesToRefAPI(t *testing.T, topts *TestOpts, entries map[string]string) (string, error)
- func PushToPullRequest(t *testing.T, topts *TestOpts, secondcnx pgitea.Provider, command string)
- func RemoveCommentMatching(topts *TestOpts, commentString *regexp.Regexp) error
- func Setup(ctx context.Context) (*params.Run, options.E2E, gitea.Provider, error)
- func TearDown(ctx context.Context, t *testing.T, topts *TestOpts)
- func TestPR(t *testing.T, topts *TestOpts) (context.Context, func())
- func WaitForPullRequestCommentMatch(t *testing.T, topts *TestOpts)
- func WaitForSecretDeletion(t *testing.T, topts *TestOpts, _ string)
- func WaitForStatus(t *testing.T, topts *TestOpts, ref, forcontext string, onlylatest bool)
- type TestOpts
- type Timelines
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfPipelineRunsCancelled ¶ added in v0.15.0
func CreateAccess ¶
func CreateForkPullRequest ¶
func CreateGiteaRepo ¶
func CreateGiteaRepo(giteaClient *gitea.Client, user, name, hookURL string, onOrg bool, logger *zap.SugaredLogger) (*gitea.Repository, error)
func CreateGiteaUser ¶
func CreateGiteaUserSecondCnx ¶ added in v0.20.0
func CreateGiteaUserSecondCnx(topts *TestOpts, username, password string) (pgitea.Provider, *gitea.User, error)
CreateGiteaUserSecondCnx creates a new user and a new provider for this user.
func CreateProvider ¶
func CreateTeam ¶ added in v0.20.0
func CreateToken ¶ added in v0.20.0
CreateToken creates gitea token with all scopes.
func GetGiteaRepo ¶ added in v0.23.0
func GetGiteaRepo(giteaClient *gitea.Client, user, name string, _ *zap.SugaredLogger) (*gitea.Repository, error)
func GetStandardParams ¶ added in v0.21.0
func InitGitRepo ¶
func MakeRequest ¶
func PushFilesToRefAPI ¶
PushFilesToRefAPI will push files to a given ref via API.
func PushToPullRequest ¶ added in v0.21.0
func RemoveCommentMatching ¶ added in v0.20.0
func WaitForSecretDeletion ¶ added in v0.14.3
Types ¶
type TestOpts ¶
type TestOpts struct { StatusOnlyLatest bool OnOrg bool NoPullRequestCreation bool SkipEventsCheck bool TargetNS string TargetEvent string Settings *v1alpha1.Settings Regexp *regexp.Regexp YAMLFiles map[string]string ExtraArgs map[string]string RepoCRParams *[]v1alpha1.Params CheckForStatus string TargetRefName string CheckForNumberStatus int ConcurrencyLimit *int ParamsRun *params.Run GiteaCNX pgitea.Provider Opts options.E2E PullRequest *gitea.PullRequest DefaultBranch string GitCloneURL string GitHTMLURL string GiteaAPIURL string GiteaPassword string ExpectEvents bool InternalGiteaURL string Token string FileChanges []scm.FileChange }
Click to show internal directories.
Click to hide internal directories.