Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix operator-install-status test; remove kiali #1085

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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