kubernetes/test/e2e
Kubernetes Prow Robot b7e50cd60c
Merge pull request #101931 from ii/update-current-term-period
Increase TerminationGracePeriodSeconds to 1 second
2021-05-13 07:12:26 -07:00
..
apimachinery Make watch order conformance test reliable 2021-05-12 08:38:01 -04:00
apps Increase TerminationGracePeriodSeconds to 1 2021-05-12 11:09:34 +12:00
auth Update tests to use agnhost 2.32 2021-05-03 14:23:46 -07: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 Increase TerminationGracePeriodSeconds to 1 2021-05-12 11:09:34 +12:00
framework Merge pull request #96216 from knight42/refactor/disable-insecure-port-in-ctrler-mgr 2021-05-10 13:49:36 -07:00
generated hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
instrumentation Merge pull request #96216 from knight42/refactor/disable-insecure-port-in-ctrler-mgr 2021-05-10 13:49:36 -07:00
kubectl Merge pull request #96702 from lingsamuel/wait-for-delete-ignore-not-found 2021-05-07 20:29:17 -07:00
lifecycle hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
network conformance test for Services should validate behavior 2021-05-03 17:19:54 +02:00
node cleanup: replace x.Sub(time.Now()) with time.Until(x) in e2e test 2021-04-23 11:27:12 +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 Remove Limits from scheduling e2e balanced pod resources 2021-04-21 15:58:00 -04:00
storage storage e2e: auto detect sector size 2021-05-11 22:32:05 +00:00
testing-manifests upgrade nvidia-driver-installer to 2.0.5 2021-05-08 20:28:44 +08:00
ui hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
upgrades Merge pull request #99348 from chymy/e2e-rck-unused 2021-04-28 21:02:50 -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 refactor(e2e): grab metrics from controller-manager via nginx 2021-05-03 00:12:06 +08: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