Refactor library.CreateTestJWTAuthenticator() so we can also use the supervisor as an upstream.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer
2020-12-15 12:34:50 -06:00
parent 5ad3c65ae1
commit e0eba9d5a6
2 changed files with 27 additions and 19 deletions
@@ -59,7 +59,7 @@ func TestSuccessfulCredentialRequest(t *testing.T) {
},
{
name: "jwt authenticator",
authenticator: library.CreateTestJWTAuthenticator,
authenticator: library.CreateTestJWTAuthenticatorForCLIUpstream,
token: func(t *testing.T) (string, string, []string) {
pinnipedExe := library.PinnipedCLIPath(t)
credOutput, _ := runPinnipedLoginOIDC(ctx, t, pinnipedExe)