Commit graph

3788 commits

Author SHA1 Message Date
Kubernetes Prow Robot
628845b567
Merge pull request #134456 from gnufied/fix-e2e-modify-volume
With new changes we will also have a VolumeModifying condition
2025-10-09 11:31:02 -07:00
Kubernetes Prow Robot
51e35e61ce
Merge pull request #133870 from pohly/build-data-race-detection
build: also support KUBE_RACE for test binaries
2025-10-08 12:57:01 -07:00
Patrick Ohly
9702a2dca2 E2E framework: enable data race detection only if needed
When building the test binary without race detection, we don't
need the post-processing of the JUnit file because it cannot
contain data race reports. This can be done via build tags.
2025-10-08 08:45:21 +02:00
Hemant Kumar
01264d3970 With new changes we will also have a VolumeModifying condition
Fix e2e tests to take that into account
2025-10-07 10:31:29 -04:00
Patrick Ohly
f95d531b0a DRA: CRUD conformance tests
Promoting real tests turned out to be harder than expected (should be rewritten
to be self-contained, additional reviews, etc.).

They would not achieve 100% endpoint+operation coverage because real tests only
use some of the operations. Therefore each API type has to be covered with
CRUD-style tests which only exercise the apiserver, then maybe additional
functional tests can be added later (depending on time and motivation).

