ContainerImage.Pinniped/internal/kubeclient
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
..
copied.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
gvk_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
gvk.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
kubeclient_test.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
kubeclient.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
middleware_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
middleware.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
option.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
path_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
path.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
roundtrip.go internal/kubeclient: fix not found test and request body closing bug 2021-02-03 08:19:34 -05:00
scheme_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
scheme.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
serializer.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
verb_test.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
verb.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00
watch.go Allow multiple Pinnipeds to work on same cluster 2021-02-02 15:18:41 -08:00