Skip to content

Commit

Permalink
fix operator-install-status test; remove kiali (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored Feb 18, 2025
1 parent b3c3f67 commit 9b4a9ab
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions tests/operator/tests/operator_install_status_no_privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9b4a9ab

Please sign in to comment.