kubernetes/test/e2e
Kubernetes Prow Robot 81e41b7fc4
Merge pull request #104664 from aojea/apiserver_endpoints_conformance
fix e2e test apiserver endpoint and endpointslices
2021-09-02 18:43:49 -07:00
..
apimachinery remove unnecessary waits from watch conformance test 2021-08-07 15:55:33 -07:00
apps Merge pull request #102736 from atiratree/e2e-bump-ProgressDeadlineSeconds 2021-08-11 09:16:46 -07:00
auth csr: update e2e conformance test with expirationSeconds usage 2021-07-01 23:38:16 -04:00
autoscaling Wait 15m after instead of before breaking nodes 2021-08-31 11:37:25 +02:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud Fix panic in master upgrade tests 2021-07-16 07:50:25 +02:00
common Merge pull request #101063 from claudiubelu/tests/lifecycle-hooks 2021-08-12 10:19:49 -07:00
framework Remove unused --allow-gathering-profiles e2e.test flag 2021-08-31 11:33:33 +02:00
instrumentation test: e2e: HPA ContainerResource 2021-07-21 10:24:00 +05:30
kubectl Fixes flaky GKE kubectl test 2021-08-06 22:31:55 -07:00
lifecycle fix ineffassign and varcheck 2021-07-14 08:41:22 -04:00
network e2e test apiserver endpoint and endpointslices 2021-08-31 11:29:06 +02:00
node Merge pull request #104048 from lizhuqi/fix-npd-test 2021-08-10 17:40:46 -07: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 E2E test for NodePreferAvoidPods scheduling Score 2021-07-15 14:55:09 -04:00
storage Merge pull request #104634 from Jiawei0227/snapshotorder 2021-08-30 14:25:13 -07:00
testing-manifests Bump livenessprobe to 2.4.0 in e2e hostpath driver spec 2021-08-19 10:33:12 -07:00
ui hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
upgrades test: e2e: HPA ContainerResource 2021-07-21 10:24:00 +05:30
windows Add init hostprocess container test 2021-08-26 08:23:54 -07:00
e2e-example-config.json Add viper support to core e2es 2016-09-15 18:38:01 -04:00
e2e.go Merge pull request #103269 from mgutierrez98/Refactor-Master-ControlPlane-test-e2e 2021-08-16 10:03:17 -07:00
e2e_test.go generated: remove usage of go-bindata 2021-06-29 19:16:48 +05:30
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go e2e: grab controller and scheduler metrics via port forwarding 2021-06-16 12:02:40 +02: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