Documentation ¶
Index ¶
- Variables
- func AddHTTPSCredentialsTLSClientCert()
- func AddHTTPSCredentialsUserPass()
- func AddHTTPSRepo(insecure bool, credentials bool, repoURLType fixture.RepoURLType)
- func AddHTTPSRepoClientCert(insecure bool)
- func AddHelmHTTPSCredentialsTLSClientCert()
- func AddHelmOCIRepo(name string)
- func AddHelmRepo(name string)
- func AddHelmoOCICredentialsWithoutUserPass()
- func AddSSHCredentials()
- func AddSSHRepo(insecure bool, credentials bool, repoURLType fixture.RepoURLType)
- func PushChartToOCIRegistry(chartPathName, chartName, chartVersion string)
- type Actions
- func (a *Actions) Create(args ...string) *Actions
- func (a *Actions) Delete() *Actions
- func (a *Actions) DoNotIgnoreErrors() *Actions
- func (a *Actions) Get() *Actions
- func (a *Actions) IgnoreErrors() *Actions
- func (a *Actions) List() *Actions
- func (a *Actions) Path(path string) *Actions
- func (a *Actions) Project(project string) *Actions
- func (a *Actions) Then() *Consequences
- type Consequences
- func (c *Consequences) And(block func(repository *v1alpha1.Repository, err error)) *Consequences
- func (c *Consequences) AndCLIOutput(block func(output string, err error)) *Consequences
- func (c *Consequences) Expect() *Consequences
- func (c *Consequences) Given() *Context
- func (c *Consequences) When() *Actions
- type Context
Constants ¶
This section is empty.
Variables ¶
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) DoNotIgnoreErrors ¶ added in v2.2.0
func (*Actions) IgnoreErrors ¶ added in v2.2.0
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 GivenWithSameState ¶
GivenWithSameState skips cleaning state. Use this when you've already ensured you have a clean state in your test setup don't want to waste time by doing so again.
func (*Context) RepoURLType ¶ added in v2.2.0
func (c *Context) RepoURLType(urlType fixture.RepoURLType) *Context