Commit graph

1365 commits

Author SHA1 Message Date
Kubernetes Prow Robot
08ad958d0d
Merge pull request #135774 from pohly/e2e-framework-ginkgo-wrappers
E2E framework: make usage of Ginkgo wrappers optional
2026-01-07 19:01:38 +05:30
Patrick Ohly
47d02070ba E2E: remove unnecessary trailing spaces in test names
The spaces are unnecessary because Ginkgo adds spaces automatically.

This was detected before only for tests using the wrapper functions,
now it also gets detected for ginkgo methods.
2026-01-07 12:05:43 +01:00
Kubernetes Prow Robot
cb74fe988b
Merge pull request #135723 from danwinship/netpol-test-cleanup
minor Netpol test cleanups
2025-12-18 02:10:22 -08:00
Kubernetes Prow Robot
d6c073990b
Merge pull request #134623 from adrianmoisey/service-headless
Refactor 'Services should implement service.kubernetes.io/headless' test
2025-12-17 16:26:47 -08:00
Dan Winship
f2408aa83f Rearrange setup code in Netpol tests to be consistent between tests 2025-12-11 11:52:00 -05:00
Dan Winship
d8a9c58535 Rename a weirdly named field in Netpol tests 2025-12-11 11:51:58 -05:00
Dan Winship
a6e12205bd Drop unneeded NewWindowsModel from Netpol tests
The SCTP tests are already skipped on Windows, so we don't need any
other special handling.
2025-12-10 15:36:51 -05:00
Adrian Moisey
7742bd0b07
Refactor 'Services should implement service.kubernetes.io/headless' test 2025-10-18 15:05:45 +02:00
Dan Winship
02926c9563 Update PreferSameTrafficDistribution to GA 2025-10-14 08:20:43 -04:00
Dan Winship
c189e9d82f Split Endpoints controller and EndpointSlice controller conformance tests 2025-10-07 17:32:53 -04:00
Dan Winship
7b7145a594 Update kubernetes.default endpoints test a bit
Inline the endpointSlicesEqual() method into the test, since despite
its generic-sounding name, it made assumptions specific to this test.

Also, port to generic sets.
2025-10-07 17:32:36 -04:00
Dan Winship
e627b3b2bf Move some network conformance tests around.
Move the Endpoints API test from endpointslice.go to endpoints.go

Move the "kubernetes.default Service exists" and "kubernetes.default
endpoints exist" tests to apiserver.go, since (unlike the rest of
service.go/endpointslice.go) they aren't testing the behavior of the
Service/EndpointSlice/Endpoints APIs.

