kubernetes/test/e2e
Kubernetes Prow Robot 3af1e5fdf6
Merge pull request #112707 from enj/enj/i/https_links
Use https links for k8s KEPs, issues, PRs, etc
2022-09-29 12:34:40 -07:00
..
apimachinery Promote Namespace e2e test to Conformance 2022-09-08 11:44:05 +12:00
apps Merge pull request #112707 from enj/enj/i/https_links 2022-09-29 12:34:40 -07:00
architecture update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
auth Add auth API to get self subject attributes 2022-09-14 18:00:26 +02:00
autoscaling Fix HPA E2E CRD test 2022-09-21 22:39:47 +00:00
chaosmonkey ginkgo.By can only be used inside a runnable node 2022-07-08 10:46:11 +08:00
cloud various corrections in test/e2e package 2022-09-16 18:59:30 +05:30
common fix:e2e test flake: Probing container should mark readiness on pods to false 2022-09-26 09:55:19 +08:00
framework Merge pull request #112663 from aojea/reachability 2022-09-22 12:51:28 -07:00
instrumentation Promote Event e2e test to Conformance 2022-07-25 09:15:36 +12:00
kubectl Add e2e tests for events command (#111855) 2022-09-26 08:10:08 -07:00
lifecycle update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
network Sanitize hostname in network proxy test (#112763) 2022-09-29 04:07:06 -07:00
node various corrections in test/e2e package 2022-09-16 18:59:30 +05:30
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters Migrate ProgressReporter to Ginkgo V2 2022-07-08 10:46:11 +08:00
scheduling Make scheduling e2e tests run PSa-restricted pods 2022-07-26 14:32:51 +02:00
storage add e2e test for retroactive storage class feature 2022-09-21 10:52:28 +02:00
testing-manifests Merge pull request #110826 from humblec/test-failure 2022-09-22 12:50:52 -07:00
upgrades HPA E2E Test: CPU / Memory: Average Value / Utilization 2022-09-09 16:06:55 +00:00
windows various corrections in test/e2e package 2022-09-16 18:59:30 +05:30
e2e_test.go e2e: suppress progress messages for custom progress reporter 2022-08-30 19:58:10 +02:00
e2e-example-config.json
e2e.go Merge pull request #111961 from pohly/e2e-klog-output 2022-09-17 14:38:28 -07:00
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go e2e: remove cleanup actions 2022-09-09 13:51:07 +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