From 324b9a982d1c03fa8c338830e441c28b35a58183 Mon Sep 17 00:00:00 2001 From: Patryk Matuszak Date: Thu, 16 May 2024 13:07:59 +0200 Subject: [PATCH] Use RH's Community Operators instead of OperatorHub.io --- test/assets/olm/catalog-source.yaml | 8 ++++---- test/assets/olm/subscription-cert-manager.yaml | 2 +- test/suites/optional/olm.robot | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/assets/olm/catalog-source.yaml b/test/assets/olm/catalog-source.yaml index 18e3252ce4..e5400e427e 100644 --- a/test/assets/olm/catalog-source.yaml +++ b/test/assets/olm/catalog-source.yaml @@ -1,13 +1,13 @@ apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: - name: operatorhubio-catalog + name: redhat-community-catalog namespace: openshift-marketplace spec: sourceType: grpc - image: quay.io/operatorhubio/catalog:latest - displayName: Community Operators - publisher: OperatorHub.io + image: registry.redhat.io/redhat/community-operator-index:v4.15 + displayName: Red Hat Community Operators + publisher: Red Hat grpcPodConfig: securityContextConfig: restricted updateStrategy: diff --git a/test/assets/olm/subscription-cert-manager.yaml b/test/assets/olm/subscription-cert-manager.yaml index 0d75e14871..080009bd6a 100644 --- a/test/assets/olm/subscription-cert-manager.yaml +++ b/test/assets/olm/subscription-cert-manager.yaml @@ -6,5 +6,5 @@ metadata: spec: channel: stable name: cert-manager - source: operatorhubio-catalog + source: redhat-community-catalog sourceNamespace: openshift-marketplace diff --git a/test/suites/optional/olm.robot b/test/suites/optional/olm.robot index c882756010..5e34005b04 100644 --- a/test/suites/optional/olm.robot +++ b/test/suites/optional/olm.robot @@ -20,7 +20,7 @@ Deploy CertManager From OperatorHubIO [Documentation] Deploy CertManager from OperatorHub Catalog. [Setup] Run Keywords ... OLM Should Be Ready - ... Create OperatorHub CatalogSource + ... Create CatalogSource ... Create CertManager Subscription ${csv}= Get CSV Name From Subscription ${OPERATORS_NAMESPACE} my-cert-manager @@ -29,7 +29,7 @@ Deploy CertManager From OperatorHubIO Wait For Deployments ${OPERATORS_NAMESPACE} @{deployments} [Teardown] Run Keywords - ... Delete OperatorHub CatalogSource + ... Delete CatalogSource ... AND ... Delete CertManager Subscription ... AND @@ -55,11 +55,11 @@ OLM Should Be Ready Named Deployment Should Be Available catalog-operator openshift-operator-lifecycle-manager Named Deployment Should Be Available olm-operator openshift-operator-lifecycle-manager -Create OperatorHub CatalogSource - [Documentation] Create CatalogSource resource pointing to OperatorHub.io catalog. +Create CatalogSource + [Documentation] Create CatalogSource resource with RedHat Community Index Catalog. Oc Create -f ${CATALOG_SOURCE} Wait Until Keyword Succeeds 120s 5s - ... CatalogSource Should Be Ready ${MARKETPLACE_NAMESPACE} operatorhubio-catalog + ... CatalogSource Should Be Ready ${MARKETPLACE_NAMESPACE} redhat-community-catalog CatalogSource Should Be Ready [Documentation] Checks if CatalogSource is ready. @@ -116,8 +116,8 @@ Wait For Deployments Named Deployment Should Be Available ${deploy} ${namespace} 120s END -Delete OperatorHub CatalogSource - [Documentation] Delete OperatorHub's CatalogSource. +Delete CatalogSource + [Documentation] Delete CatalogSource. Oc Delete -f ${CATALOG_SOURCE} Delete CertManager Subscription