Skip to content

Commit 629a54c

Browse files
committed
Update CI tests
1 parent f0bbfe9 commit 629a54c

8 files changed

Lines changed: 83 additions & 0 deletions

tests/common-acm-industrial-edge-hub.expected.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ spec:
233233
# Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
234234
- name: global.clusterVersion
235235
value: '{{ printf "%d.%d" ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Major) ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Minor) }}'
236+
- name: global.localClusterName
237+
value: '{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}'
236238
- name: global.clusterPlatform
237239
value: aws
238240
- name: clusterGroup.name

tests/common-acm-medical-diagnosis-hub.expected.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ spec:
224224
# Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
225225
- name: global.clusterVersion
226226
value: '{{ printf "%d.%d" ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Major) ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Minor) }}'
227+
- name: global.localClusterName
228+
value: '{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}'
227229
- name: global.clusterPlatform
228230
value: aws
229231
- name: clusterGroup.name

tests/common-acm-normal.expected.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ spec:
627627
# Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
628628
- name: global.clusterVersion
629629
value: '{{ printf "%d.%d" ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Major) ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Minor) }}'
630+
- name: global.localClusterName
631+
value: '{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}'
630632
- name: global.clusterPlatform
631633
value: aws
632634
- name: clusterGroup.name
@@ -721,6 +723,8 @@ spec:
721723
# Requires ACM 2.6 or higher (I could not come up with something less terrible to get maj.min)
722724
- name: global.clusterVersion
723725
value: '{{ printf "%d.%d" ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Major) ((semver (lookup "operator.openshift.io/v1" "OpenShiftControllerManager" "" "cluster").status.version).Minor) }}'
726+
- name: global.localClusterName
727+
value: '{{ (split "." (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain)._1 }}'
724728
- name: global.clusterPlatform
725729
value: aws
726730
- name: clusterGroup.name

tests/common-operator-install-industrial-edge-factory.expected.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
---
2+
# Source: pattern-install/templates/pattern-operator-configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: patterns-operator-config
7+
namespace: openshift-operators
8+
data:
9+
gitops.catalogSource: redhat-operators
10+
gitops.channel: gitops-1.8
11+
12+
# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
13+
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
14+
# gitops.ManualSync: GitOpsDefaultManualSync
15+
# gitops.name: GitOpsDefaultPackageName
16+
---
217
# Source: pattern-install/templates/pattern.yaml
318
apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
419
kind: Pattern

tests/common-operator-install-industrial-edge-hub.expected.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
---
2+
# Source: pattern-install/templates/pattern-operator-configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: patterns-operator-config
7+
namespace: openshift-operators
8+
data:
9+
gitops.catalogSource: redhat-operators
10+
gitops.channel: gitops-1.8
11+
12+
# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
13+
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
14+
# gitops.ManualSync: GitOpsDefaultManualSync
15+
# gitops.name: GitOpsDefaultPackageName
16+
---
217
# Source: pattern-install/templates/pattern.yaml
318
apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
419
kind: Pattern

tests/common-operator-install-medical-diagnosis-hub.expected.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
---
2+
# Source: pattern-install/templates/pattern-operator-configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: patterns-operator-config
7+
namespace: openshift-operators
8+
data:
9+
gitops.catalogSource: redhat-operators
10+
gitops.channel: gitops-1.8
11+
12+
# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
13+
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
14+
# gitops.ManualSync: GitOpsDefaultManualSync
15+
# gitops.name: GitOpsDefaultPackageName
16+
---
217
# Source: pattern-install/templates/pattern.yaml
318
apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
419
kind: Pattern

tests/common-operator-install-naked.expected.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
---
2+
# Source: pattern-install/templates/pattern-operator-configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: patterns-operator-config
7+
namespace: openshift-operators
8+
data:
9+
gitops.catalogSource: redhat-operators
10+
gitops.channel: gitops-1.8
11+
12+
# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
13+
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
14+
# gitops.ManualSync: GitOpsDefaultManualSync
15+
# gitops.name: GitOpsDefaultPackageName
16+
---
217
# Source: pattern-install/templates/pattern.yaml
318
apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
419
kind: Pattern

tests/common-operator-install-normal.expected.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
---
2+
# Source: pattern-install/templates/pattern-operator-configmap.yaml
3+
apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: patterns-operator-config
7+
namespace: openshift-operators
8+
data:
9+
gitops.catalogSource: redhat-operators
10+
gitops.channel: gitops-1.8
11+
12+
# gitops.sourceNamespace: GitOpsDefaultCatalogSourceNamespace
13+
# gitops.installApprovalPlan: GitOpsDefaultApprovalPlan
14+
# gitops.ManualSync: GitOpsDefaultManualSync
15+
# gitops.name: GitOpsDefaultPackageName
16+
---
217
# Source: pattern-install/templates/pattern.yaml
318
apiVersion: gitops.hybrid-cloud-patterns.io/v1alpha1
419
kind: Pattern

0 commit comments

Comments
 (0)