From 8a16a92c016998603ebd212db48a940b9b5bcfae Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Tue, 13 Oct 2020 10:25:39 -0500 Subject: [PATCH] Rename some existing CLI test code. It will no longer be the only CLI test, so the names should be a bit more specific. Signed-off-by: Matt Moyer --- test/integration/cli_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/cli_test.go b/test/integration/cli_test.go index c1b13c748..9bb6502e4 100644 --- a/test/integration/cli_test.go +++ b/test/integration/cli_test.go @@ -16,7 +16,7 @@ import ( "go.pinniped.dev/test/library" ) -func TestCLI(t *testing.T) { +func TestCLIGetKubeconfig(t *testing.T) { env := library.IntegrationEnv(t).WithCapability(library.ClusterSigningKeyIsAvailable) // Create a test webhook configuration to use with the CLI. @@ -30,7 +30,7 @@ func TestCLI(t *testing.T) { defer cleanupFunc() // Run pinniped CLI to get kubeconfig. - kubeConfigYAML := runPinnipedCLI(t, pinnipedExe, env.TestUser.Token, env.ConciergeNamespace, "webhook", idp.Name) + kubeConfigYAML := runPinnipedCLIGetKubeconfig(t, pinnipedExe, env.TestUser.Token, env.ConciergeNamespace, "webhook", idp.Name) // In addition to the client-go based testing below, also try the kubeconfig // with kubectl to validate that it works. @@ -79,7 +79,7 @@ func buildPinnipedCLI(t *testing.T) (string, func()) { } } -func runPinnipedCLI(t *testing.T, pinnipedExe, token, namespaceName, idpType, idpName string) string { +func runPinnipedCLIGetKubeconfig(t *testing.T, pinnipedExe, token, namespaceName, idpType, idpName string) string { t.Helper() output, err := exec.Command(