test/integration: add pinniped whoami tests

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2021-03-18 08:56:35 -04:00
parent de6837226e
commit cc8f0b623c
2 changed files with 185 additions and 0 deletions
+11
View File
@@ -333,4 +333,15 @@ status:
username: `+env.SupervisorTestUpstream.Username+`
`,
string(kubectlOutput3))
// Validate that `pinniped whoami` returns the correct identity.
assertWhoami(
ctx,
t,
true,
pinnipedExe,
kubeconfigPath,
env.SupervisorTestUpstream.Username,
append(env.SupervisorTestUpstream.ExpectedGroups, "system:authenticated"),
)
}