kubernetes/test/e2e
Antonio Ojea 0695bc45cf e2e create pods only on schedulable nodes
We were avoiding the scheduled using the pod.Spec.NodeName directly,
however, once we switched to using the node selector, the no_snat
e2e test started to fail because was trying to schedule pods on
nodes with taints, hence, failing the test.
2021-04-17 12:05:40 +02:00
..
apimachinery Merge pull request #100199 from chaitanyabandi/ns-patch 2021-03-15 14:20:53 -07:00
apps Promote e2e eviction test to conformance 2021-04-14 09:12:39 -04: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 move upgrade test frameworks closer to Describe 2021-04-14 09:13:58 -07:00
common Merge pull request #100200 from jackfrancis/ctx-respect-ExecProbeTimeout 2021-04-10 22:55:59 -07:00
framework Merge pull request #100377 from mauriciopoppe/storage-windows-e2e-tests 2021-04-15 23:22:22 -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 create pods only on schedulable nodes 2021-04-17 12:05:40 +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 Merge pull request #100128 from ingvagabund/sig-scheduling-single-node-e2e 2021-04-13 10:31:09 -07:00
storage Merge pull request #100724 from liggitt/eviction-v1beta1 2021-04-16 10:02:22 -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 upgrade test frameworks closer to Describe 2021-04-14 09:13:58 -07:00
windows Merge pull request #100671 from Niekvdplas/spelling-mistakes 2021-04-09 05:19:45 -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