Skip to content

Commit 13ea47a

Browse files
authored
Merge pull request Azure#7170 from fanymanea/AzureFirewallOnAugustVersion
Azure Firewall merged into network-september-release
2 parents 5db54d5 + 9e07077 commit 13ea47a

File tree

41 files changed

+17562
-5
lines changed

Some content is hidden

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

41 files changed

+17562
-5
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<Compile Include="Properties\AssemblyInfo.cs" />
6868
<Compile Include="NetworkResourcesController.cs" />
6969
<Compile Include="ScenarioTests\ApplicationGatewayTests.cs" />
70+
<Compile Include="ScenarioTests\AzureFirewallTests.cs" />
7071
<Compile Include="ScenarioTests\DdosProtectionPlanTests.cs" />
7172
<Compile Include="ScenarioTests\ApplicationSecurityGroupTests.cs" />
7273
<Compile Include="ScenarioTests\AvailableEndpointServicesTests.cs" />
@@ -110,6 +111,9 @@
110111
<None Include="ScenarioTests\AvailableEndpointServicesTests.ps1">
111112
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
112113
</None>
114+
<None Include="ScenarioTests\AzureFirewallTests.ps1">
115+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
116+
</None>
113117
<None Include="ScenarioTests\Data\ApplicationGatewayAuthCert.cer">
114118
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
115119
</None>
@@ -233,6 +237,12 @@
233237
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AvailableEndpointServicesTests\TestAvailableEndpointServicesList.json">
234238
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
235239
</None>
240+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AzureFirewallTests\TestAzureFirewallAllocateAndDeallocate.json">
241+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
242+
</None>
243+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AzureFirewallTests\TestAzureFirewallCRUD.json">
244+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
245+
</None>
236246
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.DdosProtectionPlanTests\TestDdosProtectionPlanCollections.json">
237247
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
238248
</None>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.ServiceManagemenet.Common.Models;
16+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
17+
using Xunit;
18+
using Xunit.Abstractions;
19+
20+
namespace Commands.Network.Test.ScenarioTests
21+
{
22+
public class AzureFirewallTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
23+
{
24+
public XunitTracingInterceptor _logger;
25+
26+
public AzureFirewallTests(ITestOutputHelper output)
27+
{
28+
_logger = new XunitTracingInterceptor(output);
29+
XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
30+
}
31+
32+
[Fact]
33+
[Trait(Category.AcceptanceType, Category.CheckIn)]
34+
[Trait(Category.Owner, "azurefirewall")]
35+
public void TestAzureFirewallCRUD()
36+
{
37+
NetworkResourcesController.NewInstance.RunPsTest(_logger, "Test-AzureFirewallCRUD");
38+
}
39+
40+
[Fact]
41+
[Trait(Category.AcceptanceType, Category.CheckIn)]
42+
[Trait(Category.Owner, "azurefirewall")]
43+
public void TestAzureFirewallAllocateAndDeallocate()
44+
{
45+
NetworkResourcesController.NewInstance.RunPsTest(_logger, "Test-AzureFirewallAllocateAndDeallocate");
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)