Skip to content

Commit 0d6ecc0

Browse files
authored
Merge pull request Azure#8830 from rileymckenna/preview
Preview Az.Peering
2 parents 44f07ae + 1f13f79 commit 0d6ecc0

File tree

137 files changed

+20957
-3
lines changed

Some content is hidden

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

137 files changed

+20957
-3
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PsModuleName>Peering</PsModuleName>
5+
</PropertyGroup>
6+
7+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.Test.props" />
8+
9+
<PropertyGroup>
10+
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<PackageReference Include="Microsoft.Azure.Management.Peering" Version="0.9.0-preview" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
18+
<ProjectReference Include="..\Peering\Peering.csproj" />
19+
</ItemGroup>
20+
21+
</Project>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 System.Reflection;
16+
using System.Runtime.InteropServices;
17+
using Xunit;
18+
19+
// General Information about an assembly is controlled through the following
20+
// set of attributes. Change these attribute values to modify the information
21+
// associated with an assembly.
22+
[assembly: AssemblyTitle("Microsoft.Azure.Commands.Peering.Test")]
23+
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
24+
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
25+
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
26+
27+
// Setting ComVisible to false makes the types in this assembly not visible
28+
// to COM components. If you need to access a type in this assembly from
29+
// COM, set the ComVisible attribute to true on that type.
30+
[assembly: ComVisible(false)]
31+
32+
// The following GUID is for the ID of the typelib if this project is exposed to COM
33+
[assembly: Guid("2E2C5449-6A82-4462-9BF6-D2F9576CB65E")]
34+
35+
// Version information for an assembly consists of the following four values:
36+
//
37+
// Major Version
38+
// Minor Version
39+
// Build Number
40+
// Revision
41+
//
42+
// You can specify all the values or you can default the Build and Revision Numbers
43+
// by using the '*' as shown below:
44+
[assembly: AssemblyVersion("1.0.0")]
45+
[assembly: AssemblyFileVersion("1.0.0")]
46+
[assembly: CollectionBehavior(DisableTestParallelization = true)]
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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+
namespace Microsoft.Azure.Commands.Peering.Test.ScenarioTests
16+
{
17+
using Microsoft.Azure.ServiceManagement.Common.Models;
18+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
19+
20+
using Xunit;
21+
using Xunit.Abstractions;
22+
23+
/// <summary>
24+
/// The create new direct connection tests.
25+
/// </summary>
26+
public class CreateNewDirectConnectionTests
27+
{
28+
/// <summary>
29+
/// The logger.
30+
/// </summary>
31+
private XunitTracingInterceptor logger;
32+
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="CreateNewDirectConnectionTests"/> class.
35+
/// </summary>
36+
/// <param name="output">
37+
/// The output.
38+
/// </param>
39+
public CreateNewDirectConnectionTests(ITestOutputHelper output)
40+
{
41+
this.logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output);
42+
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(this.logger);
43+
}
44+
45+
/// <summary>
46+
/// The test new direct connection high bandwidth.
47+
/// </summary>
48+
[Fact]
49+
[Trait(Category.AcceptanceType, Category.CheckIn)]
50+
public void TestNewDirectConnectionHighBandwidth()
51+
{
52+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionHighBandwidth");
53+
}
54+
55+
/// <summary>
56+
/// The test new direct connection low bandwidth.
57+
/// </summary>
58+
[Fact]
59+
[Trait(Category.AcceptanceType, Category.CheckIn)]
60+
public void TestNewDirectConnectionLowBandwidth()
61+
{
62+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionLowBandwidth");
63+
}
64+
65+
/// <summary>
66+
/// The test new direct connection no session.
67+
/// </summary>
68+
[Fact]
69+
[Trait(Category.AcceptanceType, Category.CheckIn)]
70+
public void TestNewDirectConnectionNoSession()
71+
{
72+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionNoSession");
73+
}
74+
75+
/// <summary>
76+
/// The test new direct connection with v 4.
77+
/// </summary>
78+
[Fact]
79+
[Trait(Category.AcceptanceType, Category.CheckIn)]
80+
public void TestNewDirectConnectionWithV4()
81+
{
82+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionWithV4");
83+
}
84+
85+
/// <summary>
86+
/// The test new direct connection with v 4 v 6.
87+
/// </summary>
88+
[Fact]
89+
[Trait(Category.AcceptanceType, Category.CheckIn)]
90+
public void TestNewDirectConnectionWithV4V6()
91+
{
92+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionWithV4V6");
93+
}
94+
95+
/// <summary>
96+
/// The test new direct connection with v 6.
97+
/// </summary>
98+
[Fact]
99+
[Trait(Category.AcceptanceType, Category.CheckIn)]
100+
public void TestNewDirectConnectionWithV6()
101+
{
102+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionWithV6");
103+
}
104+
105+
/// <summary>
106+
/// The test new direct connection wrong v 4.
107+
/// </summary>
108+
[Fact]
109+
[Trait(Category.AcceptanceType, Category.CheckIn)]
110+
public void TestNewDirectConnectionWrongV4()
111+
{
112+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionWrongV4");
113+
}
114+
115+
/// <summary>
116+
/// The test new direct connection wrong v 6.
117+
/// </summary>
118+
[Fact]
119+
[Trait(Category.AcceptanceType, Category.CheckIn)]
120+
public void TestNewDirectConnectionWrongV6()
121+
{
122+
TestController.NewInstance.RunPowerShellTest(this.logger, "Test-NewDirectConnectionWrongV6");
123+
}
124+
}
125+
}

0 commit comments

Comments
 (0)