...

Source file src/k8s.io/kubernetes/test/conformance/image/go-runner/const.go

Documentation: k8s.io/kubernetes/test/conformance/image/go-runner

     1  /*
     2  Copyright 2019 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package main
    18  
    19  const (
    20  	// resultsTarballName is the name of the tarball we create with all the results.
    21  	resultsTarballName = "e2e.tar.gz"
    22  
    23  	// doneFileName is the name of the file that signals to the Sonobuoy worker we are
    24  	// done. The file should contain the path to the results file.
    25  	doneFileName = "done"
    26  
    27  	// resultsDirEnvKey is the env var which stores which directory to put the donefile
    28  	// and results into. It is a shared, mounted volume between the plugin and Sonobuoy.
    29  	resultsDirEnvKey = "RESULTS_DIR"
    30  
    31  	// logFileName is the name of the file which stdout is tee'd to.
    32  	logFileName = "e2e.log"
    33  
    34  	// Misc env vars which were explicitly supported prior to the go runner.
    35  	dryRunEnvKey     = "E2E_DRYRUN"
    36  	parallelEnvKey   = "E2E_PARALLEL"
    37  	focusEnvKey      = "E2E_FOCUS"
    38  	skipEnvKey       = "E2E_SKIP"
    39  	providerEnvKey   = "E2E_PROVIDER"
    40  	kubeconfigEnvKey = "KUBECONFIG"
    41  	ginkgoEnvKey     = "GINKGO_BIN"
    42  	testBinEnvKey    = "TEST_BIN"
    43  
    44  	// extraGinkgoArgsEnvKey, if set, will is a list of other arguments to pass to ginkgo.
    45  	// These are passed before the test binary and include things like `--afterSuiteHook`.
    46  	extraGinkgoArgsEnvKey = "E2E_EXTRA_GINKGO_ARGS"
    47  
    48  	// extraArgsEnvKey, if set, will is a list of other arguments to pass to the tests.
    49  	// These are passed after the `--` and include things like `--provider`.
    50  	extraArgsEnvKey = "E2E_EXTRA_ARGS"
    51  
    52  	// extraArgsSeparaterEnvKey specifies how to split the extra args values. If unset,
    53  	// it will default to splitting by spaces.
    54  	extraArgsSeparaterEnvKey = "E2E_EXTRA_ARGS_SEP"
    55  
    56  	defaultSkip         = ""
    57  	defaultFocus        = "\\[Conformance\\]"
    58  	defaultProvider     = "local"
    59  	defaultParallel     = "1"
    60  	defaultResultsDir   = "/tmp/results"
    61  	defaultGinkgoBinary = "/usr/local/bin/ginkgo"
    62  	defaultTestBinary   = "/usr/local/bin/e2e.test"
    63  
    64  	// serialTestsRegexp is the default skip value if running in parallel. Will not
    65  	// override an explicit E2E_SKIP value.
    66  	serialTestsRegexp = "\\[Serial\\]"
    67  )
    68  

View as plain text