kubernetes/test/e2e
zhucan 7a87b4363b e2e: add e2e test to node expand volume with secret
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2023-03-08 10:27:50 +08:00
..
apimachinery Merge pull request #115214 from ii/create-apiservice-test-v4 2023-01-31 07:38:49 -08:00
apps Fix: Improves the log for failing tests in e2e/apps. 2023-01-28 02:50:32 -03:00
architecture e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
auth Promote SubjectAccessReview e2e test to Conformance 2023-01-09 11:24:05 +13:00
autoscaling Decrease target value for scale up tests in HPA 2023-01-25 12:58:38 +00:00
chaosmonkey e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
cloud e2e gcp: use timeout from f.Timeouts 2023-01-10 11:36:45 +01:00
common e2e node: Update runtime class handler skip logic 2023-01-24 14:43:24 -08:00
dra e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
framework test: Update runtime class detection logic 2023-01-31 11:38:49 -08:00
instrumentation Add e2e test for checking /metrics/slis endpoint for API server 2023-01-26 17:46:21 -08:00
kubectl switch spdy round trip tests to simple http proxy 2023-01-18 18:31:50 +00:00
lifecycle e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
network e2e/network_policy: using expected==observed as condition for polling in probeConnectivity function 2023-01-24 03:59:01 +05:30
node e2e node: Update runtime class handler skip logic 2023-01-24 14:43:24 -08: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 test: Bump timeout for runPausePod 2023-01-30 21:27:59 -08:00
storage e2e: add e2e test to node expand volume with secret 2023-03-08 10:27:50 +08:00
testing-manifests Updating pause image refernces to 3.9 2022-11-14 10:24:54 -08:00
upgrades e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
windows e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
e2e_test.go Merge pull request #114417 from chendave/ginkgo_fix_spec 2023-01-12 03:28:56 -08:00
e2e-example-config.json
e2e.go e2e: move several timeouts from TestContext into TimeoutContext 2023-01-09 17:29:35 +01:00
README.md e2e: accept context from Ginkgo 2022-12-10 19:50:18 +01:00
suites.go e2e: use Ginkgo context 2022-12-16 20:14:04 +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