ContainerImage.Pinniped/internal/testutil
Andrew Keesler 62c117421a
internal/kubeclient: fix not found test and request body closing bug
- I realized that the hardcoded fakekubeapi 404 not found response was invalid,
  so we were getting a default error message. I fixed it so the tests follow a
  higher fidelity code path.
- I caved and added a test for making sure the request body was always closed,
  and believe it or not, we were double closing a body. I don't *think* this will
  matter in production, since client-go will pass us ioutil.NopReader()'s, but
  at least we know now.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2021-02-03 08:19:34 -05:00
..
fakekubeapi internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
testlogger Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
assertions.go Be more lax in some of our test assertions. 2020-12-16 13:15:38 -06:00
certs.go dynamiccertauthority: fix cert expiration test failure 2020-10-23 15:34:25 -04:00
crypto.go Cleanup code via TODOs accumulated during token endpoint work 2020-12-04 10:09:42 -05:00
doc.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
ioutil.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
observable_with_informer_option.go Add Go vanity import paths. 2020-09-18 14:56:24 -05:00
observable_with_initial_event_option.go kubecertagent: use initial event for when key can't be found 2020-09-24 16:54:20 -04:00
round_trip.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
tempdir_go1.14.go Tweak some stdlib usage so we compile under Go 1.14. 2020-11-30 10:11:41 -06:00
tempdir.go Tweak some stdlib usage so we compile under Go 1.14. 2020-11-30 10:11:41 -06:00
tlsserver.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
transcript_logger.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00