kubernetes/test/e2e
Antonio Ojea 3511357c0a Revert "Deflake startupProbe e2e test"
This reverts commit bcd582030f.
2021-05-01 10:29:03 +02:00
..
apimachinery remove go-openapi/spec 2021-04-21 11:31:49 +02:00
apps Merge pull request #101586 from liggitt/delete-partition-tests 2021-04-29 11:36:23 -07:00
auth hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
autoscaling Update e2e tests to use the policy v1 api 2021-03-09 10:29:11 -05:00
chaosmonkey test: fix typo in chaosmonkey.go 2021-03-21 12:20:00 +09:00
cloud move upgrade test frameworks closer to Describe 2021-04-14 09:13:58 -07:00
common Revert "Deflake startupProbe e2e test" 2021-05-01 10:29:03 +02:00
framework Merge pull request #101381 from prameshj/port-change 2021-04-23 16:14:29 -07:00
generated hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
instrumentation Remove unused elasticsearch tests 2021-04-20 13:34:59 -07:00
kubectl [e2e] match kubectl run timeout to pod start timeout 2021-04-22 11:10:56 -06:00
lifecycle hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
network Merge pull request #99348 from chymy/e2e-rck-unused 2021-04-28 21:02:50 -07:00
node cleanup: replace x.Sub(time.Now()) with time.Until(x) in e2e test 2021-04-23 11:27:12 +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 Remove Limits from scheduling e2e balanced pod resources 2021-04-21 15:58:00 -04:00
storage Fix invalid AWS KMS key test flake 2021-04-28 13:22:49 +02:00
testing-manifests Update cos-gpu-installer image 2021-04-29 14:58:47 -07:00
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 Merge pull request #100671 from Niekvdplas/spelling-mistakes 2021-04-09 05:19:45 -07:00
e2e-example-config.json
e2e.go test/e2e: Allow test invokers to skip test waits before and after 2021-02-04 20:14:05 -05:00
e2e_test.go import the netpol testing package so that ownership is attributed correctly in the network policy testing suit 2020-12-23 07:40:47 -05:00
README.md test/e2e: Add ownership info to README 2021-03-17 16:48:11 -04:00
suites.go Move suites.go to e2e package 2019-11-14 23:50:48 +00:00
viperconfig.go e2e: move funs of framework/viperconfig to e2e 2019-12-31 16:42:30 +08:00
viperconfig_test.go e2e: move funs of framework/viperconfig to e2e 2019-12-31 16:42:30 +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