Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
56c205c
add firewall policy new commands
adgrieve Oct 13, 2020
74f1eec
SDK
adgrieve Oct 14, 2020
2154ded
network test project
adgrieve Oct 14, 2020
694c336
firewall policy premium test
adgrieve Oct 14, 2020
f8f4f42
add UT
adgrieve Oct 14, 2020
ca90ba7
finish UT
adgrieve Oct 15, 2020
90c67d4
help files
adgrieve Oct 15, 2020
e4f657a
merge
adgrieve Oct 18, 2020
c21ae75
add nuget package
adgrieve Oct 19, 2020
25a7656
CR
adgrieve Oct 19, 2020
c780750
Updated ApiVersion from 2020-05-01 to 2020-07-01 (#13357)
v-shhatt Oct 29, 2020
c803667
Added officially published SDK (#13409)
MikhailTryakhov Nov 4, 2020
381d204
change to new SDK version
adgrieve Nov 4, 2020
7b59ad7
Add TranslatedFqdn option for Azure Firewall Policy NAT Rule (#13238)
tejasshah7 Nov 5, 2020
1adb001
merge
adgrieve Nov 5, 2020
2fc3967
fixes
adgrieve Nov 5, 2020
facd50e
fix
adgrieve Nov 5, 2020
c035715
fix
adgrieve Nov 5, 2020
c82ba36
Added WebCategories
kenchenMicrosoft Dec 8, 2020
1c627aa
merge
adgrieve Dec 10, 2020
11744a5
merge git pull
kenchenMicrosoft Dec 14, 2020
3877d7f
merge git pull
kenchenMicrosoft Dec 14, 2020
8ae8209
Premium sets and TLS
kenchenMicrosoft Dec 15, 2020
d51e781
Merge branch 'adiMaster' into PremiumSetAndTLS
kenchenMicrosoft Dec 15, 2020
9bb11e5
Added .md files for changes
kenchenMicrosoft Dec 16, 2020
63537f9
Added change log for premiume set changes
kenchenMicrosoft Dec 16, 2020
cbeba49
changeLog.md from adi
kenchenMicrosoft Dec 16, 2020
b62c671
added shouldProcess and fixed variable name
kenchenMicrosoft Dec 17, 2020
8d31e22
changing -SignatureOverrides to -SignatureOverride
kenchenMicrosoft Dec 18, 2020
2799686
re-record tests and remove FirewallPolicySslCert.pfx as it wasn't needed
kenchenMicrosoft Dec 22, 2020
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
51 changes: 51 additions & 0 deletions src/Network/Network.Test/ScenarioTests/AzureFirewallPolicyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using Microsoft.Azure.Commands.Network.Test.ScenarioTests;
using Microsoft.Azure.Test.HttpRecorder;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Xunit.Abstractions;
Expand Down Expand Up @@ -81,5 +84,53 @@ public void TestAzureFirewallPolicyWithWebCategories()
{
TestRunner.RunTestScript("Test-AzureFirewallPolicyWithWebCategories");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
public void TestAzureFirewallPolicyPremiumFeatures()
{
string environmentConnectionString = Environment.GetEnvironmentVariable("TEST_CSM_ORGID_AUTHENTICATION");
string servicePrincipal = "fakefakefake";
if (!string.IsNullOrEmpty(environmentConnectionString))
{
var connectionInfo = new ConnectionString(Environment.GetEnvironmentVariable("TEST_CSM_ORGID_AUTHENTICATION"));
var mode = connectionInfo.GetValue<string>(ConnectionStringKeys.HttpRecorderModeKey);
if (mode == HttpRecorderMode.Playback.ToString())
{
servicePrincipal = HttpMockServer.GetVariable("spn", "fake");
}
else
{
servicePrincipal = connectionInfo.GetValue<string>(ConnectionStringKeys.ServicePrincipalKey);
HttpMockServer.Variables["spn"] = servicePrincipal;
}
}
TestRunner.RunTestScript(string.Format("Test-AzureFirewallPolicyPremiumFeatures -baseDir '{0}' -spn '{1}'", AppDomain.CurrentDomain.BaseDirectory, servicePrincipal));
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
public void TestAzureFirewallPolicyPremiumWithTerminateTLSEnabled()
{
TestRunner.RunTestScript("Test-AzureFirewallPolicyPremiumWithTerminateTLSEnabled");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
public void TestAzureFirewallPolicyPremiumWithTerminateTLSDisabledAndTargetUrls()
{
TestRunner.RunTestScript("Test-AzureFirewallPolicyPremiumWithTerminateTLSDisabledAndTargetUrls");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, NrpTeamAlias.azurefirewall)]
public void TestAzureFirewallPolicyPremiumWithTerminateTLSEnabledAndTargetUrls()
{
TestRunner.RunTestScript("Test-AzureFirewallPolicyPremiumWithTerminateTLSEnabledAndTargetUrls");
}
}
}
431 changes: 430 additions & 1 deletion src/Network/Network.Test/ScenarioTests/AzureFirewallPolicyTests.ps1

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading