Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataclients/kubernetes: refactor GetEndpointAddresses test #2936

Conversation

AlexanderYastrebov
Copy link
Member

TestGetEndpointAddresses was broken because it used shared TestAPI instance and did not re-initialize it for each test.

In partucular "Ingress with endpointslices" was actually testing endpoints and not endpointslices (testAPI.ServeHTTP does not even serve endpointslices).

This change refactors GetEndpointAddresses test
using kubernetestest.NewAPI and existing fixture files.

For #2476

TestGetEndpointAddresses was broken because it used shared TestAPI
instance and did not re-initialize it for each test.

In partucular "Ingress with endpointslices" was actually testing
endpoints and not endpointslices (testAPI.ServeHTTP does not
even serve endpointslices).

This change refactors GetEndpointAddresses test
using kubernetestest.NewAPI and existing fixture files.

For #2476

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@AlexanderYastrebov AlexanderYastrebov added the minor no risk changes, for example new filters label Feb 13, 2024
@szuecs
Copy link
Member

szuecs commented Feb 13, 2024

👍

1 similar comment
@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit ca9abef into master Feb 13, 2024
14 checks passed
@AlexanderYastrebov AlexanderYastrebov deleted the dataclients/kubernetes/refactor-TestGetEndpointAddresses branch February 13, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants