Documentation
¶
Overview ¶
package common contains common functions and values that are used across multiple e2e tests.
Index ¶
Constants ¶
View Source
const ( RetinaPort int = 10093 // netObsRGtag is used to tag resources created by this test suite NetObsRGtag = "-e2e-netobs-" KubeSystemNamespace = "kube-system" TestPodNamespace = "kube-system-test" AzureAppInsightsKeyEnv = "AZURE_APP_INSIGHTS_KEY" OutputFilePathEnv = "OUTPUT_FILEPATH" )
Variables ¶
View Source
var ( AzureLocations = []string{"eastus2", "northeurope", "uksouth", "centralindia", "westus2"} Architectures = []string{"amd64", "arm64"} CreateInfra = flag.Bool("create-infra", true, "create a Resource group, vNET and AKS cluster for testing") DeleteInfra = flag.Bool("delete-infra", true, "delete a Resource group, vNET and AKS cluster for testing") ScaleTestInfra = ScaleTestInfraHandler{ // contains filtered or unexported fields } // kubeconfig: path to kubeconfig file, in not provided, // a new k8s cluster will be created KubeConfig = flag.String("kubeConfig", "", "Path to kubeconfig file") )
View Source
var ( RetinaChartPath = func(rootDir string) string { return filepath.Join(rootDir, "deploy", "standard", "manifests", "controller", "helm", "retina") } RetinaAdvancedProfilePath = func(rootDir string) string { return filepath.Join(rootDir, "test", "profiles", "advanced", "values.yaml") } KubeConfigFilePath = func(rootDir string) string { return filepath.Join(rootDir, "test", "e2e", "test.pem") } )
Functions ¶
func ClusterNameForE2ETest ¶ added in v0.0.19
Types ¶
type ScaleTestInfraHandler ¶ added in v0.0.26
type ScaleTestInfraHandler struct {
// contains filtered or unexported fields
}
func (ScaleTestInfraHandler) GetClusterName ¶ added in v0.0.26
func (s ScaleTestInfraHandler) GetClusterName() string
func (ScaleTestInfraHandler) GetLocation ¶ added in v0.0.26
func (s ScaleTestInfraHandler) GetLocation() string
func (ScaleTestInfraHandler) GetNodes ¶ added in v0.0.26
func (s ScaleTestInfraHandler) GetNodes() string
func (ScaleTestInfraHandler) GetResourceGroup ¶ added in v0.0.26
func (s ScaleTestInfraHandler) GetResourceGroup() string
func (ScaleTestInfraHandler) GetSubscriptionID ¶ added in v0.0.26
func (s ScaleTestInfraHandler) GetSubscriptionID() string
Click to show internal directories.
Click to hide internal directories.