From 5e3770c2a907827ac4c30bdf7b9ad6f138a35504 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..7bce9ca818 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.16 + 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 42db9fb212..1584fc4cce 100644 --- a/test/suites/optional/olm.robot +++ b/test/suites/optional/olm.robot @@ -21,7 +21,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 @@ -30,7 +30,7 @@ Deploy CertManager From OperatorHubIO Wait For Deployments ${OPERATORS_NAMESPACE} @{deployments} [Teardown] Run Keywords - ... Delete OperatorHub CatalogSource + ... Delete CatalogSource ... AND ... Delete CertManager Subscription ... AND @@ -57,11 +57,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 Red Hat Community Catalog Index. 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. @@ -118,8 +118,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