Skip to content

Commit 33ca576

Browse files
authored
Merge pull request #19634 from Azure/mitryakh/network-may-22
Montly release of already approved PRs
2 parents fa60001 + 9af607a commit 33ca576

File tree

123 files changed

+33808
-9174
lines changed

Some content is hidden

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

123 files changed

+33808
-9174
lines changed

src/Batch/Batch.Test/Batch.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Microsoft.Azure.Batch" Version="15.3.0" />
1717
<PackageReference Include="Microsoft.Azure.Management.Batch" Version="14.0.0" />
1818
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
19-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
19+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

src/CognitiveServices/CognitiveServices.Test/CognitiveServices.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="8.2.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Compute/Compute.Test/Compute.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="57.0.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/ContainerRegistry/ContainerRegistry.Test/ContainerRegistry.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.ContainerRegistry" Version="4.0.0" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1616
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="5.6.0" />
1717
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0">
1818
<NoWarn>NU1608</NoWarn>

src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
66
<ItemGroup>
77
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
8-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
8+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
99
<PackageReference Include="Microsoft.Azure.Management.CosmosDB" Version="3.7.0-preview" />
1010
</ItemGroup>
1111
</Project>

src/DataLakeStore/DataLakeStore.Test/DataLakeStore.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Dns/Dns.Test/Dns.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
15-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1616
</ItemGroup>
1717

1818
</Project>

src/EventHub/EventHub.Test/ScenarioTests/EventHubTestRunner.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ protected EventHubTestRunner(ITestOutputHelper output)
5757
{"Microsoft.Features", null},
5858
{"Microsoft.Authorization", null},
5959
{"Microsoft.Storage", null},
60-
{"Microsoft.KeyVault", null}
60+
{"Microsoft.KeyVault", null},
61+
{"Microsoft.ManagedServiceIdentity", null},
62+
{"Microsoft.Network", null}
6163
}
6264
)
6365
.Build();

src/HDInsight/HDInsight.Test/HDInsight.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
1818
<PackageReference Include="Microsoft.Azure.Management.ManagedServiceIdentity" Version="0.11.0" />
1919
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.25.0-preview" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/HPCCache/HPCCache.Test/HPCCache.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.13.0-preview" />
1919
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.5.0" />
20-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
20+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
2121
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
2222
</ItemGroup>
2323

src/KeyVault/KeyVault.Test/KeyVault.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.1" />
1515
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/Monitor/Monitor.Test/Monitor.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Azure.Management.Monitor" Version="0.26.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.3.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.25.0-preview" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

src/NetAppFiles/NetAppFiles.Test/NetAppFiles.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
14+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1515
<PackageReference Include="Microsoft.Azure.Management.NetApp" Version="1.16.0" />
1616
</ItemGroup>
1717

src/Network/Network.Test/Network.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
17-
<PackageReference Include="Microsoft.Azure.Management.Network" Version="23.0.0" />
17+
<PackageReference Include="Microsoft.Azure.Management.Network" Version="24.0.0" />
1818
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
1919
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
2020
<PackageReference Include="Microsoft.Azure.Insights" Version="0.16.0-preview" />

src/Network/Network.Test/NrpTeamAlias.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@ class NrpTeamAlias
7070

7171
// Virtual WAN team
7272
public const string virtualwan = "routeservicedev";
73+
74+
// Ddos team
75+
public const string ddos = "ddosdev";
7376
}
7477
}

src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,21 @@ public void TestApplicationGatewayCRUDWithMutualAuthentication()
221221
TestRunner.RunTestScript(string.Format("Test-ApplicationGatewayCRUDWithMutualAuthentication -baseDir '{0}'", AppDomain.CurrentDomain.BaseDirectory));
222222
}
223223

224-
225-
226224
[Fact]
227225
[Trait(Category.AcceptanceType, Category.CheckIn)]
228226
[Trait(Category.Owner, NrpTeamAlias.nvadev_subset1)]
229227
public void TestApplicationGatewayFirewallPolicyWithCustomRules()
230228
{
231229
TestRunner.RunTestScript("Test-ApplicationGatewayFirewallPolicyWithCustomRules");
232230
}
231+
232+
233+
[Fact]
234+
[Trait(Category.AcceptanceType, Category.CheckIn)]
235+
[Trait(Category.Owner, NrpTeamAlias.nvadev_subset1)]
236+
public void TestApplicationGatewayFirewallPolicyWithUppercaseTransform()
237+
{
238+
TestRunner.RunTestScript("Test-ApplicationGatewayFirewallPolicyWithUppercaseTransform");
239+
}
233240
}
234241
}

