kubernetes/test/e2e
Kubernetes Prow Robot 62503f254e
Merge pull request #103413 from mgutierrez98/refactor-whitelist-blacklist
Refactored files containing whitelist/blacklist to allowlist/denylist…
2021-07-01 18:12:25 -07:00
..
apimachinery Update cronjob integration test to batch/v1 2021-06-04 21:04:21 +08:00
apps Merge pull request #103243 from ii/promote-statefulset-status-test 2021-07-01 14:28:02 -07:00
auth Fix NodeAuthenticator tests in dual stack 2021-06-21 15:41:13 +03:00
autoscaling Update dns autoscaler test to look at node allocatable instead of capacity 2021-05-18 16:33:49 -07:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud BoundServiceAccountTokenVolume ga 2021-05-13 20:45:47 -07:00
common Merge pull request #103413 from mgutierrez98/refactor-whitelist-blacklist 2021-07-01 18:12:25 -07:00
framework Merge pull request #103413 from mgutierrez98/refactor-whitelist-blacklist 2021-07-01 18:12:25 -07:00
instrumentation Add Snapshot Controller e2e metric tests 2021-05-20 23:29:23 -07:00
kubectl Update cronjob integration test to batch/v1 2021-06-04 21:04:21 +08:00
lifecycle fix(timezone): the timezone is standardized to UTC 2021-06-03 23:55:39 +08:00
network Merge pull request #103413 from mgutierrez98/refactor-whitelist-blacklist 2021-07-01 18:12:25 -07:00
node e2e: Flag questionable durations in container status on termination 2021-05-24 11:48:42 -04: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 don't panic if nodeIPs are not found 2021-06-21 10:59:09 +02:00
storage [storage] [test] Ensure proper resource creation 2021-06-30 18:01:57 -04:00
testing-manifests docs: add documentation on adding files to the embedded data 2021-06-29 23:30:50 +05:30
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 Use the hostprocess feature flag and assign a user 2021-06-17 14:42:24 -07:00
e2e_test.go generated: remove usage of go-bindata 2021-06-29 19:16:48 +05:30
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 Add Snapshot Controller e2e metric tests 2021-05-20 23:29:23 -07: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