const.go 2.5 KB

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