From 0b525e2961a07155156f2ef494bd5ea40ac694a7 Mon Sep 17 00:00:00 2001 From: tschneid Date: Thu, 20 Jul 2023 15:50:28 -0500 Subject: [PATCH] add test case --- .../openshiftcluster_validatestatic_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/api/v20230701preview/openshiftcluster_validatestatic_test.go b/pkg/api/v20230701preview/openshiftcluster_validatestatic_test.go index 5cb84eb5321..5acb5bde45b 100644 --- a/pkg/api/v20230701preview/openshiftcluster_validatestatic_test.go +++ b/pkg/api/v20230701preview/openshiftcluster_validatestatic_test.go @@ -536,6 +536,14 @@ func TestOpenShiftClusterStaticValidateNetworkProfile(t *testing.T) { }, wantErr: "400: InvalidParameter: properties.networkProfile.loadBalancerProfile: The provided loadBalancerProfile is invalid: cannot use a loadBalancerProfile if outboundType is UserDefinedRouting.", }, + { + name: "Not passing in a LoadbalancerProfile is valid.", + current: func(oc *OpenShiftCluster) { + oc.Properties.NetworkProfile.OutboundType = OutboundTypeLoadbalancer + oc.Properties.NetworkProfile.LoadbalancerProfile = nil + }, + wantErr: "", + }, } runTests(t, testModeCreate, tests)