@@ -11,28 +11,29 @@ Suite Teardown Teardown
11
11
12
12
*** Variables ***
13
13
${CATALOG_SOURCE } ./assets/olm/catalog-source.yaml
14
- ${SUB_CERT_MANAGER } ./assets/olm/subscription-cert-manager.yaml
14
+ ${SUBSCRIPTION } ./assets/olm/subscription.yaml
15
+ ${SUBSCRIPTION_NAME } amq-broker
15
16
${MARKETPLACE_NAMESPACE } openshift-marketplace
16
17
${OPERATORS_NAMESPACE } openshift-operators
17
18
18
19
19
20
*** Test Cases ***
20
- Deploy CertManager From OperatorHubIO
21
- [Documentation] Deploy CertManager from OperatorHub Catalog .
21
+ Deploy AmqBroker From Red Hat Operators catalog
22
+ [Documentation] Deploy AMQ Broker from Red Hat Operators catalog .
22
23
[Setup] Run Keywords
23
24
... OLM Should Be Ready
24
25
... Create CatalogSource
25
- ... Create CertManager Subscription
26
+ ... Create Subscription
26
27
27
- ${csv } = Get CSV Name From Subscription ${OPERATORS_NAMESPACE } my-cert-manager
28
+ ${csv } = Get CSV Name From Subscription ${OPERATORS_NAMESPACE } ${ SUBSCRIPTION_NAME }
28
29
Wait For CSV ${OPERATORS_NAMESPACE } ${csv }
29
30
@{deployments } = Get Deployments From CSV ${OPERATORS_NAMESPACE } ${csv }
30
31
Wait For Deployments ${OPERATORS_NAMESPACE } @{deployments }
31
32
32
33
[Teardown] Run Keywords
33
34
... Delete CatalogSource
34
35
... AND
35
- ... Delete CertManager Subscription
36
+ ... Delete Subscription
36
37
... AND
37
38
... Delete CSV ${OPERATORS_NAMESPACE } ${csv }
38
39
... AND
@@ -61,19 +62,19 @@ Create CatalogSource
61
62
[Documentation] Create CatalogSource resource with Red Hat Community Catalog Index.
62
63
Oc Create -f ${CATALOG_SOURCE }
63
64
Wait Until Keyword Succeeds 120s 5s
64
- ... CatalogSource Should Be Ready ${MARKETPLACE_NAMESPACE } redhat-community-catalog
65
+ ... CatalogSource Should Be Ready ${MARKETPLACE_NAMESPACE } redhat-operators
65
66
66
67
CatalogSource Should Be Ready
67
68
[Documentation] Checks if CatalogSource is ready.
68
69
[Arguments] ${namespace } ${name }
69
70
${catalog } = Oc Get catalogsources ${namespace } ${name }
70
71
Should Be Equal As Strings READY ${catalog.status.connectionState.lastObservedState }
71
72
72
- Create CertManager Subscription
73
- [Documentation] Creates cert-manager subscription.
74
- Oc Create -f ${SUB_CERT_MANAGER }
73
+ Create Subscription
74
+ [Documentation] Creates subscription.
75
+ Oc Create -f ${SUBSCRIPTION }
75
76
Wait Until Keyword Succeeds 120s 5s
76
- ... Subscription Should Be AtLatestKnown ${OPERATORS_NAMESPACE } my-cert-manager
77
+ ... Subscription Should Be AtLatestKnown ${OPERATORS_NAMESPACE } ${ SUBSCRIPTION_NAME }
77
78
78
79
Subscription Should Be AtLatestKnown
79
80
[Documentation] Checks if subscription has state "AtLeastKnown"
@@ -84,7 +85,7 @@ Subscription Should Be AtLatestKnown
84
85
Get CSV Name From Subscription
85
86
[Documentation] Obtains Subscription's CSV name.
86
87
[Arguments] ${namespace } ${name }
87
- ${sub } = Oc Get subscriptions.operators.coreos.com ${OPERATORS_NAMESPACE } my-cert-manager
88
+ ${sub } = Oc Get subscriptions.operators.coreos.com ${OPERATORS_NAMESPACE } ${ SUBSCRIPTION_NAME }
88
89
RETURN ${sub.status.currentCSV }
89
90
90
91
Wait For CSV
@@ -122,9 +123,9 @@ Delete CatalogSource
122
123
[Documentation] Delete CatalogSource.
123
124
Oc Delete -f ${CATALOG_SOURCE }
124
125
125
- Delete CertManager Subscription
126
- [Documentation] Delete CertManager Subscription.
127
- Oc Delete -f ${SUB_CERT_MANAGER }
126
+ Delete Subscription
127
+ [Documentation] Delete Subscription.
128
+ Oc Delete -f ${SUBSCRIPTION }
128
129
129
130
Delete CSV
130
131
[Documentation] Delete CSV.
0 commit comments