src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.ps1

Lines changed: 68 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3352,10 +3352,11 @@ function Test-ApplicationGatewayFirewallPolicyExclusions
33523352

33533353
$ruleOverrideEntry1 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 942100
33543354
$ruleOverrideEntry2 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 942110
3355-
$sqlRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-942-APPLICATION-ATTACK-SQLI -Rule $ruleOverrideEntry1,$ruleOverrideEntry2
3355+
$ruleOverrideEntry3 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 942160 -State Enabled -Action Log
3356+
$sqlRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-942-APPLICATION-ATTACK-SQLI -Rule $ruleOverrideEntry1,$ruleOverrideEntry2, $ruleOverrideEntry3
33563357

3357-
$ruleOverrideEntry3 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 941100
3358-
$xssRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-941-APPLICATION-ATTACK-XSS -Rule $ruleOverrideEntry3
3358+
$ruleOverrideEntry4 = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId 941100
3359+
$xssRuleGroupOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleGroupOverride -RuleGroupName REQUEST-941-APPLICATION-ATTACK-XSS -Rule $ruleOverrideEntry4
33593360

33603361
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2" -RuleGroupOverride $sqlRuleGroupOverrideEntry,$xssRuleGroupOverrideEntry
33613362
$managedRules = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet -Exclusion $exclusionEntry1,$exclusionEntry2,$exclusionEntry3,$exclusionEntry4,$exclusionEntry5,$exclusionEntry6,$exclusionEntry7,$exclusionEntry8,$exclusionEntry9
@@ -3369,6 +3370,7 @@ function Test-ApplicationGatewayFirewallPolicyExclusions
33693370
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
33703371
Assert-AreEqual $policy.ManagedRules.ManagedRuleSets.Count 1
33713372
Assert-AreEqual $policy.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides.Count 2
3373+
Assert-AreEqual $policy.ManagedRules.ManagedRuleSets[0].RuleGroupOverrides[0].Rules[2].Action Log
33723374
Assert-AreEqual $policy.ManagedRules.Exclusions.Count 9
33733375
Assert-AreEqual $policy.PolicySettings.FileUploadLimitInMb $policySettings.FileUploadLimitInMb
33743376
Assert-AreEqual $policy.PolicySettings.MaxRequestBodySizeInKb $policySettings.MaxRequestBodySizeInKb
@@ -4053,9 +4055,14 @@ function Test-ApplicationGatewayCRUDWithMutualAuthentication
40534055
$clientCertFilePath = $basedir + "/ScenarioTests/Data/TrustedClientCertificate.cer"
40544056
$trustedClient01 = New-AzApplicationGatewayTrustedClientCertificate -Name $trustedClientCert01Name -CertificateFile $clientCertFilePath
40554057
$sslPolicy = New-AzApplicationGatewaySslPolicy -PolicyType Custom -MinProtocolVersion TLSv1_0 -CipherSuite "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_GCM_SHA256"
4056-
$clientAuthConfig = New-AzApplicationGatewayClientAuthConfiguration -VerifyClientCertIssuerDN
4058+
4059+
$clientAuthConfig = New-AzApplicationGatewayClientAuthConfiguration -VerifyClientCertIssuerDN -VerifyClientRevocation OCSP
4060+
Assert-AreEqual $True $clientAuthConfig.VerifyClientCertIssuerDN
4061+
Assert-AreEqual "OCSP" $clientAuthConfig.VerifyClientRevocation
4062+
40574063
$sslProfile01 = New-AzApplicationGatewaySslProfile -Name $sslProfile01Name -SslPolicy $sslPolicy -ClientAuthConfiguration $clientAuthConfig -TrustedClientCertificates $trustedClient01
4058-
4064+
Assert-AreEqual "OCSP" $sslProfile01.ClientAuthConfiguration.VerifyClientRevocation
4065+
40594066
$listener = New-AzApplicationGatewayHttpListener -Name $listenerName -Protocol Https -SslCertificate $sslCert -FrontendIPConfiguration $fipconfig -FrontendPort $port -SslProfile $sslProfile01
40604067

