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
135 changes: 135 additions & 0 deletions config/v1/tests/infrastructures.config.openshift.io/AAA_ungated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: "Infrastructure"
crdName: infrastructures.config.openshift.io
featureGates:
- -AWSClusterHostedDNSInstall
- -VSphereMultiVCenterDay2
tests:
onCreate:
- name: Should be able to create a minimal Infrastructure
Expand Down Expand Up @@ -1839,3 +1840,137 @@ tests:
value: value*
type: AWS
expectedStatusError: "invalid AWS resource tag value. The string can contain only the set of alphanumeric characters, space (' '), '_', '.', '/', '=', '+', '-', ':', '@'"
- name: Should allow updating other fields with an invalid persisted vcenters array (empty) in spec
initialCRDPatches:
- op: remove
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/platformSpec/properties/vsphere/properties/vcenters/minItems
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters: []
updated: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
cloudConfig:
key: config
name: cloud-provider-config
platformSpec:
type: VSphere
vsphere:
vcenters: []
expected: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
cloudConfig:
key: config
name: cloud-provider-config
platformSpec:
type: VSphere
vsphere:
vcenters: []
- name: Should allow keeping an invalid persisted vcenters array (empty) in spec unchanged
initialCRDPatches:
- op: remove
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/platformSpec/properties/vsphere/properties/vcenters/minItems
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters: []
failureDomains:
- name: fd1
region: region1
server: vcenter1.example.com
topology:
computeCluster: /DC1/host/cluster1
datacenter: DC1
datastore: /DC1/datastore/ds1
networks:
- network1
resourcePool: /DC1/host/cluster1/Resources
zone: zone1
updated: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters: []
failureDomains:
- name: fd1
region: region1
server: vcenter1.example.com
topology:
computeCluster: /DC1/host/cluster1
datacenter: DC1
datastore: /DC1/datastore/ds1
networks:
- network1
resourcePool: /DC1/host/cluster1/Resources
zone: zone1
expected: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters: []
failureDomains:
- name: fd1
region: region1
server: vcenter1.example.com
topology:
computeCluster: /DC1/host/cluster1
datacenter: DC1
datastore: /DC1/datastore/ds1
networks:
- network1
resourcePool: /DC1/host/cluster1/Resources
zone: zone1
- name: Should allow updating an invalid persisted vcenters array (empty) to a valid value (1 vcenter) in spec
initialCRDPatches:
- op: remove
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/platformSpec/properties/vsphere/properties/vcenters/minItems
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters: []
updated: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters:
- server: vcenter1.example.com
port: 443
datacenters:
- DC1
expected: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
type: VSphere
vsphere:
vcenters:
- server: vcenter1.example.com
port: 443
datacenters:
- DC1
Loading