Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package tests

import (
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

Expand Down Expand Up @@ -143,6 +145,13 @@ var _ = Describe("Affiliated-certification container-is-certified-digest,", Seri

// 66768
It("two containers to test, one is certified, one is not digest [negative]", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Define deployments with different container certification statuses")
dep := deployment.DefineDeployment("affiliated-cert-deployment", randomNamespace,
tsparams.UncertifiedContainerURLCnfTest, tsparams.TestDeploymentLabels)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tests

import (
"fmt"
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand All @@ -26,6 +27,13 @@ var _ = Describe("Affiliated-certification operator certification,", Serial, fun
var grafanaOperatorName string

BeforeEach(func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

// Create random namespace and keep original report and certsuite config directories
randomNamespace, randomReportDir, randomCertsuiteConfigDir =
globalhelper.BeforeEachSetupWithRandomNamespace(
Expand Down
22 changes: 22 additions & 0 deletions tests/operator/tests/operator_install_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package operator

import (
"fmt"
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -171,6 +172,13 @@ var _ = Describe("Operator install-source,", Serial, func() {

// 66143
It("one operator not installed with OLM [negative]", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Query the packagemanifest for postgresql operator package name and catalog source")
postgresOperatorName, catalogSource := globalhelper.CheckOperatorExistsOrFail(tsparams.OperatorPackageNamePrefixLightweight,
randomNamespace)
Expand Down Expand Up @@ -242,6 +250,13 @@ var _ = Describe("Operator install-source,", Serial, func() {

// 66144
It("two operators, both installed with OLM", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Query the packagemanifest for Grafana operator package name and catalog source")
grafanaOperatorName, catalogSource := globalhelper.CheckOperatorExistsOrFail("grafana", randomNamespace)

Expand Down Expand Up @@ -329,6 +344,13 @@ var _ = Describe("Operator install-source,", Serial, func() {

// 66145
It("two operators, one not installed with OLM [negative]", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Query the packagemanifest for postgresql operator package name and catalog source")
postgresOperatorName, catalogSource := globalhelper.CheckOperatorExistsOrFail(tsparams.OperatorPackageNamePrefixLightweight,
randomNamespace)
Expand Down
15 changes: 15 additions & 0 deletions tests/operator/tests/operator_install_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package operator

import (
"fmt"
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -101,6 +102,13 @@ var _ = Describe("Operator install-source,", Serial, func() {
})

It("two operators, one does not reports Succeeded as its installation status (quick failure) [negative]", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Query the packagemanifest for postgresql operator package name and catalog source")
postgresOperatorName, catalogSource, err := globalhelper.QueryPackageManifestForOperatorNameAndCatalogSource(
tsparams.OperatorPackageNamePrefixLightweight, randomNamespace)
Expand Down Expand Up @@ -201,6 +209,13 @@ var _ = Describe("Operator install-source,", Serial, func() {
})

It("two operators, one does not reports Succeeded as its installation status (delayed failure) [negative]", Serial, func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

By("Query the packagemanifest for postgresql operator package name and catalog source")
postgresqlOperatorName, catalogSource2, err := globalhelper.QueryPackageManifestForOperatorNameAndCatalogSource(
tsparams.OperatorPackageNamePrefixLightweight, randomNamespace)
Expand Down
8 changes: 8 additions & 0 deletions tests/operator/tests/operator_install_status_no_privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package operator

import (
"fmt"
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand All @@ -21,6 +22,13 @@ var _ = Describe("Operator install-status-no-privileges,", Serial, func() {
var catalogSource string

BeforeEach(func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

// Create random namespace and keep original report and certsuite config directories
randomNamespace, randomReportDir, randomCertsuiteConfigDir =
globalhelper.BeforeEachSetupWithRandomNamespace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package operator

import (
"fmt"
"strings"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -247,6 +248,13 @@ var _ = Describe("Operator single-or-multi-namespaced-allowed-in-tenant-namespac

// negative
It("operator namespace contains single namespaced operator with operators not labelled", func() {
// TODO: Known issue with OCP 4.20 certified-operators. Fix later.
if !globalhelper.IsKindCluster() {
if ocpVersion, err := globalhelper.GetClusterVersion(); err == nil && strings.HasPrefix(ocpVersion, "4.20") {
Skip("TODO: Known issue with OCP 4.20 certified-operators. Fix later.")
}
}

createTestOperatorGroup(randomNamespace, tsparams.SingleOrMultiNamespacedOperatorGroup, []string{randomNamespace + "-one"})
installAndLabelOperator(randomNamespace)

Expand Down
Loading