Skip to content

Commit ba6ba51

Browse files
authored
Merge pull request #5909 from Nilambari/preview1
Brooklyn Feature: Point To Site IPSec custom policy set on Gateway
2 parents 9a10811 + 0419b06 commit ba6ba51

File tree

300 files changed

+117264
-584921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+117264
-584921
lines changed

src/ResourceManager/Dns/Commands.Dns.Test/ScenarioTests/ZoneTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,30 @@ public void TestZoneCrud()
3232
}
3333

3434
[Fact]
35-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3635
public void TestPrivateZoneCrud()
3736
{
3837
DnsTestsBase.NewInstance.RunPowerShellTest("Test-PrivateZoneCrud");
3938
}
4039

4140
[Fact]
42-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4341
public void TestPrivateZoneCrudRegistrationVirtualNetwork()
4442
{
4543
DnsTestsBase.NewInstance.RunPowerShellTest("Test-PrivateZoneCrudRegistrationVnet");
4644
}
4745

4846
[Fact]
49-
[Trait(Category.AcceptanceType, Category.CheckIn)]
5047
public void TestPrivateZoneCrudResolutionVirtualNetwork()
5148
{
5249
DnsTestsBase.NewInstance.RunPowerShellTest("Test-PrivateZoneCrudResolutionVnet");
5350
}
5451

5552
[Fact]
56-
[Trait(Category.AcceptanceType, Category.CheckIn)]
5753
public void TestPrivateZoneCrudByVirtualNetworkIds()
5854
{
5955
DnsTestsBase.NewInstance.RunPowerShellTest("Test-PrivateZoneCrudByVirtualNetworkIds");
6056
}
6157

6258
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6459
public void TestPrivateZoneCrudByVirtualNetworkObjects()
6560
{
6661
DnsTestsBase.NewInstance.RunPowerShellTest("Test-PrivateZoneCrudByVirtualNetworkObjects");

src/ResourceManager/Network/AzureRM.Network.Netcore.psd1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ CmdletsToExport = 'Add-AzureRmApplicationGatewayAuthenticationCertificate',
241241
'Reset-AzureRmVirtualNetworkGateway',
242242
'Set-AzureRmVirtualNetworkGatewayDefaultSite',
243243
'Remove-AzureRmVirtualNetworkGatewayDefaultSite',
244+
'New-AzureRmVpnClientIpsecPolicy',
245+
'New-AzureRmVpnClientIpsecParameter',
246+
'Set-AzureRmVpnClientIpsecParameter',
247+
'Get-AzureRmVpnClientIpsecParameter'
248+
'Remove-AzureRmVpnClientIpsecParameter',
244249
'Remove-AzureRmLocalNetworkGateway',
245250
'Get-AzureRmLocalNetworkGateway', 'New-AzureRmLocalNetworkGateway',
246251
'Set-AzureRmLocalNetworkGateway',

src/ResourceManager/Network/AzureRM.Network.psd1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ CmdletsToExport = 'Add-AzureRmApplicationGatewayAuthenticationCertificate',
227227
'Add-AzureRmVpnClientRevokedCertificate',
228228
'New-AzureRmVpnClientRootCertificate',
229229
'New-AzureRmVpnClientRevokedCertificate',
230+
'New-AzureRmVpnClientIpsecPolicy',
231+
'New-AzureRmVpnClientIpsecParameter',
232+
'Set-AzureRmVpnClientIpsecParameter',
233+
'Get-AzureRmVpnClientIpsecParameter',
234+
'Remove-AzureRmVpnClientIpsecParameter',
230235
'Resize-AzureRmVirtualNetworkGateway',
231236
'Remove-AzureRmVpnClientRevokedCertificate',
232237
'Remove-AzureRmVpnClientRootCertificate',

src/ResourceManager/Network/ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@
2222

2323
## Version 6.1.0
2424
* Bump up Network SDK version from 18.0.0-preview to 19.0.0-preview
25+
* Updated below commands for feature: Point to Site IPsec custom policy set/remove on Brooklyn Gateway.
26+
- Updated New-AzureRmVirtualNetworkGateway: Added optional parameter -VpnClientIpsecPolicy [Pass the value from output of newly added command:- New-AzureRmVpnClientIpsecPolicy]
27+
- Updated Set-AzureRmVirtualNetworkGateway: Added optional parameter -VpnClientIPsecParameter [Pass the value from output of newly added command:- New-AzureRmVpnClientIpsecPolicy]
28+
* Added new commands for feature: Point to Site IPsec custom policy set/remove on Brooklyn Gateway.
29+
- New-AzureRmVpnClientIpsecPolicy : Added for passing output from this command to existing commands: New-AzureRmVirtualNetworkGateway & Set-AzureRmVirtualNetworkGateway to set Vpn IPSec policy
30+
- New-AzureRmVpnClientIpsecParameter
31+
- Set-AzureRmVpnClientIpsecParameter
32+
- Get-AzureRmVpnClientIpsecParameter
33+
- Remove-AzureRmVpnClientIpsecParameter
34+
* Added a warning note for existing command: Set-AzureRmVirtualNetworkGatewayVpnClientConfig to let users know of its plan of removal in next release.
2535
* Added cmdlet to create protocol configuration
2636
- New-AzureRmNetworkWatcherProtocolConfiguration
2737
* Added cmdlet to add a new circuit connection to an existing express route circuit.

src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,9 @@
558558
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayConnectionTests\TestVirtualNetworkGatewayConnectionwithIpsecPoliciesCRUD.json">
559559
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
560560
</None>
561+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayTests\TestVirtualNetworkGatewayP2SAndSKU.json">
562+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
563+
</None>
561564
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayConnectionTests\TestVirtualNetworkGatewayVpnDeviceConfigurationScripts.json">
562565
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
563566
</None>
@@ -618,6 +621,9 @@
618621
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayTests\VirtualNetworkGatewayRouteApiTest.json">
619622
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
620623
</None>
624+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayTests\VirtualNetworkGatewayVpnCustomIpsecPolicySetTest.json">
625+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
626+
</None>
621627
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkTests\TestResourceNavigationLinksOnSubnetCRUD.json">
622628
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
623629
</None>

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/VirtualNetworkGatewayConnectionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public VirtualNetworkGatewayConnectionTests(ITestOutputHelper output)
2626
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
2727
}
2828

