File tree Expand file tree Collapse file tree 1 file changed +77
-1
lines changed Expand file tree Collapse file tree 1 file changed +77
-1
lines changed Original file line number Diff line number Diff line change @@ -696,5 +696,81 @@ tests:
696
696
platform: AWS
697
697
platformStatus:
698
698
aws:
699
- dnsConfig: {}
699
+ dnsConfig:
700
+ provider: ClusterProvided
700
701
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"
You can’t perform that action at this time.
0 commit comments