Skip to content

Commit 1f91153

Browse files
committed
Add new tests to verify behavior of the new byo DNS feature
Currently feature is in Tech preview
1 parent 5960260 commit 1f91153

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

config/v1/techpreview.infrastructure.testsuite.yaml

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,5 +696,81 @@ tests:
696696
platform: AWS
697697
platformStatus:
698698
aws:
699-
dnsConfig: {}
699+
dnsConfig:
700+
provider: ClusterProvided
700701
type: AWS
702+
- name: Should be able to override the default Provider with a valid value
703+
initial: |
704+
apiVersion: config.openshift.io/v1
705+
kind: Infrastructure
706+
spec:
707+
platformSpec:
708+
aws: {}
709+
type: AWS
710+
updated: |
711+
apiVersion: config.openshift.io/v1
712+
kind: Infrastructure
713+
spec:
714+
platformSpec:
715+
aws: {}
716+
type: AWS
717+
status:
718+
platform: AWS
719+
platformStatus:
720+
aws:
721+
dnsConfig:
722+
provider: UserProvided
723+
type: AWS
724+
expected: |
725+
apiVersion: config.openshift.io/v1
726+
kind: Infrastructure
727+
spec:
728+
platformSpec:
729+
aws: {}
730+
type: AWS
731+
status:
732+
controlPlaneTopology: HighlyAvailable
733+
cpuPartitioning: None
734+
infrastructureTopology: HighlyAvailable
735+
platform: AWS
736+
platformStatus:
737+
aws:
738+
dnsConfig:
739+
provider: UserProvided
740+
type: AWS
741+
- name: Should not allow changing the immutable Provider field
742+
initial: |
743+
apiVersion: config.openshift.io/v1
744+
kind: Infrastructure
745+
spec:
746+
platformSpec:
747+
aws: {}
748+
type: AWS
749+
status:
750+
controlPlaneTopology: HighlyAvailable
751+
cpuPartitioning: None
752+
infrastructureTopology: HighlyAvailable
753+
platform: AWS
754+
platformStatus:
755+
aws:
756+
dnsConfig:
757+
provider: ClusterProvided
758+
type: AWS
759+
updated: |
760+
apiVersion: config.openshift.io/v1
761+
kind: Infrastructure
762+
spec:
763+
platformSpec:
764+
aws: {}
765+
type: AWS
766+
status:
767+
controlPlaneTopology: HighlyAvailable
768+
cpuPartitioning: None
769+
infrastructureTopology: HighlyAvailable
770+
platform: AWS
771+
platformStatus:
772+
aws:
773+
dnsConfig:
774+
provider: UserProvided
775+
type: AWS
776+
expectedStatusError: "status.platformStatus.aws.dnsConfig.provider: Invalid value: \"string\": type is immutable once set"

0 commit comments

Comments
 (0)