testenv

package
v0.0.0-...-1527ae7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package testenv is used to setup a e2e test environment/

Index

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 CollectArtifacts(ctx context.Context, kubeconfigPath, name string, args ...string) error

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 NamespaceName struct {
	Name      string
	Namespace string
}

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 SetupTestClusterInput struct {
	UseExistingCluster   bool
	E2EConfig            *clusterctl.E2EConfig
	ClusterctlConfigPath string
	Scheme               *runtime.Scheme
	ArtifactFolder       string
	Hostname             string
	KubernetesVersion    string
	IsolatedMode         bool
	HelmBinaryPath       string
}

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
}

Jump to

Keyboard shortcuts

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