Documentation ¶
Index ¶
- Constants
- func PodPortForward(config *rest.Config, namespace, podName string, localPort, remotePort int, ...) error
- func ResetRepo() error
- func TrimRepoUrl(repoUrl string) string
- type E2ESuite
- type Expect
- func (e *Expect) CheckCommitStatus() *Expect
- func (e *Expect) ResourcesDontExist(apiVersion, resourceType string, resources []string) *Expect
- func (e *Expect) ResourcesExist(apiVersion, resourceType string, resources []string) *Expect
- func (e *Expect) VerifyResourceState(apiVersion, resourceType, resource, field, key string, value interface{}) *Expect
- func (e *Expect) When() *When
- type Given
- type When
- func (w *When) CreateGitSyncAndWait() *When
- func (w *When) DeleteGitSyncAndWait() *When
- func (w *When) Expect() *Expect
- func (w *When) Given() *Given
- func (w *When) ModifyResource(apiVersion, resourceType, resource, patch string) *When
- func (w *When) PushToGitRepo(directory string, fileNames []string, remove bool) *When
- func (w *When) UpdateAutoHealConfig(autoHealEnabled bool) *When
- func (w *When) UpdateGitSyncAndWait() *When
- func (w *When) UpdateRepoCredentialConfig(config string) *When
- func (w *When) Wait(timeout time.Duration) *When
Constants ¶
const ( /* resource names */ Namespace = "numaplane-system" TargetNamespace = "numaplane-e2e" E2ELabel = "numaplane-e2e" E2ELabelValue = "true" )
Variables ¶
This section is empty.
Functions ¶
func PodPortForward ¶
Types ¶
type E2ESuite ¶
func (*E2ESuite) BeforeTest ¶
func (*E2ESuite) CheckError ¶
func (*E2ESuite) SetupSuite ¶
func (s *E2ESuite) SetupSuite()
func (*E2ESuite) TearDownSuite ¶
func (s *E2ESuite) TearDownSuite()
type Expect ¶
type Expect struct {
// contains filtered or unexported fields
}
func (*Expect) CheckCommitStatus ¶
verify that GitSync's commitStatus is as expected: synced = true hash is equal to the last commit to the Git server
func (*Expect) ResourcesDontExist ¶
check that resources have been deleted or never existed
func (*Expect) ResourcesExist ¶
check that resources are created or exists
func (*Expect) VerifyResourceState ¶
func (e *Expect) VerifyResourceState(apiVersion, resourceType, resource, field, key string, value interface{}) *Expect
verify value of resource spec to determine if field is set TODO: this method currently only handles fields that are 2 levels down from root (i.e. "field.key"), and should be modified to support keys at any level, like: - "spec.metadata.labels.instance" - "spec.template.containers[0].name"
type Given ¶
type Given struct {
// contains filtered or unexported fields
}
func (*Given) ChangeBranch ¶ added in v0.2.0
func (*Given) InitializeGitRepo ¶
initializes Git repo specified by GitSync's RepoURL by pushing initial commit files these files should be located at testdata/<directory> directory name does not need to match gitSync.Spec.Path
type When ¶
type When struct {
// contains filtered or unexported fields
}
func (*When) DeleteGitSyncAndWait ¶
delete existing GitSync
func (*When) ModifyResource ¶
kubectl apply resource for self healing test
func (*When) PushToGitRepo ¶
make git push to Git server pod
func (*When) UpdateAutoHealConfig ¶ added in v0.2.0
UpdateAutoHealConfig update Numaplane controller configmap to enable/disable autohealing
func (*When) UpdateGitSyncAndWait ¶
update existing GitSync
func (*When) UpdateRepoCredentialConfig ¶ added in v0.2.0
UpdateRepoCredentialConfig updates Numaplane controller configmap