kubernetes/test/e2e
Patrick Ohly a39b3877e9 storage e2e: update mock deployment
These changes were created automatically with the updated update-hostpath.sh
script.
2021-12-02 16:18:26 +01:00
..
apimachinery Merge pull request #106462 from jpbetz/cel-e2e2 2021-11-19 22:04:59 -08:00
apps controller change for statefulset auto-delete (tests) 2021-11-17 16:48:50 -08:00
auth Fix CSR test to accept certs shorter than the requested duration 2021-10-01 09:14:54 -04:00
autoscaling Merge pull request #106315 from josephburnett/e2e-v2 2021-11-15 07:20:48 -08:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud tag ginkgo tests affected by pdcsi migration for skipping and add storageclass check for statefulset and upgrade tests 2021-10-09 17:33:56 +00:00
common fix the grpc probes 2021-11-20 00:23:53 +00:00
framework Merge pull request #105481 from claudiubelu/tests/e2e-prepull-images 2021-11-18 17:22:51 -08:00
instrumentation tests: Use E2E framework deployments 2021-10-09 06:11:07 -07:00
kubectl Merge pull request #106001 from NikhilSharmaWe/betterOutputKubectl 2021-11-02 09:20:58 -07:00
lifecycle Changed code to improve output for files under test/e2e/lifecycle 2021-11-09 22:24:27 +05:30
network Merge pull request #106281 from ii/promote-delete-service-collection 2021-11-18 07:47:03 -08:00
node Merge pull request #106493 from endocrimes/dani/endocrimes-test-reviewer 2021-11-17 22:41:01 -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 De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
storage test/e2e/storage: replace mock driver with hostpath driver 2021-12-02 14:41:08 +01:00
testing-manifests storage e2e: update mock deployment 2021-12-02 16:18:26 +01:00
ui hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
upgrades Changed code to improve output for files under test/e2e/upgrades/apps 2021-10-27 11:41:18 +05:30
windows Changed code to improve output for test/e2e/windows 2021-11-19 04:06:05 +05:30
e2e_test.go generated: remove usage of go-bindata 2021-06-29 19:16:48 +05:30
e2e-example-config.json
e2e.go tests: Prepull images commonly used test images 2021-11-05 14:22:50 -07:00
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