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, ...) *gitea.PullRequest
- func CreateGiteaRepo(giteaClient *gitea.Client, user, name, hookURL string) (*gitea.Repository, error)
- func CreateGiteaUser(giteaClient *gitea.Client, apiURL, username, password string) (pgitea.Provider, error)
- func CreateProvider(ctx context.Context, giteaURL, user, password string) (gitea.Provider, error)
- func InitGitRepo(t *testing.T) (string, func())
- func MakeGitCloneURL(targetURL, giteaUsername, giteaPassword string) (string, error)
- func MakeRequest(ctx context.Context, httpClient http.Client, url, username, password string) (*http.Response, error)
- func PostCommentOnPullRequest(t *testing.T, topt *TestOpts, body string)
- func PushFilesToRefAPI(t *testing.T, topts *TestOpts, entries map[string]string) (string, error)
- func PushFilesToRefGit(t *testing.T, topts *TestOpts, entries map[string]string, baseRefFrom string)
- 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) func()
- func WaitForPullRequestCommentMatch(ctx context.Context, t *testing.T, topts *TestOpts)
- func WaitForSecretDeletion(t *testing.T, topts *TestOpts, ref string)
- func WaitForStatus(t *testing.T, topts *TestOpts, ref string)
- 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 CreateGiteaUser ¶
func CreateProvider ¶
func InitGitRepo ¶
func MakeGitCloneURL ¶
Make a clone url with username and password
func MakeRequest ¶
func PushFilesToRefAPI ¶
PushFilesToRefAPI will push files to a given ref via API
func PushFilesToRefGit ¶
func WaitForSecretDeletion ¶ added in v0.14.3
Types ¶
type TestOpts ¶
type TestOpts struct { NoCleanup bool TargetNS string TargetEvent string Regexp *regexp.Regexp YAMLFiles map[string]string ExtraArgs map[string]string CheckForStatus string TargetRefName string CheckForNumberStatus int ConcurrencyLimit *int Clients *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 }
Click to show internal directories.
Click to hide internal directories.