github

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCRD

func CreateCRD(ctx context.Context, t *testing.T, repoinfo *ghlib.Repository, run *params.Run, opts options.E2E, targetNS string) error

func CreateCRDIncoming added in v0.17.0

func CreateCRDIncoming(ctx context.Context, t *testing.T, repoinfo *ghlib.Repository, run *params.Run, incomings *[]v1alpha1.Incoming, opts options.E2E, targetNS string) error

func PRCreate

func PRCreate(ctx context.Context, cs *params.Run, ghcnx *ghprovider.Provider, owner, repo, targetRef, defaultBranch, title string) (int, error)

func PushFilesToRef

func PushFilesToRef(ctx context.Context, client *ghlib.Client, commitMessage, baseBranch, targetRef, owner, repo string, files map[string]string) (string, *ghlib.Reference, error)

func Setup

func Setup(ctx context.Context, onSecondController, viaDirectWebhook bool) (context.Context, *params.Run, options.E2E, *github.Provider, error)

Types

type PRTest added in v0.25.0

type PRTest struct {
	Label            string
	YamlFiles        []string
	SecondController bool
	Webhook          bool
	NoStatusCheck    bool

	Cnx             *params.Run
	Options         options.E2E
	Provider        *ghprovider.Provider
	TargetNamespace string
	TargetRefName   string
	PRNumber        int
	SHA             string
	Logger          *zap.SugaredLogger
}

func (*PRTest) RunPullRequest added in v0.25.0

func (g *PRTest) RunPullRequest(ctx context.Context, t *testing.T)

func (*PRTest) RunPushRequest added in v0.25.0

func (g *PRTest) RunPushRequest(ctx context.Context, t *testing.T)

func (*PRTest) TearDown added in v0.25.0

func (g *PRTest) TearDown(ctx context.Context, t *testing.T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL