repos

package
v2.6.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CertPath    = mustToAbsPath("../fixture/certs/argocd-test-client.crt")
	CertKeyPath = mustToAbsPath("../fixture/certs/argocd-test-client.key")
)

Functions

func AddHTTPSCredentialsTLSClientCert

func AddHTTPSCredentialsTLSClientCert()

AddHTTPSRepoCredentialsTLSClientCert adds E2E for HTTPS repos to context

func AddHTTPSCredentialsUserPass

func AddHTTPSCredentialsUserPass()

AddHTTPSRepoCredentialsUserPass adds E2E username/password credentials for HTTPS repos to context

func AddHTTPSRepo

func AddHTTPSRepo(insecure bool, credentials bool, repoURLType fixture.RepoURLType)

sets the current repo as the default HTTPS test repo

func AddHTTPSRepoClientCert

func AddHTTPSRepoClientCert(insecure bool)

sets a HTTPS repo using TLS client certificate authentication

func AddHelmHTTPSCredentialsTLSClientCert added in v2.1.2

func AddHelmHTTPSCredentialsTLSClientCert()

AddHelmHTTPSCredentialsTLSClientCert adds credentials for Helm repos to context

func AddHelmOCIRepo added in v2.1.0

func AddHelmOCIRepo(name string)

func AddHelmRepo

func AddHelmRepo(name string)

func AddHelmoOCICredentialsWithoutUserPass added in v2.1.0

func AddHelmoOCICredentialsWithoutUserPass()

AddHelmoOCICredentialsWithoutUserPass adds credentials for Helm OIC repo to context

func AddSSHCredentials

func AddSSHCredentials()

AddSSHRepoCredentials adds E2E fixture credentials for SSH repos to context

func AddSSHRepo

func AddSSHRepo(insecure bool, credentials bool, repoURLType fixture.RepoURLType)

sets the current repo as the default SSH test repo

func PushChartToOCIRegistry added in v2.1.0

func PushChartToOCIRegistry(chartPathName, chartName, chartVersion string)

PushChartToOCIRegistry adds a helm chart to helm OCI registry

Types

type Actions added in v2.2.0

type Actions struct {
	// contains filtered or unexported fields
}

this implements the "when" part of given/when/then

none of the func implement error checks, and that is complete intended, you should check for errors using the Then()

func (*Actions) Create added in v2.2.0

func (a *Actions) Create(args ...string) *Actions

func (*Actions) Delete added in v2.2.0

func (a *Actions) Delete() *Actions

func (*Actions) DoNotIgnoreErrors added in v2.2.0

func (a *Actions) DoNotIgnoreErrors() *Actions

func (*Actions) Get added in v2.2.0

func (a *Actions) Get() *Actions

func (*Actions) IgnoreErrors added in v2.2.0

func (a *Actions) IgnoreErrors() *Actions

func (*Actions) List added in v2.2.0

func (a *Actions) List() *Actions

func (*Actions) Path added in v2.2.0

func (a *Actions) Path(path string) *Actions

func (*Actions) Project added in v2.2.0

func (a *Actions) Project(project string) *Actions

func (*Actions) Then added in v2.2.0

func (a *Actions) Then() *Consequences

type Consequences added in v2.2.0

type Consequences struct {
	// contains filtered or unexported fields
}

this implements the "then" part of given/when/then

func (*Consequences) And added in v2.2.0

func (c *Consequences) And(block func(repository *v1alpha1.Repository, err error)) *Consequences

func (*Consequences) AndCLIOutput added in v2.2.0

func (c *Consequences) AndCLIOutput(block func(output string, err error)) *Consequences

func (*Consequences) Expect added in v2.2.0

func (c *Consequences) Expect() *Consequences

func (*Consequences) Given added in v2.2.0

func (c *Consequences) Given() *Context

func (*Consequences) When added in v2.2.0

func (c *Consequences) When() *Actions

type Context added in v2.2.0

type Context struct {
	// contains filtered or unexported fields
}

this implements the "given" part of given/when/then

func Given added in v2.2.0

func Given(t *testing.T, sameState bool) *Context

func (*Context) And added in v2.2.0

func (c *Context) And(block func()) *Context

func (*Context) GetName added in v2.2.0

func (c *Context) GetName() string

func (*Context) Name added in v2.2.0

func (c *Context) Name(name string) *Context

func (*Context) Project added in v2.2.0

func (c *Context) Project(project string) *Context

func (*Context) RepoURLType added in v2.2.0

func (c *Context) RepoURLType(urlType fixture.RepoURLType) *Context

func (*Context) When added in v2.2.0

func (c *Context) When() *Actions

Jump to

Keyboard shortcuts

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