Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-schndr committed Jul 20, 2023
1 parent 916ae54 commit 0b525e2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b525e2

Please sign in to comment.