From 1f9115363da540520745152cbe78f0a5c1cb5dd4 Mon Sep 17 00:00:00 2001 From: Sandhya Dasu Date: Mon, 17 Jul 2023 09:13:26 -0400 Subject: [PATCH] Add new tests to verify behavior of the new byo DNS feature Currently feature is in Tech preview --- .../techpreview.infrastructure.testsuite.yaml | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/config/v1/techpreview.infrastructure.testsuite.yaml b/config/v1/techpreview.infrastructure.testsuite.yaml index 25d59e985fd..ee7661fd21b 100644 --- a/config/v1/techpreview.infrastructure.testsuite.yaml +++ b/config/v1/techpreview.infrastructure.testsuite.yaml @@ -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"