40614068
# backend part
@@ -4092,6 +4099,7 @@ function Test-ApplicationGatewayCRUDWithMutualAuthentication
40924099
$clientAuthConfig = Get-AzApplicationGatewayClientAuthConfiguration -SslProfile $sslProfile01
40934100
Assert-NotNull $clientAuthConfig
40944101
Assert-AreEqual $True $clientAuthConfig.VerifyClientCertIssuerDN
4102+
Assert-AreEqual "OCSP" $clientAuthConfig.VerifyClientRevocation
40954103

40964104
$getpolicy = Get-AzApplicationGatewaySslProfilePolicy -SslProfile $sslProfile01
40974105
Assert-AreEqual $sslPolicy.MinProtocolVersion $getpolicy.MinProtocolVersion
@@ -4107,6 +4115,8 @@ function Test-ApplicationGatewayCRUDWithMutualAuthentication
41074115
$trustedClient02 = Get-AzApplicationGatewayTrustedClientCertificate -Name $trustedClientCert02Name -ApplicationGateway $getgw
41084116
$getgw = Add-AzApplicationGatewaySslProfile -Name $sslProfile02Name -ApplicationGateway $getgw -TrustedClientCertificates $trustedClient01,$trustedClient02
41094117
$sslProfile01 = Set-AzApplicationGatewayClientAuthConfiguration -SslProfile $sslProfile01
4118+
Assert-AreEqual "None" $sslProfile01.ClientAuthConfiguration.VerifyClientRevocation
4119+
41104120
$sslProfile01 = Set-AzApplicationGatewaySslProfilePolicy -SslProfile $sslProfile01 -PolicyType Custom -MinProtocolVersion TLSv1_1 -CipherSuite "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_GCM_SHA256"
41114121
$sslPolicy02 = New-AzApplicationGatewaySslPolicy -PolicyType Custom -MinProtocolVersion TLSv1_1 -CipherSuite "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_128_GCM_SHA256"
41124122
$getgw = Set-AzApplicationGatewaySslProfile -Name $sslProfile02Name -ApplicationGateway $getgw -SslPolicy $sslPolicy02 -TrustedClientCertificates $trustedClient01,$trustedClient02 -ClientAuthConfiguration $clientAuthConfig
@@ -4132,7 +4142,8 @@ function Test-ApplicationGatewayCRUDWithMutualAuthentication
41324142

