kubernetes/test/e2e
Arda Güçlü 1caf9a150b
KEP-4292: Add e2e test for custom profile in kubectl debug (#127187)
* Remove KUBECTL_DEBUG_CUSTOM_PROFILE env var

* Add e2e test for custom profile in kubectl debug

* Keep feature flag until 1.33

* Update comment

* Simplify tests by relying on test framework functionality

* Rename import alias to better to pass verify-import-alias
2024-10-22 19:48:59 +01:00
..
apimachinery Promote WatchList feature to Beta (#128053) 2024-10-17 11:07:04 +01:00
apps Use Consistently in the e2e for Job 2024-10-17 09:02:39 +02:00
architecture e2e: enhance SIGDescribe 2023-10-10 18:15:49 +02:00
auth Merge pull request #126593 from stlaz/trustbundles-e2e 2024-10-19 00:51:03 +01:00
autoscaling Remove remants of broken stuff - nvidia/autoscaling 2024-09-23 13:17:00 +00:00
chaosmonkey e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
cloud Merge pull request #127422 from srivastav-abhishek/go-vet-fix 2024-09-20 14:37:58 +01:00
common test: remove container runtime check and fix other nits 2024-10-17 17:14:04 -07:00
dra DRA: remove "classic DRA" 2024-10-16 23:09:50 +02:00
environment e2e labels: ensure that the lists remain sorted 2024-02-13 11:51:45 +01:00
feature DRA: remove "classic DRA" 2024-10-16 23:09:50 +02:00
framework Merge pull request #126593 from stlaz/trustbundles-e2e 2024-10-19 00:51:03 +01:00
instrumentation Update PodSecurityLevel used during tests 2024-05-15 16:50:30 +02:00
kubectl KEP-4292: Add e2e test for custom profile in kubectl debug (#127187) 2024-10-22 19:48:59 +01:00
lifecycle e2e: use framework labels 2023-11-01 15:17:34 +01:00
network e2e daemon set: better polling in CheckDaemonStatus 2024-10-15 10:12:28 +02:00
node test: remove container runtime check and fix other nits 2024-10-17 17:14:04 -07:00
nodefeature fix resource health status test failures in unlabeled jobs 2024-07-26 09:43:48 -04:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters e2e: comment the known limitation of the ProgressReporter 2022-12-23 18:43:49 +08:00
scheduling remove unused GetNonzeroRequests function 2024-10-10 23:52:25 +08:00
storage Update context in cleanup func for e2e test 2024-10-22 10:37:08 +00:00
testing-manifests Merge pull request #126326 from manishym/group_snapshot_e2e 2024-10-08 22:58:22 +01:00
upgrades e2e daemon set: better polling in CheckDaemonStatus 2024-10-15 10:12:28 +02:00
windows Update kubectl exec to use correct format 2024-10-15 09:34:38 -07:00
e2e-example-config.json
e2e.go Use new WaitForAlmostAllPodsReady function ins e2e setup 2024-04-17 23:18:26 -05:00
e2e_test.go Use sigs.k8s.io/yaml instead of gopkg.in/yaml 2024-10-07 15:32:00 +02:00
providers.go Remove gcp in-tree cloud provider and credential provider 2024-05-01 09:03:53 -04:00
README.md e2e: use framework labels 2023-11-01 15:17:34 +01:00
suites.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01: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 "k8s.io/kubernetes/test/e2e/framework"

// SIGDescribe annotates the test with the SIG label.
var SIGDescribe = framework.SIGDescribe("cluster-lifecycle")
// test/e2e/lifecycle/bootstrap/bootstrap_signer.go

package bootstrap

import (
	"github.com/onsi/ginkgo"
	"k8s.io/kubernetes/test/e2e/lifecycle"
)
var _ = lifecycle.SIGDescribe("cluster", feature.BootstrapTokens, func() {
  /* ... */
  ginkgo.It("should sign the new added bootstrap tokens", func(ctx context.Context) {
    /* ... */
  })
  /* 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