29-
[Fact(Skip = "Rerecord tests")]
29+
[Fact]
3030
[Trait(Category.AcceptanceType, Category.CheckIn)]
3131
[Trait(Category.Owner, Category.brooklynft)]
3232
public void TestVirtualNetworkGatewayConnectionCRUD()
3333
{
3434
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayConnectionCRUD");
3535
}
3636

37-
[Fact(Skip = "Rerecord tests")]
37+
[Fact]
3838
[Trait(Category.AcceptanceType, Category.CheckIn)]
3939
[Trait(Category.Owner, Category.brooklynft)]
4040
public void TestVirtualNetworkGatewayConnectionSharedKeyCRUD()
@@ -50,7 +50,7 @@ public void TestVirtualNetworkeExpressRouteGatewayConnectionCRUD()
5050
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkeExpressRouteGatewayConnectionCRUD");
5151
}
5252

53-
[Fact(Skip = "Rerecord tests")]
53+
[Fact]
5454
[Trait(Category.AcceptanceType, Category.CheckIn)]
5555
[Trait(Category.Owner, Category.brooklynft)]
5656
public void TestVirtualNetworkGatewayConnectionWithBgpCRUD()

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public VirtualNetworkGatewayTests(ITestOutputHelper output)
2727
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
2828
}
2929

30-
[Fact(Skip = "NRP code to be there to test this scenario, skipping it until NRP is ready")]
30+
[Fact]
3131
[Trait(Category.AcceptanceType, Category.CheckIn)]
3232
[Trait(Category.Owner, Category.brooklynft)]
3333
public void TestVirtualNetworkExpressRouteGatewayCRUD()
@@ -43,7 +43,7 @@ public void TestVirtualNetworkGatewayCRUD()
4343
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayCRUD");
4444
}
4545

46-
[Fact(Skip = "Need to record afterwards, failing due to product issue.")]
46+
[Fact]
4747
[Trait(Category.AcceptanceType, Category.CheckIn)]
4848
[Trait(Category.Owner, Category.brooklynft)]
4949
public void TestVirtualNetworkGatewayP2SAndSKU()
@@ -65,15 +65,14 @@ public void VirtualNetworkGatewayActiveActiveFeatureTest()
6565
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayActiveActiveFeatureOperations");
6666
}
6767

68-
[Fact(Skip = "Need service team to re-record test after changes to the ClientRuntime.")]
69-
[Trait("Re-record", "ClientRuntime changes")]
68+
[Fact]
7069
[Trait(Category.Owner, Category.brooklynft)]
7170
public void VirtualNetworkGatewayRouteApiTest()
7271
{
7372
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayBgpRouteApi");
7473
}
7574

76-
[Fact(Skip ="Recorded with an older version of network, rerecord #4631")]
75+
[Fact]
7776
[Trait(Category.Owner, Category.brooklynft)]
7877
public void TestVirtualNetworkGatewayP2SVpnProfile()
7978
{
@@ -88,5 +87,12 @@ public void VirtualNetworkGatewayIkeV2Test()
8887
{
8988
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayIkeV2");
9089
}
90+
91+
[Fact]
92+
[Trait(Category.AcceptanceType, Category.CheckIn)]
93+
public void VirtualNetworkGatewayVpnCustomIpsecPolicySetTest()
94+
{
95+
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayVpnCustomIpsecPolicySet");
96+
}
9197
}
9298
}

0 commit comments

Comments
 (0)