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

Commits on Feb 13, 2024

  1. dataclients/kubernetes: refactor GetEndpointAddresses test

    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 committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    7c9b0f7 View commit details
    Browse the repository at this point in the history