Documentation ¶
Overview ¶
Package testenv is used to setup a e2e test environment/
Index ¶
- func CAPIOperatorDeployProvider(ctx context.Context, input CAPIOperatorDeployProviderInput)
- func CleanupTestCluster(ctx context.Context, input CleanupTestClusterInput)
- func CollectArtifacts(ctx context.Context, kubeconfigPath, name string, args ...string) error
- func DeployRancher(ctx context.Context, input DeployRancherInput)
- func DeployRancherTurtles(ctx context.Context, input DeployRancherTurtlesInput)
- func RancherDeployIngress(ctx context.Context, input RancherDeployIngressInput)
- type CAPIOperatorDeployProviderInput
- type CleanupTestClusterInput
- type DeployGiteaInput
- type DeployGiteaResult
- type DeployRancherInput
- type DeployRancherTurtlesInput
- type NamespaceName
- type RancherDeployIngressInput
- type SetupTestClusterInput
- type SetupTestClusterResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAPIOperatorDeployProvider ¶
func CAPIOperatorDeployProvider(ctx context.Context, input CAPIOperatorDeployProviderInput)
func CleanupTestCluster ¶
func CleanupTestCluster(ctx context.Context, input CleanupTestClusterInput)
func CollectArtifacts ¶
func DeployRancher ¶
func DeployRancher(ctx context.Context, input DeployRancherInput)
func DeployRancherTurtles ¶
func DeployRancherTurtles(ctx context.Context, input DeployRancherTurtlesInput)
func RancherDeployIngress ¶
func RancherDeployIngress(ctx context.Context, input RancherDeployIngressInput)
Types ¶
type CAPIOperatorDeployProviderInput ¶
type CAPIOperatorDeployProviderInput struct { E2EConfig *clusterctl.E2EConfig BootstrapClusterProxy framework.ClusterProxy CAPIProvidersSecretsYAML [][]byte CAPIProvidersYAML []byte TemplateData map[string]string WaitDeploymentsReadyInterval []interface{} WaitForDeployments []NamespaceName }
type CleanupTestClusterInput ¶
type CleanupTestClusterInput struct { SetupTestClusterResult SkipCleanup bool ArtifactFolder string }
type DeployGiteaInput ¶
type DeployGiteaInput struct { BootstrapClusterProxy framework.ClusterProxy HelmBinaryPath string ChartRepoName string ChartRepoURL string ChartName string ChartVersion string ValuesFilePath string Values map[string]string RolloutWaitInterval []interface{} ServiceWaitInterval []interface{} Username string Password string AuthSecretName string }
type DeployGiteaResult ¶
type DeployGiteaResult struct {
GitAddress string
}
func DeployGitea ¶
func DeployGitea(ctx context.Context, input DeployGiteaInput) *DeployGiteaResult
type DeployRancherInput ¶
type DeployRancherInput struct { BootstrapClusterProxy framework.ClusterProxy HelmBinaryPath string HelmExtraValuesPath string InstallCertManager bool CertManagerChartPath string CertManagerUrl string CertManagerRepoName string RancherChartRepoName string RancherChartURL string RancherChartPath string RancherVersion string RancherImageTag string RancherNamespace string RancherHost string RancherPassword string RancherFeatures string RancherPatches [][]byte RancherWaitInterval []interface{} ControllerWaitInterval []interface{} IsolatedMode bool RancherIngressConfig []byte RancherServicePatch []byte Development bool Variables turtlesframework.VariableCollection }
type DeployRancherTurtlesInput ¶
type DeployRancherTurtlesInput struct { BootstrapClusterProxy framework.ClusterProxy HelmBinaryPath string ChartPath string CAPIProvidersSecretYAML []byte CAPIProvidersYAML []byte Namespace string Image string Tag string WaitDeploymentsReadyInterval []interface{} AdditionalValues map[string]string }
type NamespaceName ¶
type RancherDeployIngressInput ¶
type RancherDeployIngressInput struct { BootstrapClusterProxy framework.ClusterProxy HelmBinaryPath string HelmExtraValuesPath string IsolatedMode bool NginxIngress []byte NginxIngressNamespace string IngressWaitInterval []interface{} NgrokApiKey string NgrokAuthToken string NgrokPath string NgrokRepoName string NgrokRepoURL string DefaultIngressClassPatch []byte }
type SetupTestClusterInput ¶
type SetupTestClusterResult ¶
type SetupTestClusterResult struct { // BootstrapClusterProvider manages provisioning of the the bootstrap cluster to be used for the e2e tests. // Please note that provisioning will be skipped if e2e.use-existing-cluster is provided. BootstrapClusterProvider bootstrap.ClusterProvider // BootstrapClusterProxy allows to interact with the bootstrap cluster to be used for the e2e tests. BootstrapClusterProxy framework.ClusterProxy // BootstrapClusterLogFolder is the log folder for the cluster BootstrapClusterLogFolder string // IsolatedHostName is the hostname to use for Rancher in isolated mode IsolatedHostName string }
func SetupTestCluster ¶
func SetupTestCluster(ctx context.Context, input SetupTestClusterInput) *SetupTestClusterResult
Click to show internal directories.
Click to hide internal directories.