kubernetes/test/e2e
Antonio Ojea bbb905c794 remove gce healthcheck interval e2e lb test
Change-Id: Idcd8c4c6b39cbd419ca58b7354508ebe81501e91
2023-09-17 19:47:32 +00:00
..
apimachinery API Chunking conformance metadata 2023-09-12 13:12:49 +02:00
apps Use ptr.To to retrieve intstr addresses 2023-09-08 11:10:50 +02:00
architecture e2e tests: set all PSa labels instead of just enforcing 2023-06-21 15:05:13 +02:00
auth Merge pull request #119461 from carlory/cleanup-e2e-auth-framework-equal 2023-09-06 05:35:19 -07:00
autoscaling cleanup:e2e:stop using deprecated wait.ErrWaitTimeout 2023-09-04 21:53:08 +08:00
chaosmonkey e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
cloud e2e_cloud:stop using deprecated framework.ExpectError 2023-09-01 17:53:37 +08:00
common e2e_framework:stop using deprecated wait.ErrwaitTimeout 2023-09-05 14:19:42 +08:00
dra scheduler: add ResourceClass events 2023-09-06 11:14:08 +02:00
framework Merge pull request #120506 from alexzielenski/import-restrictions 2023-09-13 21:56:22 -07:00
instrumentation Graduate kubelet resource metrics to GA 2023-08-17 09:22:48 -07:00
kubectl pull Host from kubeconfig when needed 2023-08-14 10:16:24 -04:00
lifecycle e2e_framework:stop using deprecated wait.ErrwaitTimeout 2023-09-05 14:19:42 +08:00
network remove gce healthcheck interval e2e lb test 2023-09-17 19:47:32 +00:00
node e2e_node:stop using deprecated framework.ExpectError 2023-09-01 17:42:36 +08:00
perftype
reporters e2e: comment the known limitation of the ProgressReporter 2022-12-23 18:43:49 +08:00
scheduling Remove deprecated framework 2023-09-01 17:39:37 +08:00
storage Merge pull request #119902 from RomanBednar/pv-phase-transition-time-e2e 2023-09-13 03:00:11 -07:00
testing-manifests [KMSv2] update ci script and add readme 2023-03-27 20:43:37 +00:00
upgrades e2e_upgrades: stop using deprecated framework.ExpectEqual 2023-08-30 11:28:17 +08:00
windows e2e_windows: stop using deprecated framework.ExpectEqual 2023-08-28 17:04:03 +08:00
e2e-example-config.json
e2e.go Merge pull request #115678 from pohly/e2e-full-reports 2023-02-10 15:07:29 -08:00
e2e_test.go e2e: detect unexpected command line arguments 2023-07-05 13:34:09 +02:00
README.md e2e: accept context from Ginkgo 2022-12-10 19:50:18 +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 "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(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