ContainerImage.Pinniped/test
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
..
cluster_capabilities Update copyright to reference Pinniped contributors 2020-09-16 10:05:51 -04:00
integration Refactor integration test environment helpers to be more structured. 2020-09-24 18:03:45 -05:00
library test/library: use client-go anonymous rest config helper 2020-09-28 09:22:01 -04:00