The machinery for testing different API types is meant to be reusable, so it
gets added in the new e2e/framework/conformance helper package.
2025-10-02 17:43:33 +02:00
Adrian Moisey
ea914d8077
Remove unused WaitForServiceEndpointsNum function
along with the now-unused countEndpointsSlicesNum function
2025-09-21 14:48:13 +02:00
Adrian Moisey
01f7de46f6
Replace deprecated WaitForServiceEndpointsNum call with WaitForEndpointCount 2025-09-21 14:47:03 +02:00
Heba
36e3adf318
Add e2e test for MaxUnavailable StatefulSet RollingUpdate (#133717)
* Add e2e test for MaxUnavailable rolling update

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Adress feedback comments

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* address feedback

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* expose poll interval as a param

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* Update test/e2e/apps/statefulset.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* Update test/e2e/framework/statefulset/wait.go

Co-authored-by: Maciej Szulik <soltysh@gmail.com>

* fix pollinterval

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

* update time duration style

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>

---------

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
Co-authored-by: Maciej Szulik <soltysh@gmail.com>
2025-09-18 03:53:42 -07:00
Jordan Liggitt
4b0eeeb618
Make pod-security-admission honor emulation version 2025-09-17 15:32:32 -04:00
Patrick Ohly
7a62519b36 E2E: treat data races in e2e suite as failures
Ginkgo itself doesn't do this, in which case prun-junit-xml drops the output
and Spyglass wouldn't show the test as failed. If the data race warning is
captured, we now treat that as the failure of a test if it hasn't already
failed for other reasons.

While at it, the entire report cleanup gets moved to our junit package.
2025-09-16 19:34:36 +02:00
Kubernetes Prow Robot
b508767369
Merge pull request #132655 from ylink-lfs/ci/httpd_removal
ci: remove httpd usage while using agnhost instead
2025-09-05 20:23:24 -07:00
Kubernetes Prow Robot
e8b19be173
Merge pull request #133440 from carlory/deflake-service-tests
deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
2025-09-05 14:37:42 -07:00
Kubernetes Prow Robot
18c188467d
Merge pull request #133438 from saschagrunert/timeout-pod-should-get-evicted
Increase termination timeout for `evicted pods should be terminal` test
2025-09-03 03:53:14 -07:00
Kubernetes Prow Robot
15b9222fa7
Merge pull request #133477 from chenggu88/e2e
Allow IfNotPresent to be used in node e2e tests
2025-09-03 02:11:16 -07:00
Sascha Grunert
c8f8f66e6d
Increase termination timeout for evicted pods should be terminal test
This doubles the termination timeout for the eviction test from 5min to
10min. Reason for that is that the eviction manager relies on pod stats
metrics, which may not be acceessible during a period of time because of
the kubelet API unreachable. This could be reasoned in hardware or
network pressure when multiple tests run in parallel.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-09-03 08:58:46 +02:00
ylink-lfs
1fd7f308fc ci: remove httpd usage while using agnhost instead 2025-09-01 20:11:18 +08:00
carlory
233384d4e4
deflake e2e test: Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-08-29 11:24:44 +08:00
Kubernetes Prow Robot
22a567ac31
Merge pull request #133571 from BenTheElder/deprecated-missing-oh-no
fix many incorrect deprecation warnings in godoc, enable deprecatedComment linter
2025-08-27 18:30:53 -07:00
Benjamin Elder
189d6d726b fix formatting of deprecation warning in test/e2e/framework.WaitForServiceEndpointsNum
"// Deprecated:" needs to be in it's own paragraph
2025-08-15 11:29:53 -07:00
Cheng Gu
ddffd8e389 Allow IfNotPresent to be used in node e2e tests
Currently the node e2e tests overrides the image pull policy to PullNever,
if the policy is not PullAlways.
2025-08-11 22:28:20 +00:00
Jan Safranek
1ea4720268 Add e2e test for SELinuxMount to CSI drivers 2025-08-08 14:25:24 +02:00
Luiz Oliveira
7fbf63a23f
HPA support for pod-level resource specifications (#132430)
* HPA support for pod-level resource specifications

* Add e2e tests for HPA support for pod-level resource specifications
2025-07-29 09:02:26 -07:00
Kubernetes Prow Robot
6ad14ad876
Merge pull request #132991 from danwinship/endpoints-e2e-updates
Endpoints e2e updates for KEP-4974
2025-07-23 19:56:26 -07:00
HirazawaUi
8d65e1e98e Add e2e tests. 2025-07-23 22:57:11 +08:00
ylink-lfs
fb4e252224 test: add batch pod deletion for kubelet e2e tests 2025-07-19 14:13:59 +08:00
Kubernetes Prow Robot
7fa6cdde88
Merge pull request #127630 from dshebib/e2eNode_UpdateToAgnhost
[e2e_node] containers_lifecycle update from busybox to agnhost
2025-07-18 15:24:25 -07:00
Dan Winship
24065780ed Add e2eendpointslice.WaitForEndpointPorts, use in some tests.
Slightly-more-generic replacement for validateEndpointsPortsOrFail()
(but only validates EndpointSlices, not Endpoints).

Also, add two new unit tests to the Endpoints controller, to assert
the correct Endpoints-generating behavior in the cases formerly
covered by the "should serve endpoints on same port and different
protocols" and "should be updated after adding or deleting ports" e2e
tests (since they are now EndpointSlice-only). (There's not much point
in testing the Endpoints controller in "end to end" tests, since
nothing in a normal cluster ever looks at its output, so there's
really only one "end" anyway.)
2025-07-17 15:34:34 -04:00
Dan Winship
b35ad4e9b0 Add e2eendpointslice.WaitForEndpointPods, use in various test
These tests were using validateEndpointsPortsOrFail() not because they
cared about ports, but just because it was there, or in some cases
because they needed to wait for one pod to exit and a different pod to
start, which can't be done with framework.WaitForServiceEndpointsNum()
(or e2eendpointslice.WaitForEndpointCount) without racing. Update
these tests using the new e2eendpointslice.WaitForEndpointPods, which
can wait for specific expected pods.

(This also means these tests now only watch EndpointSlices, rather
than watching both Endpoints and EndpointSlices, which is fine,
because none of them are doing tricky things that actually require
making assertions about the exact contents of the
Endpoints/EndpointSlices. They just want to know when the controller
has updated things to point to the expected pods.)
2025-07-16 11:42:02 -04:00
Dan Winship
b7998a397b Add e2eendpointslice.WaitForEndpointCount, use it in some network tests
This replaces framework.WaitForServiceEndpointsNum
2025-07-16 11:42:00 -04:00
Dan Winship
665599417a Add e2eendpointslice.WaitForEndpointSlices, use it in a few places
(This is mostly a helper for the other functions about to be added,
but it's useful by itself in a few places.)
2025-07-16 06:17:34 -04:00
Patrick Ohly
1a284472f1 E2E framework: retry also on EOF errors
EOF occurs after restarting the API server and, despite a retry loop in
client-go/rest/request.go, sometimes is returned to the application.
2025-07-15 12:52:26 +02:00
Patrick Ohly
6a7b9589f6 E2E framework: support setting REST config
A special test (for example, one which manages its own cluster) could almost
construct a Framework instance because most fields are exported. The
`clientConfig` field isn't because REST configs often need to be deep-copied to
avoid accidentally updating some shared copy, so for this special case a
SetClientConfig is needed.
2025-07-15 12:52:26 +02:00
ylink-lfs
30a3bfdbcb chore: remove residual uint64ptr usage with ptr package 2025-07-08 22:20:16 +08:00
PatrickLaabs
2f7148782b chore: depr. pointer pkg replacement for test/e2e and utils 2025-07-06 22:18:03 +02:00
Daniel Shebib
179c4398f3 use defaultImage per OS 2025-07-01 23:17:51 -05:00
Patrick Ohly
efcb03759d E2E framework: sort tests in JUnit report
This is more useful when viewing results in spyglass because related tests are
shown together. The default was to show them by start or end time (not exactly
sure), which almost looked random because those times are not shown.
2025-06-27 16:10:38 +02:00
Dan Winship
a437a269f1 Fix comments on ginkgo label functions 2025-05-12 11:22:18 -04:00
Kubernetes Prow Robot
627ce4946c
Merge pull request #131689 from carlory/remove-expectNoError
use framework.ExpectNoError instead
2025-05-11 05:01:14 -07:00
carlory
d5a56739ce use framework.ExpectNoError instead
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-05-11 13:12:29 +08:00
Kubernetes Prow Robot
79d1cf301e
Merge pull request #131409 from bertinatto/fix-authz-test
e2e: set appropriate groups in SAR of kubelet authz test
2025-05-08 14:39:15 -07:00
Kubernetes Prow Robot
b1ce2a61b5
Merge pull request #131249 from MaysaMacedo/randomize-name
Kubelet: Randomize ClusterRole name in e2e
2025-05-07 07:59:16 -07:00
Maysa Macedo
b1bb9a5885 Kubelet: Randomize ClusterRole name in e2e
It's possible that a conflict will happen when
attempting to create a `ClusterRole` resource
without a randomized name given that is a cluster
scoped object and another object with same name
might exist. This commit fixes this issue by ensuring
the name of the `ClusterRole` is randomized. Additionally,
it adds clean up for the clusterRole and clusterRoleBinding.
2025-05-06 14:30:10 -03:00
Kubernetes Prow Robot
73b5f84cb6
Merge pull request #131487 from hshiina/dedup-cgroup-verification
e2e: Deduplicate cgroup verification
2025-05-06 04:03:17 -07:00
Fabio Bertinatto
e36a168a63 test/e2e/node/kubelet_authz.go: fix SAR to include service account groups
This sets the appropriate groups (system:authenticated, system:serviceaccounts,
system:serviceaccounts:<ns>) in the SAR used in WaitForAuthzUpdate to accurately
simulate the service account’s identity.
2025-05-05 10:37:42 -03:00
Jordan Liggitt
6bb6c99342
Drop null creationTimestamp from test fixtures 2025-05-02 15:38:40 -04:00
Hironori Shiina
7e1cec680e e2e: Deduplicate cgroup verification
This fix deduplicates cgroup verification in tests for
InPlacePodVerticalScaling and PodLevelResources.
2025-05-01 14:53:26 +02:00
Natasha Sarkar
932cff5dd4 add more error details to the failing cgroup check 2025-04-24 15:51:08 +00:00
Kubernetes Prow Robot
4bcaa515c9
Merge pull request #131267 from tallclair/resize-helpers
Move pod resize e2e utilities out of e2e/framework
2025-04-24 01:28:44 -07:00
Kubernetes Prow Robot
1c1ee80682
Merge pull request #131100 from hshiina/exec-fail
[InPlacePodVerticalScaling] e2e: Keep original error when exec in container fails
2025-04-23 15:59:49 -07:00
Kubernetes Prow Robot
a63fd40447
Merge pull request #131060 from BenTheElder/kubectl-http-proxy
improve kubectl e2e test debugging
2025-04-23 15:58:59 -07:00