kubernetes/test/e2e
Kubernetes Prow Robot 0fecc01567
Merge pull request #100300 from DangerOnTheRanger/reboot-flake-fix
Fix E2E node reboot test flake
2021-03-18 16:30:36 -07:00
..
apimachinery Merge pull request #100199 from chaitanyabandi/ns-patch 2021-03-15 14:20:53 -07:00
apps Merge pull request #100260 from liggitt/pdb-crud 2021-03-16 14:50:40 -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 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
cloud Split upgrade tests into sig-owned directories 2021-03-13 12:35:15 +01:00
common Merge pull request #100050 from neolit123/1.21-tag-node-probe-test-with-kubelet-version 2021-03-12 18:01:03 -08:00
framework Merge pull request #100300 from DangerOnTheRanger/reboot-flake-fix 2021-03-18 16:30:36 -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 Merge pull request #100189 from aramase/update-dualstack-test 2021-03-18 15:26:36 -07: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 Make sig-storage be the owner of ubernetes_lite_volumes test 2021-03-03 15:17:28 +01:00
storage wait until the node is not using the volume before taking a snapshot 2021-03-16 16:09:38 +00: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 Merge pull request #99670 from jsturtevant/windows-gmsa 2021-03-15 05:01:05 -07: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
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
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_test.go e2e: move funs of framework/viperconfig to e2e 2019-12-31 16:42:30 +08:00
viperconfig.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