From b45482355cbf5d94db743cb219aeb786dabc8a5c Mon Sep 17 00:00:00 2001 From: joshvanl Date: Thu, 14 Oct 2021 16:36:50 +0100 Subject: [PATCH] Fix cobra test now cmctl is the default CLI name Signed-off-by: joshvanl --- build/BUILD.bazel | 1 - tools/cobra/main_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build/BUILD.bazel b/build/BUILD.bazel index e1a122245..f45a83cd2 100644 --- a/build/BUILD.bazel +++ b/build/BUILD.bazel @@ -130,7 +130,6 @@ release_filegroup( ]), ) - filegroup( name = "test-targets", srcs = select(for_platforms( diff --git a/tools/cobra/main_test.go b/tools/cobra/main_test.go index a391b5b4c..257f275cf 100644 --- a/tools/cobra/main_test.go +++ b/tools/cobra/main_test.go @@ -48,7 +48,7 @@ func TestRun(t *testing.T) { }, "if directory given, should write docs": { input: []string{"cobra", filepath.Join(rootDir, "foo")}, - expDirs: []string{"foo/ca-injector", "foo/cert-manager-controller", "foo/kubectl cert-manager"}, + expDirs: []string{"foo/ca-injector", "foo/cert-manager-controller", "foo/cmctl"}, }, }