operator-sdk test local
operator-sdk test local
Run End-To-End tests locally
Synopsis
Run End-To-End tests locally
operator-sdk test local <path to tests directory> [flags]
Options
--debug Enable debug-level logging
--global-manifest string Path to manifest for Global resources (e.g. CRD manifests)
--go-test-flags string Additional flags to pass to go test
-h, --help help for local
--image string Use a different operator image from the one specified in the namespaced manifest
--kubeconfig string Kubeconfig path
--local-operator-flags string The flags that the operator needs (while using --up-local). Example: "--flag1 value1 --flag2=value2"
--molecule-test-flags string Additional flags to pass to molecule test
--namespace string (Deprecated: use --operator-namespace instead) If non-empty, single namespace to run tests in
--namespaced-manifest string Path to manifest for per-test, namespaced resources (e.g. RBAC and Operator manifest)
--no-setup Disable test resource creation
--operator-namespace string Namespace where the operator will be deployed, CRs will be created and tests will be executed (By default it will be in the default namespace defined in the kubeconfig)
--skip-cleanup-error If set as true, the cleanup function responsible to remove all artifacts will be skipped if an error is faced.
--up-local Enable running operator locally with go run instead of as an image in the cluster
--watch-namespace string (only valid with --up-local) Namespace where the operator watches for changes. Set "" for AllNamespaces, set "ns1,ns2" for MultiNamespace(if not set then watches Operator Namespace
SEE ALSO
- operator-sdk test - Tests the operator
Last modified April 7, 2020: fix CLI docs for website, links and frontmatter (#2799) (8323f56b)
当前内容版权归 operatorframework 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 operatorframework .