Skip to content

Commit

Permalink
Add new tests to verify behavior of the new byo DNS feature
Browse files Browse the repository at this point in the history
Currently feature is in Tech preview
  • Loading branch information
sadasu committed Jul 18, 2023
1 parent 5960260 commit 1f91153
Showing 1 changed file with 77 additions and 1 deletion.
78 changes: 77 additions & 1 deletion config/v1/techpreview.infrastructure.testsuite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -696,5 +696,81 @@ tests:
platform: AWS
platformStatus:
aws:
dnsConfig: {}
dnsConfig:
provider: ClusterProvided
type: AWS
- name: Should be able to override the default Provider with a valid value
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
aws: {}
type: AWS
updated: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
aws: {}
type: AWS
status:
platform: AWS
platformStatus:
aws:
dnsConfig:
provider: UserProvided
type: AWS
expected: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
aws: {}
type: AWS
status:
controlPlaneTopology: HighlyAvailable
cpuPartitioning: None
infrastructureTopology: HighlyAvailable
platform: AWS
platformStatus:
aws:
dnsConfig:
provider: UserProvided
type: AWS
- name: Should not allow changing the immutable Provider field
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
aws: {}
type: AWS
status:
controlPlaneTopology: HighlyAvailable
cpuPartitioning: None
infrastructureTopology: HighlyAvailable
platform: AWS
platformStatus:
aws:
dnsConfig:
provider: ClusterProvided
type: AWS
updated: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec:
platformSpec:
aws: {}
type: AWS
status:
controlPlaneTopology: HighlyAvailable
cpuPartitioning: None
infrastructureTopology: HighlyAvailable
platform: AWS
platformStatus:
aws:
dnsConfig:
provider: UserProvided
type: AWS
expectedStatusError: "status.platformStatus.aws.dnsConfig.provider: Invalid value: \"string\": type is immutable once set"

0 comments on commit 1f91153

Please sign in to comment.