kubernetes/test/e2e
Kubernetes Prow Robot c648d897e8
Merge pull request #100433 from gavinfish/e2e-common-unify
Unify some methods in e2e common
2021-04-08 22:09:14 -07:00
..
apimachinery Merge pull request #100199 from chaitanyabandi/ns-patch 2021-03-15 14:20:53 -07:00
apps align some of the pod start up times 2021-04-02 11:29:38 -07:00
auth hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
autoscaling Update e2e tests to use the policy v1 api 2021-03-09 10:29:11 -05:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud Split upgrade tests into sig-owned directories 2021-03-13 12:35:15 +01:00
common Merge pull request #100433 from gavinfish/e2e-common-unify 2021-04-08 22:09:14 -07:00
framework align some of the pod start up times 2021-04-02 11:29:38 -07:00
generated hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
instrumentation Move ownership of core events test to sig-instrumentation 2021-03-05 16:47:16 +01:00
kubectl Merge pull request #99293 from chymy/e2e-kubectl 2021-03-04 18:34:41 -08:00
lifecycle hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
network e2e test with hostNetwork pods can't run in parallel 2021-04-07 20:07:18 +02:00
node Merge pull request #99853 from wojtek-t/cleanup_describe_17 2021-03-08 19:23:44 -08:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
scheduling Tag Multi-AZ scheduling tests as serial 2021-03-18 10:31:03 -07:00
storage Merge pull request #100356 from mauriciopoppe/storage-windows-tests 2021-04-08 20:30:12 -07:00
testing-manifests e2e storage: use embedded mock CSI driver 2021-03-01 19:22:37 +01:00
ui hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
upgrades Move non-provider specific upgrade tests logic to upgrades package 2021-03-09 21:17:15 +01:00
windows Windows tests: Adds [Feature:GPUDevicePlugin] tag to Device Plugin test 2021-04-01 11:36:13 -07:00
e2e-example-config.json
e2e.go test/e2e: Allow test invokers to skip test waits before and after 2021-02-04 20:14:05 -05:00
e2e_test.go import the netpol testing package so that ownership is attributed correctly in the network policy testing suit 2020-12-23 07:40:47 -05:00
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go Move suites.go to e2e package 2019-11-14 23:50:48 +00:00
viperconfig.go e2e: move funs of framework/viperconfig to e2e 2019-12-31 16:42:30 +08:00
viperconfig_test.go e2e: move funs of framework/viperconfig to e2e 2019-12-31 16:42:30 +08:00

test/e2e

This is home to e2e tests used for presubmit, periodic, and postsubmit jobs.

Some of these jobs are merge-blocking, some are release-blocking.

e2e test ownership

All e2e tests must adhere to the following policies:

  • the test must be owned by one and only one SIG
  • the test must live in/underneath a sig-owned package matching pattern: test/e2e/[{subpath}/]{sig}/..., e.g.
    • test/e2e/auth - all tests owned by sig-auth
    • test/e2e/common/storage - all tests common to cluster-level and node-level e2e tests, owned by sig-node
    • test/e2e/upgrade/apps - all tests used in upgrade testing, owned by sig-apps
  • each sig-owned package should have an OWNERS file defining relevant approvers and labels for the owning sig, e.g.
# test/e2e/node/OWNERS
# See the OWNERS docs at https://go.k8s.io/owners

approvers:
- alice
- bob
- cynthia
emeritus_approvers:
- dave
reviewers:
- sig-node-reviewers
labels:
- sig/node
  • packages that use {subpath} should have an imports.go file importing sig-owned packages (for ginkgo's benefit), e.g.
// test/e2e/common/imports.go
package common

import (
	// ensure these packages are scanned by ginkgo for e2e tests
	_ "k8s.io/kubernetes/test/e2e/common/network"
	_ "k8s.io/kubernetes/test/e2e/common/node"
	_ "k8s.io/kubernetes/test/e2e/common/storage"
)
  • test ownership must be declared via a top-level SIGDescribe call defined in the sig-owned package, e.g.
// test/e2e/lifecycle/framework.go
package lifecycle

import "github.com/onsi/ginkgo"

// SIGDescribe annotates the test with the SIG label.
func SIGDescribe(text string, body func()) bool {
	return ginkgo.Describe("[sig-cluster-lifecycle] "+text, body)
}
// test/e2e/lifecycle/bootstrap/bootstrap_signer.go

package bootstrap

import (
	"github.com/onsi/ginkgo"
	"k8s.io/kubernetes/test/e2e/lifecycle"
)
var _ = lifecycle.SIGDescribe("[Feature:BootstrapTokens]", func() {
  /* ... */
  ginkgo.It("should sign the new added bootstrap tokens", func() {
    /* ... */
  })
  /* etc */
})

These polices are enforced:

  • via the merge-blocking presubmit job pull-kubernetes-verify
  • which ends up running hack/verify-e2e-test-ownership.sh
  • which can also be run via make verify WHAT=e2e-test-ownership

more info

See kubernetes/community/.../e2e-tests.md