(No code changes, but fixed a typo in a comment.)
2025-10-07 17:32:34 -04:00
Dan Winship
d46f15bd12 Fix some linter errors before splitting out code
(In particular, fix the wait.PollImmediate calls even in the code
that's staying here, not just the code that's moving.)
2025-10-07 17:32:32 -04:00
Dan Winship
07959fd168 Remove redundant test of "empty EndpointSlice for Service with no Pods"
This was being checked by two different conformance tests.
2025-10-07 17:32:27 -04:00
Dan Winship
ff83235f35 Fix up EndpointSlice conformance test descriptions 2025-10-07 17:32:25 -04:00
Dan Winship
5ae2372f1b Remove a "helper" function that doesn't really help much
While createServiceReportErr could be fixed to use
framework.ExpectNoErrorWithOffset (and, uh, to log "error creating
Service" rather than "error deleting Service"), it's too trivial to
really be all that useful.
2025-10-01 09:24:02 -04:00
Michael Aspinwall
84f85712be feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
Michael Aspinwall
7c24e62d7c Add additional types for resource version comparison testing 2025-09-30 17:16:07 +00:00
Michael Aspinwall
37fcfcd29e feat: Add conformance tests for all resources for comparable resource version 2025-09-29 23:32:07 +00:00
Dan Winship
471256619f Put the nfacct e2e test back under the "KubeProxy" label
So you can skip all kube-proxy-specific tests with a single skip
2025-09-09 11:35:39 -04: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
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
Dan Winship
db01f94032 Remove patch/update from ServiceCIDR API conformance test
They were already listed in ineligible_endpoints.yaml, so we shouldn't
be testing them here anyway.
2025-08-20 09:19:55 -04:00
Dan Winship
f9bb14fcf0 Fix apiserver service proxying e2e test flakiness
Also, fix its conformance description, which appears to have
accidentally been filled in with the description of the wrong test.
2025-07-28 19:42:04 -04:00
Kubernetes Prow Robot
b3e39344ff
Merge pull request #132959 from ylink-lfs/test/e2e_named_port_con_case
test: add e2e case for mutating named port
2025-07-24 07:56:34 -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
Kubernetes Prow Robot
c41cc0a144
Merge pull request #129837 from danwinship/aggregated-apiserver-endpointslices
Port aggregated apiserver discovery to EndpointSlices
2025-07-23 10:30:28 -07:00
Dan Winship
765d84e9bf Test only EndpointSlices, not Endpoints, in dual-stack e2e tests
The dual-stack integration tests already validate that we get the
expected Endpoints for single- and dual-stack Services. There is no
further "end to end" testing needed for Endpoints, given that
everything in a normal cluster would look at EndpointSlices, not
Endpoints.
2025-07-23 13:19:07 -04:00
Dan Winship
33b45c8383 Update "should proxy through a service and a pod" to look at EndpointSlices 2025-07-23 11:07:29 -04:00
ylink-lfs
4f0a5771ab test: add e2e case for mutating named port 2025-07-23 10:19:20 +08: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
dbecdd1876 Use e2eendpointslice.WaitForEndpointCount in more network tests
A bunch of tests in test/e2e/network were using
validateEndpointsPortsOrFail but didn't actually care about ports at
all; they were just using it because that helper function was there.
Make them use WaitForEndpointCount instead.

Likewise, fix one test that was manually counting Endpoints and
EndpointSlices to use WaitForEndpointCount.
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
Kubernetes Prow Robot
34df3b5776
Merge pull request #132019 from danwinship/endpointslice-only-conformance
Promote two EndpointSlice e2e tests to Conformance
2025-07-11 18:15:27 -07:00
Kubernetes Prow Robot
83fb86e188
Merge pull request #132740 from adrianmoisey/e2e-test-single-ip
Loop over all IP address from each node in e2e test
2025-07-09 05:05:27 -07:00
Kubernetes Prow Robot
9e204ba03c
Merge pull request #132708 from yashsingh74/conntrack-test
cleanup conntrack entries test for UDP service
2025-07-08 21:51:27 -07:00
Kubernetes Prow Robot
9fbd2dae14
Merge pull request #132339 from adrianmoisey/relaxed-validation-for-services-names
KEP-5311 Relaxed validation for Services names
2025-07-08 09:03:26 -07:00
yashsingh74
1a62ade742
cleanup conntrack entries test for UDP service
Signed-off-by: yashsingh74 <yashsingh1774@gmail.com>
2025-07-08 21:20:43 +05:30
Adrian Moisey
ff7c781e25
Loop over all IP address from each node
Change the e2e test to test all InternalIPs from each node.

3d6e49e3c2/pkg/proxy/healthcheck/service_health.go (L66)
2025-07-07 18:34:01 +02:00
PatrickLaabs
e74bbd5db4 chore: depr. pointer pkg replacement for test/e2e 2025-07-06 22:32:21 +02:00
Adrian Moisey
22138ef552
Add DNS e2e test of NameIsDNSLabel validated Service names 2025-07-02 12:57:33 +02:00
Antonio Ojea
ce44bcdf52 conformance servicecidr read status endpoint
Change-Id: I98a05c0e0971047f7c2abb4cb25a95b754720501
2025-06-14 16:10:04 +00:00
Kubernetes Prow Robot
a715a1f520
Merge pull request #132208 from danwinship/loadbalancer-test-ratelimit
Rate-limit the LoadBalancer rolling update test
2025-06-12 08:26:58 -07:00
Daman Arora
86c709cd81 skip nfacct test in IPv6 clusters
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-11 12:34:18 +05:30
Dan Winship
260a720a85 Rate-limit the LoadBalancer rolling update test
It was trying to reconnect to the LoadBalancer as fast as possible to
try to catch any transient problems, but "as fast as possible" ended
up meaning about 12,500 times a second, which is clearly excessive.
Limit it to 100 times a second.
2025-06-10 09:38:55 -04:00
Kubernetes Prow Robot
11c5a45171
Merge pull request #131490 from aroradaman/skip-nfacct-test
kube-proxy: conditionally skip e2e
2025-06-09 07:42:24 -07:00
Daman Arora
fc7ba63ee8 support parsing of iperf 2.2.0 output
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-08 16:48:09 +05:30
Daman Arora
1755a9e545 fix: iperf version in comments
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-08 16:42:25 +05:30