Skip to content

[Do Not Merge Yet]: Netcore compute #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
72 changes: 57 additions & 15 deletions src/Azure.PowerShell.Netcore.Test.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
VisualStudioVersion = 15.0.27004.2002
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Profile.Test.Netcore", "ResourceManager\Profile\Commands.Profile.Test\Commands.Profile.Test.Netcore.csproj", "{87246108-B555-4F5F-B916-A9C6FABB1971}"
EndProject
Expand All @@ -19,9 +19,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.ResourceManager.Netc
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.ResourceManager.Authentication.Netcore", "ResourceManager\Common\Commands.Common.Authentication.ResourceManager\Common.ResourceManager.Authentication.Netcore.csproj", "{BA98145F-89C3-4D6E-9C1B-27DCECD65C73}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Network.Test.Netcore", "ResourceManager\Network\Commands.Network.Test\Commands.Network.Test.Netcore.csproj", "{0F4219ED-4A8E-4E6A-88A0-352D804B912D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Compute.Test.Netcore", "ResourceManager\Compute\Commands.Compute.Test\Commands.Compute.Test.Netcore.csproj", "{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Storage.Netcore", "Common\Commands.Common.Storage\Common.Storage.Netcore.csproj", "{3DC6A9D1-7B07-4C39-9A8D-933809169327}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Network.Netcore", "Common\Commands.Common.Network\Common.Network.Netcore.csproj", "{3F2F6272-780F-479E-9742-79F0DEEA308F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Storage.Netcore", "Common\Commands.Common.Storage\Common.Storage.Netcore.csproj", "{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Strategies.Netcore", "ResourceManager\Common\Commands.Common.Strategies\Common.Strategies.Netcore.csproj", "{C1F773EB-551B-4735-BC6E-800122B2D2FE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Network.Test.Netcore", "ResourceManager\Network\Commands.Network.Test\Commands.Network.Test.Netcore.csproj", "{0F4219ED-4A8E-4E6A-88A0-352D804B912D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Sql.Test.Netcore", "ResourceManager\Sql\Commands.Sql.Test\Commands.Sql.Test.Netcore.csproj", "{F6D1E454-E51D-4F1F-916A-A4A3DED5850A}"
EndProject
Expand Down Expand Up @@ -155,6 +161,54 @@ Global
{BA98145F-89C3-4D6E-9C1B-27DCECD65C73}.Release|x64.Build.0 = Release|Any CPU
{BA98145F-89C3-4D6E-9C1B-27DCECD65C73}.Release|x86.ActiveCfg = Release|Any CPU
{BA98145F-89C3-4D6E-9C1B-27DCECD65C73}.Release|x86.Build.0 = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|x64.ActiveCfg = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|x64.Build.0 = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|x86.ActiveCfg = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Debug|x86.Build.0 = Debug|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|Any CPU.Build.0 = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|x64.ActiveCfg = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|x64.Build.0 = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|x86.ActiveCfg = Release|Any CPU
{F8C2BF4B-DCB5-4C3F-921E-66A23323D34E}.Release|x86.Build.0 = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|x64.ActiveCfg = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|x64.Build.0 = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|x86.ActiveCfg = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Debug|x86.Build.0 = Debug|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|Any CPU.Build.0 = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|x64.ActiveCfg = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|x64.Build.0 = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|x86.ActiveCfg = Release|Any CPU
{3DC6A9D1-7B07-4C39-9A8D-933809169327}.Release|x86.Build.0 = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|x64.ActiveCfg = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|x64.Build.0 = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|x86.ActiveCfg = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Debug|x86.Build.0 = Debug|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|Any CPU.Build.0 = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|x64.ActiveCfg = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|x64.Build.0 = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|x86.ActiveCfg = Release|Any CPU
{3F2F6272-780F-479E-9742-79F0DEEA308F}.Release|x86.Build.0 = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|x64.ActiveCfg = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|x64.Build.0 = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|x86.ActiveCfg = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Debug|x86.Build.0 = Debug|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|Any CPU.Build.0 = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|x64.ActiveCfg = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|x64.Build.0 = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|x86.ActiveCfg = Release|Any CPU
{C1F773EB-551B-4735-BC6E-800122B2D2FE}.Release|x86.Build.0 = Release|Any CPU
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand All @@ -167,18 +221,6 @@ Global
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Release|x64.Build.0 = Release|Any CPU
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Release|x86.ActiveCfg = Release|Any CPU
{0F4219ED-4A8E-4E6A-88A0-352D804B912D}.Release|x86.Build.0 = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|x64.ActiveCfg = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|x64.Build.0 = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|x86.ActiveCfg = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Debug|x86.Build.0 = Debug|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|Any CPU.Build.0 = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|x64.ActiveCfg = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|x64.Build.0 = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|x86.ActiveCfg = Release|Any CPU
{3BDE1B1A-AA9A-45B1-A897-CDB31B6800C8}.Release|x86.Build.0 = Release|Any CPU
{F6D1E454-E51D-4F1F-916A-A4A3DED5850A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F6D1E454-E51D-4F1F-916A-A4A3DED5850A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6D1E454-E51D-4F1F-916A-A4A3DED5850A}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace Microsoft.Azure.Commands.ScenarioTest
{
public static class TestUtilities
{
/// <summary>
/// Get the method name of the calling method
/// </summary>
/// <param name="index">How deep into the strack trace to look - here we want the caller's caller.</param>
/// <returns>The name of the declaring method</returns>
[MethodImpl(MethodImplOptions.NoInlining)]
public static string GetCurrentMethodName(int index = 1)
{
StackTrace st = new StackTrace();
StackFrame sf = st.GetFrame(index);


return sf.GetMethod().Name;
}

/// <summary>
/// Get the typename of the callling class
/// </summary>
/// <param name="index">How deep into the strack trace to look - here we want the caller's caller.</param>
/// <returns>The name of the declaring type</returns>
[MethodImpl(MethodImplOptions.NoInlining)]
public static string GetCallingClass(int index = 1)
{
StackTrace st = new StackTrace();
StackFrame sf = st.GetFrame(index);


return sf.GetMethod().ReflectedType.ToString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,29 @@
</PropertyGroup>

<ItemGroup>
<None Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\Assert.ps1" Link="ScenarioTests\Assert.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\AzureRM.Resources.ps1" Link="AzureRM.Resources.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\AzureRM.Storage.ps1" Link="AzureRM.Storage.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\Common.ps1" Link="ScenarioTests\Common.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.0-alpha" />
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.0-alpha" />
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="18.0.0" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="17.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="4.1.0-preview" />
<PackageReference Include="Moq" Version="4.2.1510.2205" />
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="2.4.1-alpha" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="7.1.0-preview" />
<PackageReference Include="Moq" Version="4.7.145" />
</ItemGroup>

<ItemGroup>
Expand All @@ -36,7 +54,6 @@
<ProjectReference Include="..\..\Common\Commands.Common.Strategies\Common.Strategies.Netcore.csproj" />
<ProjectReference Include="..\..\Common\Commands.ResourceManager.Common\Common.ResourceManager.Netcore.csproj" />
<ProjectReference Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\Common.ResourceManager.ScenarioTests.Netcore.csproj" />
<ProjectReference Include="..\..\..\Common\Commands.Common.Storage\Common.Storage.Netcore.csproj" />
</ItemGroup>

<ItemGroup>
Expand All @@ -54,4 +71,52 @@
</None>
</ItemGroup>

<ItemGroup>
<None Update="ConfigFiles\DiagnosticsExtensionConfig.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithSasToken.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithSasToken.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithStorageType.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithStorageType.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithWrongName.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionConfigWithWrongName.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionPrivateConfig.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionPrivateConfigWithSasToken.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionPrivateConfigWithWrongName.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionPublicConfig.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="ConfigFiles\DiagnosticsExtensionPublicConfigWithStorageType.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Templates\azuredeploy.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Templates\client.rb">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Templates\tstorgnztn-validator.pem">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
Loading