Skip to content

Commit cde5c02

Browse files
authored
Merge branch 'network-september-release' into network-september-release
2 parents 6bd4be1 + ee49b80 commit cde5c02

File tree

42 files changed

+17569
-14
lines changed

Some content is hidden

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

42 files changed

+17569
-14
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" />
@@ -111,6 +112,9 @@
111112
<None Include="ScenarioTests\AvailableEndpointServicesTests.ps1">
112113
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
113114
</None>
115+
<None Include="ScenarioTests\AzureFirewallTests.ps1">
116+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
117+
</None>
114118
<None Include="ScenarioTests\Data\ApplicationGatewayAuthCert.cer">
115119
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
116120
</None>
@@ -237,6 +241,12 @@
237241
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AvailableEndpointServicesTests\TestAvailableEndpointServicesList.json">
238242
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
239243
</None>
244+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AzureFirewallTests\TestAzureFirewallAllocateAndDeallocate.json">
245+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
246+
</None>
247+
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.AzureFirewallTests\TestAzureFirewallCRUD.json">
248+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
249+
</None>
240250
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.DdosProtectionPlanTests\TestDdosProtectionPlanCollections.json">
241251
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
242252
</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)