diff --git a/test/e2e/coexistence/cli_coexistence_test.go b/test/e2e/coexistence/cli_coexistence_test.go index 80a2d72f6..5708e07f5 100644 --- a/test/e2e/coexistence/cli_coexistence_test.go +++ b/test/e2e/coexistence/cli_coexistence_test.go @@ -100,7 +100,8 @@ var _ = ginkgo.Describe("CLI Coexistence Tests", func() { gomega.Expect(err).To(gomega.BeNil(), "should not get any error for plugin source update") ginkgo.By("Search plugins and make sure there are plugins available using new Tanzu CLI") - pluginsSearchList := pluginlifecyclee2e.SearchAllPlugins(tf, framework.WithTanzuCommandPrefix(framework.TzPrefix)) + pluginsSearchList, err := pluginlifecyclee2e.SearchAllPlugins(tf, framework.WithTanzuCommandPrefix(framework.TzPrefix)) + gomega.Expect(err).To(gomega.BeNil(), framework.NoErrorForPluginSearch) gomega.Expect(len(pluginsSearchList)).Should(gomega.BeNumerically(">", 0)) ginkgo.By("Installing few plugins using new Tanzu CLI") @@ -175,7 +176,8 @@ var _ = ginkgo.Describe("CLI Coexistence Tests", func() { gomega.Expect(err).To(gomega.BeNil(), "should not get any error for plugin source update") ginkgo.By("Search plugins and make sure there are plugins available using new Tanzu CLI") - pluginsSearchList := pluginlifecyclee2e.SearchAllPlugins(tf) + pluginsSearchList, err := pluginlifecyclee2e.SearchAllPlugins(tf) + gomega.Expect(err).To(gomega.BeNil(), framework.NoErrorForPluginSearch) gomega.Expect(len(pluginsSearchList)).Should(gomega.BeNumerically(">", 0)) ginkgo.By("Installing few plugins using new Tanzu CLI") @@ -245,7 +247,8 @@ var _ = ginkgo.Describe("CLI Coexistence Tests", func() { gomega.Expect(err).To(gomega.BeNil(), "should not get any error for plugin source update") ginkgo.By("Search plugins and make sure there are plugins available using new Tanzu CLI") - pluginsSearchList := pluginlifecyclee2e.SearchAllPlugins(tf) + pluginsSearchList, err := pluginlifecyclee2e.SearchAllPlugins(tf) + gomega.Expect(err).To(gomega.BeNil(), framework.NoErrorForPluginSearch) gomega.Expect(len(pluginsSearchList)).Should(gomega.BeNumerically(">", 0)) ginkgo.By("Install few plugins using new Tanzu CLI") @@ -325,7 +328,8 @@ var _ = ginkgo.Describe("CLI Coexistence Tests", func() { gomega.Expect(err).To(gomega.BeNil(), "should not get any error for plugin source update") ginkgo.By("search plugins and make sure there are plugins available") - pluginsSearchList := pluginlifecyclee2e.SearchAllPlugins(tf, framework.WithTanzuCommandPrefix(framework.TzPrefix)) + pluginsSearchList, err := pluginlifecyclee2e.SearchAllPlugins(tf, framework.WithTanzuCommandPrefix(framework.TzPrefix)) + gomega.Expect(err).To(gomega.BeNil(), framework.NoErrorForPluginSearch) gomega.Expect(len(pluginsSearchList)).Should(gomega.BeNumerically(">", 0)) ginkgo.By("Install few plugins using new Tanzu CLI") @@ -405,7 +409,8 @@ var _ = ginkgo.Describe("CLI Coexistence Tests", func() { gomega.Expect(err).To(gomega.BeNil(), "should not get any error for plugin source update") ginkgo.By("search plugins and make sure there are plugins available using new Tanzu CLI") - pluginsSearchList := pluginlifecyclee2e.SearchAllPlugins(tf) + pluginsSearchList, err := pluginlifecyclee2e.SearchAllPlugins(tf) + gomega.Expect(err).To(gomega.BeNil(), framework.NoErrorForPluginSearch) gomega.Expect(len(pluginsSearchList)).Should(gomega.BeNumerically(">", 0)) ginkgo.By("Install few plugins using new Tanzu CLI")