A Go framework for end-to-end testing of components running in Kubernetes clusters.
A Go framework for end-to-end testing of components running in Kubernetes clusters.
A Go framework for end-to-end testing of components running in Kubernetes clusters.
The primary goal of this project is to provide a go test(able)
framework that uses the native Go testing API to define end-to-end tests suites
that can be used to test Kubernetes components. Some additional goals
include:
For more detail, see the design document.
The Go package is designed to be integrated directly in your test. Simply update your project to pull the desired Go modules:
go get sigs.k8s.io/e2e-framework/pkg/env
go get sigs.k8s.io/e2e-framework/klientThe framework uses the built-in Go testing framework directly to define and run tests.
TestMainUse function TestMain to define package-wide testing steps and configure behavior. The following examples uses pre-defined steps to create a KinD cluster before running any test in the package:
…Use a Go test function to define features to be tested as shown below:
…Use the Go testing tooling to run the tests in the package as shown below. The following would run all tests except those with label type=ns-count:
go test ./package -args --skip-labels="type=ns-count"See the ./examples directory for additional examples showing how to use the framework.
Learn how to engage with the Kubernetes community on the community page.
You can reach the maintainers of this project at:
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.
No open issues yet, or sync has not completed.