From 9ebf837ab1788d4c1d97f38885df5e79d5916d79 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Tue, 18 Feb 2025 11:33:44 -0600 Subject: [PATCH] fix operator-install-status test; remove kiali --- .../operator_install_status_no_privileges.go | 30 +++---------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/tests/operator/tests/operator_install_status_no_privileges.go b/tests/operator/tests/operator_install_status_no_privileges.go index 1a418b4ae..d38a12d79 100644 --- a/tests/operator/tests/operator_install_status_no_privileges.go +++ b/tests/operator/tests/operator_install_status_no_privileges.go @@ -74,26 +74,6 @@ var _ = Describe("Operator install-status-no-privileges,", func() { randomNamespace) Expect(err).ToNot(HaveOccurred(), "Operator "+tsparams.OperatorPrefixQuay+ " is not ready") - - // kiali operator has resourceNames under its rules - By("Deploy kiali operator for testing") - err = tshelper.DeployOperatorSubscription( - "kiali", - "kiali", - "alpha", - randomNamespace, - tsparams.CommunityOperatorGroup, - tsparams.OperatorSourceNamespace, - "", - v1alpha1.ApprovalAutomatic, - ) - Expect(err).ToNot(HaveOccurred(), ErrorDeployOperatorStr+ - tsparams.OperatorPrefixKiali) - - err = tshelper.WaitUntilOperatorIsReady(tsparams.OperatorPrefixKiali, - randomNamespace) - Expect(err).ToNot(HaveOccurred(), "Operator "+tsparams.OperatorPrefixKiali+ - " is not ready") }) AfterEach(func() { @@ -155,14 +135,13 @@ var _ = Describe("Operator install-status-no-privileges,", func() { // 66383 It("one operator with clusterPermissions and resourceNames [negative]", func() { - By("Label operator") Eventually(func() error { return tshelper.AddLabelToInstalledCSV( - tsparams.OperatorPrefixKiali, + tsparams.OperatorPrefixCloudbees, randomNamespace, tsparams.OperatorLabel) }, tsparams.TimeoutLabelCsv, tsparams.PollingInterval).Should(Not(HaveOccurred()), - ErrorLabelingOperatorStr+tsparams.OperatorPrefixKiali) + ErrorLabelingOperatorStr+tsparams.OperatorPrefixCloudbees) By("Start test") err := globalhelper.LaunchTests( @@ -215,14 +194,13 @@ var _ = Describe("Operator install-status-no-privileges,", func() { // 66385 It("two operators, one with clusterPermissions and resourceNames", func() { - By("Label operators") Eventually(func() error { return tshelper.AddLabelToInstalledCSV( - tsparams.OperatorPrefixKiali, + tsparams.OperatorPrefixCloudbees, randomNamespace, tsparams.OperatorLabel) }, tsparams.TimeoutLabelCsv, tsparams.PollingInterval).Should(Not(HaveOccurred()), - ErrorLabelingOperatorStr+tsparams.OperatorPrefixKiali) + ErrorLabelingOperatorStr+tsparams.OperatorPrefixCloudbees) Eventually(func() error { return tshelper.AddLabelToInstalledCSV(