kubernetes/test/e2e
2022-05-23 00:39:09 +00:00
..
apimachinery Merge pull request #107444 from sayaoailun/master 2022-05-03 17:18:23 -07:00
apps Promote e2e job lifecycle test to Conformance 2022-04-19 09:35:27 +12:00
architecture test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
auth test/e2e/auth: enhance assertions 2022-05-07 11:58:06 +08:00
autoscaling test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
common enhance assertions in test/e2e/common/node 2022-05-23 00:39:09 +00:00
framework Merge pull request #109989 from tallclair/image-type 2022-05-13 00:13:48 -07:00
instrumentation test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
kubectl Revert "Adjust testing for server-side validation as default" 2022-04-04 12:26:51 -04:00
lifecycle test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
network Merge pull request #109990 from tnqn/fix-netpol-error 2022-05-12 03:43:26 -07:00
node sig-node: endocrimes as e2e_node approver 2022-04-20 17:12:09 +00:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
scheduling test/e2e/*: default existing tests to privileged pod security policy 2022-04-05 08:41:12 +02:00
storage Merge pull request #109311 from my-git9/creatego 2022-05-05 13:50:41 -07:00
testing-manifests Implement initial E2E test for AnyVolumeDataSource 2022-04-04 16:10:39 +00:00
upgrades Replace use of Sprintf with net.JoinHostPort 2022-05-04 06:37:50 -04:00
windows Update test/e2e/windows/host_process.go 2022-05-05 18:34:17 +03:00
e2e_test.go Delete test/e2e/ui/ 2022-02-10 14:48:02 +09:00
e2e-example-config.json
e2e.go io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +08:00
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go io/ioutil has already been deprecated in golang 1.16, so replace all ioutil with io and os 2022-02-03 05:32:12 +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