Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to Get IKE Security Associations on Virtual Network Gateway Connections #13853

Merged
merged 39 commits into from
Jan 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7bd90a2
Adding GetIkeSas
Dec 21, 2020
2c3703c
Implemented as string
Dec 21, 2020
592def5
Returning Ike Sas
Dec 23, 2020
34f42e1
Changed IkeSas to IkeSa
Dec 28, 2020
07b3431
Revert "Changed IkeSas to IkeSa"
Dec 28, 2020
6b4ea27
GetIkeSas
Dec 28, 2020
1c6fa2b
Changed IkeSas to IkeSa
Dec 28, 2020
9d9f67c
Updating changelog.md
Dec 30, 2020
a2ea28e
Merge branch 'network-august' into vng-ikesas
abhi7860 Dec 30, 2020
e2842ef
Removing unnecessary usings
Dec 31, 2020
84a1add
Adding csproj
Dec 31, 2020
782d349
Revert "Adding csproj"
Dec 31, 2020
1ddcb32
Adding required proj files and packages
Jan 4, 2021
9a557f1
Resolving comment
Jan 4, 2021
ac48586
Update Get-AzVirtualNetworkGatewayConnectionIkeSa.md
Jan 4, 2021
0e9e7ce
Update Get-AzVirtualNetworkGatewayConnectionIkeSa.md
Jan 4, 2021
5d09e38
Changing mandatory parameters
Jan 6, 2021
3885cb0
Update GetAzVirtualNetworkGatewayConnectionIkeSaCommand.cs
Jan 6, 2021
4e579f1
Adding test
Jan 7, 2021
02290b8
Merge branch 'network-august' into vng-ikesas
isra-fel Jan 7, 2021
4d1622f
Update VirtualNetworkGatewayConnectionTests.ps1
Jan 7, 2021
e79d904
Revert "Adding required proj files and packages"
Jan 8, 2021
10d2180
Merge remote-tracking branch 'upstream/network-august' into vng-ikesas
Jan 8, 2021
84ecf3b
Updating tests
Jan 11, 2021
73d054d
Modifying data type
Jan 12, 2021
d51019a
Update VirtualNetworkGatewayConnectionTests.cs
Jan 12, 2021
22490d3
Cherry-Picked changes
Jan 12, 2021
7e9cc32
Test case
Jan 12, 2021
85257dc
Resolving comment
abhi7860 Jan 12, 2021
d865935
Resolving comment
abhi7860 Jan 12, 2021
6a70a09
Revert "Resolving comment"
Jan 12, 2021
3409f18
Merge from upstream/release-2021-01-19
Jan 12, 2021
8ba6ff6
Modifying test
Jan 12, 2021
e3b573f
Adding Session Record
Jan 12, 2021
ee22629
New Session Record
Jan 13, 2021
1deaa3f
Bug fix
Jan 13, 2021
2c87cc7
Merge branch 'release-2021-01-19' into vng-ikesas
Jan 13, 2021
456b966
Updated test case and session record
Jan 13, 2021
c7ce283
Merge branch 'release-2021-01-19' into vng-ikesas
isra-fel Jan 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test case
  • Loading branch information
Abhishek Shah committed Jan 12, 2021
commit 7e9cc32afb7e8caac830a06ac19d576332e1590e
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public void TestVirtualNetworkGatewayConnectionWithTrafficSelectorCRUD()
TestRunner.RunTestScript("Test-VirtualNetworkGatewayConnectionWithTrafficSelector");
}

//[Fact]
//[Trait(Category.AcceptanceType, Category.CheckIn)]
//[Trait(Category.Owner, NrpTeamAlias.brooklynft_subset5)]
//public void TestVirtualNetworkGatewayConnectionGetIkeSa()
//{
// TestRunner.RunTestScript("Test-VirtualNetworkGatewayConnectionGetIkeSa");
//}
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.brooklynft_subset3)]
public void TestVirtualNetworkGatewayConnectionGetIkeSa()
{
TestRunner.RunTestScript("Test-VirtualNetworkGatewayConnectionGetIkeSa");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ function Test-VirtualNetworkGatewayConnectionGetIkeSa
$vnet = New-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
$vnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $rgname
$subnet = Get-AzVirtualNetworkSubnetConfig -Name "GatewaySubnet" -VirtualNetwork $vnet
Assert-NotNull $vnet
Assert-NotNull $subnet

# Create the publicip
$publicip = New-AzPublicIpAddress -ResourceGroupName $rgname -name $publicIpName -location $location -AllocationMethod Dynamic -DomainNameLabel $domainNameLabel
Expand All @@ -810,10 +812,12 @@ function Test-VirtualNetworkGatewayConnectionGetIkeSa
# Also test overriding the gateway ASN
$actual = New-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType Vpn -VpnType RouteBased -GatewaySku Standard -Asn 55000
$vnetGateway = Get-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $rname
Assert-NotNull $vnetGateway

# Create LocalNetworkGateway
$actual = New-AzLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName -location $location -AddressPrefix 192.168.0.0/16 -GatewayIpAddress 192.168.3.10 -Asn 1337 -BgpPeeringAddress "192.168.1.1" -PeerWeight 5
$localnetGateway = Get-AzLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName
Assert-NotNull $localnetGateway

# Create & Get VirtualNetworkGatewayConnection
$actual = New-AzVirtualNetworkGatewayConnection -ResourceGroupName $rgname -name $vnetConnectionName -location $location -VirtualNetworkGateway1 $vnetGateway -LocalNetworkGateway2 $localnetGateway -ConnectionType IPsec -RoutingWeight 3 -SharedKey abc -EnableBgp $true
Expand Down