Skip to content

Commit 6d274cb

Browse files
committed
fix for public preview protocol to go through proper in-order steps
1 parent f6a2882 commit 6d274cb

File tree

2 files changed

+4049
-2013
lines changed

2 files changed

+4049
-2013
lines changed

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkGatewayTests.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,11 @@ function Test-VirtualNetworkGatewayOpenVPN
658658
$vnetIpConfig = New-AzureRmVirtualNetworkGatewayIpConfig -Name $vnetGatewayConfigName -PublicIpAddress $publicip -Subnet $subnet
659659

660660
# Create & Get OpenVPN virtualnetworkgateway
661-
New-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType Vpn -VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientAddressPool 201.169.0.0/16 -VpnClientRootCertificates $rootCert -VpnClientProtocol OpenVPN
661+
New-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType Vpn -VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientAddressPool 201.169.0.0/16 -VpnClientRootCertificates $rootCert
662+
$actual = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname
663+
Set-AzureRmVirtualNetworkGateway -VirtualNetworkGateway $actual -VpnClientProtocol OpenVPN
662664
$actual = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname
665+
663666
Assert-AreEqual "VpnGw1" $actual.Sku.Tier
664667
$protocols = $actual.VpnClientConfiguration.VpnClientProtocols
665668
Assert-AreEqual 1 @($protocols).Count

0 commit comments

Comments
 (0)