sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/e2e_suite_vars.go (about)

     1  //go:build e2e
     2  // +build e2e
     3  
     4  /*
     5  Copyright 2021 The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  package e2e
    21  
    22  import (
    23  	"sigs.k8s.io/cluster-api/test/framework"
    24  	"sigs.k8s.io/cluster-api/test/framework/bootstrap"
    25  	"sigs.k8s.io/cluster-api/test/framework/clusterctl"
    26  )
    27  
    28  const (
    29  	kubesystem  = "kube-system"
    30  	activitylog = "azure-activity-logs"
    31  	nodesDir    = "nodes"
    32  )
    33  
    34  // Test suite flags
    35  var (
    36  	// configPath is the path to the e2e config file.
    37  	configPath string
    38  
    39  	// useExistingCluster instructs the test to use the current cluster instead of creating a new one (default discovery rules apply).
    40  	useExistingCluster bool
    41  
    42  	// artifactFolder is the folder to store e2e test artifacts.
    43  	artifactFolder string
    44  
    45  	// skipCleanup prevents cleanup of test resources e.g. for debug purposes.
    46  	skipCleanup bool
    47  
    48  	// skipLogCollection prevents the log collection process from running.
    49  	skipLogCollection bool
    50  )
    51  
    52  // Test suite global vars
    53  var (
    54  	// e2eConfig to be used for this test, read from configPath.
    55  	e2eConfig *clusterctl.E2EConfig
    56  
    57  	// clusterctlConfigPath to be used for this test, created by generating a clusterctl local repository
    58  	// with the providers specified in the configPath.
    59  	clusterctlConfigPath string
    60  
    61  	// bootstrapClusterProvider manages provisioning of the bootstrap cluster to be used for the e2e tests.
    62  	// Please note that provisioning will be skipped if e2e.use-existing-cluster is provided.
    63  	bootstrapClusterProvider bootstrap.ClusterProvider
    64  
    65  	// bootstrapClusterProxy allows to interact with the bootstrap cluster to be used for the e2e tests.
    66  	bootstrapClusterProxy framework.ClusterProxy
    67  
    68  	// kubetestConfigFilePath is the path to the kubetest configuration file
    69  	kubetestConfigFilePath string
    70  
    71  	// kubetestRepoListPath
    72  	kubetestRepoListPath string
    73  
    74  	// useCIArtifacts specifies whether or not to use the latest build from the main branch of the Kubernetes repository
    75  	useCIArtifacts bool
    76  
    77  	// usePRArtifacts specifies whether or not to use the build from a PR of the Kubernetes repository
    78  	usePRArtifacts bool
    79  )