41334143
$clientAuthConfig = Get-AzApplicationGatewayClientAuthConfiguration -SslProfile $getgw.SslProfiles[0]
41344144
Assert-AreEqual $False $clientAuthConfig.VerifyClientCertIssuerDN
4135-
4145+
Assert-AreEqual "None" $clientAuthConfig.VerifyClientRevocation
4146+
41364147
# Remove operations.
41374148
$sslProfile02 = Remove-AzApplicationGatewaySslProfilePolicy -SslProfile $sslProfile02
41384149
$getpolicy = Get-AzApplicationGatewaySslProfilePolicy -SslProfile $sslProfile02
@@ -4208,3 +4219,54 @@ function Test-ApplicationGatewayFirewallPolicyWithCustomRules
42084219
Clean-ResourceGroup $rgname
42094220
}
42104221
}
4222+
4223+
function Test-ApplicationGatewayFirewallPolicyWithUppercaseTransform
4224+
{
4225+
# Setup
4226+
$location = Get-ProviderLocation "Microsoft.Network/applicationGateways" "West US 2"
4227+
4228+
$rgname = Get-ResourceGroupName
4229+
$wafPolicy = Get-ResourceName
4230+
4231+
try
4232+
{
4233+
$resourceGroup = New-AzResourceGroup -Name $rgname -Location $location -Tags @{ testtag = "APPGw tag"}
4234+
4235+
# WAF Policy and Custom Rule
4236+
$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector Content-Length
4237+
$condition = New-AzApplicationGatewayFirewallCondition -MatchVariable $variable -Operator GreaterThan -MatchValue 1000 -Transform Uppercase -NegationCondition $False
4238+
$rule = New-AzApplicationGatewayFirewallCustomRule -Name example -Priority 2 -RuleType MatchRule -MatchCondition $condition -Action Block
4239+
$policySettings = New-AzApplicationGatewayFirewallPolicySetting -Mode Prevention -State Enabled -MaxFileUploadInMb 70 -MaxRequestBodySizeInKb 70
4240+
$managedRuleSet = New-AzApplicationGatewayFirewallPolicyManagedRuleSet -RuleSetType "OWASP" -RuleSetVersion "3.2"
4241+
$managedRule = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet
4242+
New-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname -Location $location -ManagedRule $managedRule -PolicySetting $policySettings
4243+
4244+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4245+
$policy.CustomRules = $rule
4246+
Set-AzApplicationGatewayFirewallPolicy -InputObject $policy
4247+
4248+
$policy = Get-AzApplicationGatewayFirewallPolicy -Name $wafPolicy -ResourceGroupName $rgname
4249+
4250+
# Second check firewll policy
4251+
Assert-AreEqual $policy.CustomRules[0].Name $rule.Name
4252+
Assert-AreEqual $policy.CustomRules[0].RuleType $rule.RuleType
4253+
Assert-AreEqual $policy.CustomRules[0].Action $rule.Action
4254+
Assert-AreEqual $policy.CustomRules[0].Priority $rule.Priority
4255+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].OperatorProperty $rule.MatchConditions[0].OperatorProperty
4256+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].Transforms[0] $rule.MatchConditions[0].Transforms[0]
4257+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].NegationConditon $rule.MatchConditions[0].NegationConditon
4258+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchValues[0] $rule.MatchConditions[0].MatchValues[0]
4259+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchVariables[0].VariableName $rule.MatchConditions[0].MatchVariables[0].VariableName
4260+
Assert-AreEqual $policy.CustomRules[0].MatchConditions[0].MatchVariables[0].Selector $rule.MatchConditions[0].MatchVariables[0].Selector
4261+
Assert-AreEqual $policy.PolicySettings.FileUploadLimitInMb $policySettings.FileUploadLimitInMb
4262+
Assert-AreEqual $policy.PolicySettings.MaxRequestBodySizeInKb $policySettings.MaxRequestBodySizeInKb
4263+
Assert-AreEqual $policy.PolicySettings.RequestBodyCheck $policySettings.RequestBodyCheck
4264+
Assert-AreEqual $policy.PolicySettings.Mode $policySettings.Mode
4265+
Assert-AreEqual $policy.PolicySettings.State $policySettings.State
4266+
}
4267+
finally
4268+
{
4269+
# Cleanup
4270+
Clean-ResourceGroup $rgname
4271+
}
4272+
}

src/Network/Network.Test/ScenarioTests/CortexTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ public void TestRoutingIntentCRUD()
4343
TestRunner.RunTestScript("Test-RoutingIntentCRUD");
4444
}
4545

46+
[Fact]
47+
[Trait(Category.AcceptanceType, Category.CheckIn)]
48+
[Trait(Category.Owner, NrpTeamAlias.virtualwan)]
49+
public void TestStaticRoutesConfig()
50+
{
51+
TestRunner.RunTestScript("Test-StaticRoutesConfigCRUD");
52+
}
53+
4654
[Fact]
4755
[Trait(Category.AcceptanceType, Category.CheckIn)]
4856
[Trait(Category.Owner, NrpTeamAlias.brooklynft)]
@@ -130,5 +138,13 @@ public void TestVpnSiteLinkConnectionGetIkeSa()
130138
{
131139
TestRunner.RunTestScript("Test-VpnSiteLinkConnectionGetIkeSa");
132140
}
141+
142+
[Fact]
143+
[Trait(Category.AcceptanceType, Category.CheckIn)]
144+
[Trait(Category.Owner, NrpTeamAlias.brooklynft)]
145+
public void TestVirtualHubAndVpnGatewayWithCustomAsn()
146+
{
147+
TestRunner.RunTestScript("Test-VirtualHubAndVpnGatewayWithCustomAsn");
148+
}
133149
}
134150
}

0 commit comments

Comments
 (0)