ContainerImage.Pinniped/test/library
Andrew Keesler 38e26d7a49
test/library: use client-go anonymous rest config helper
I saw this helper function the other day and wondered if we could use it.
It does indeed look like it does what we want, because when I run this code,
I get `...User "system:anonymous" cannot get resource...`.

  c := library.NewAnonymousPinnipedClientset(t)
  _, err := c.
    ConfigV1alpha1().
    CredentialIssuerConfigs("integration").
    Get(context.Background(), "pinniped-config", metav1.GetOptions{})
  t.Log(err)

I also ran a similar test using this new helper in the context of
library.NewClientsetWithCertAndKey(). Seemed to get us what we want.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
2020-09-28 09:22:01 -04:00
..
client.go test/library: use client-go anonymous rest config helper 2020-09-28 09:22:01 -04:00
env.go Remove support for loading test context from a Secret. 2020-09-25 09:37:17 -05:00
skip.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
spew.go Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00