Skip to content

Commit e036729

Browse files
author
Hovsep Mkrtchyan
committed
Added Resources test project to CLU
1 parent 7ac43c3 commit e036729

File tree

168 files changed

+68302
-176
lines changed

Some content is hidden

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

168 files changed

+68302
-176
lines changed

src/CLU/CLUCoreCLR.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Commands.ScenarioTests.Reso
1919
EndProject
2020
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.Commands.Resources", "Microsoft.Azure.Commands.Resources\Microsoft.Azure.Commands.Resources.xproj", "{99B1290D-A073-4907-8018-51C714431778}"
2121
EndProject
22+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.Commands.Resources.Test", "Microsoft.Azure.Commands.Resources.Test\Microsoft.Azure.Commands.Resources.Test.xproj", "{A9CC2879-D45D-4DCB-A405-6EEDB749B15F}"
23+
EndProject
2224
Global
2325
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2426
Debug|Any CPU = Debug|Any CPU
@@ -57,6 +59,10 @@ Global
5759
{99B1290D-A073-4907-8018-51C714431778}.Debug|Any CPU.Build.0 = Debug|Any CPU
5860
{99B1290D-A073-4907-8018-51C714431778}.Release|Any CPU.ActiveCfg = Release|Any CPU
5961
{99B1290D-A073-4907-8018-51C714431778}.Release|Any CPU.Build.0 = Release|Any CPU
62+
{A9CC2879-D45D-4DCB-A405-6EEDB749B15F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{A9CC2879-D45D-4DCB-A405-6EEDB749B15F}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{A9CC2879-D45D-4DCB-A405-6EEDB749B15F}.Release|Any CPU.ActiveCfg = Release|Any CPU
65+
{A9CC2879-D45D-4DCB-A405-6EEDB749B15F}.Release|Any CPU.Build.0 = Release|Any CPU
6066
EndGlobalSection
6167
GlobalSection(SolutionProperties) = preSolution
6268
HideSolutionNode = FALSE

src/CLU/Commands.Common.Authentication/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"frameworks": {
99
"dnxcore50": {
1010
"dependencies": {
11-
"Microsoft.CLU": "0.0.1-beta-151119",
12-
"Microsoft.CSharp": "4.0.1-beta-23409",
13-
"System.Linq": "4.0.1-beta-23409"
11+
"Microsoft.NETCore": "5.0.1-beta-23516",
12+
"Microsoft.NETCore.Platforms": "1.0.1-beta-23516",
13+
"Microsoft.CSharp": "4.0.1-beta-23516"
1414
}
1515
}
1616
},
@@ -42,7 +42,9 @@
4242
"System.Text.Encoding.Extensions": "4.0.11-beta-23516",
4343
"System.Threading": "4.0.11-beta-23409",
4444
"System.Threading.Tasks": "4.0.11-beta-23516",
45-
"System.Threading.Thread": "4.0.0-beta-23516"
45+
"System.Threading.Thread": "4.0.0-beta-23516",
46+
"Microsoft.CLU": "1.0.0",
47+
"System.Linq": "4.0.1-beta-23409"
4648
}
4749
}
4850

src/CLU/Commands.Common/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"frameworks": {
99
"dnxcore50": {
1010
"dependencies": {
11-
"Microsoft.CLU": "0.0.1-beta-151119",
12-
"Microsoft.CSharp": "4.0.1-beta-23409",
13-
"System.Linq": "4.0.1-beta-23409"
11+
"Microsoft.NETCore": "5.0.1-beta-23516",
12+
"Microsoft.NETCore.Platforms": "1.0.1-beta-23516",
13+
"Microsoft.CSharp": "4.0.1-beta-23516"
1414
}
1515
}
1616
},
@@ -41,6 +41,8 @@
4141
"System.Text.Encoding.Extensions": "4.0.11-beta-23516",
4242
"System.Threading": "4.0.11-beta-23409",
4343
"System.Threading.Tasks": "4.0.11-beta-23516",
44-
"System.Threading.Thread": "4.0.0-beta-23516"
44+
"System.Threading.Thread": "4.0.0-beta-23516",
45+
"Microsoft.CLU": "1.0.0",
46+
"System.Linq": "4.0.1-beta-23409"
4547
}
4648
}

src/CLU/Commands.ResourceManager.Cmdlets/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"frameworks": {
99
"dnxcore50": {
1010
"dependencies": {
11-
"Microsoft.CLU": "0.0.1-beta-151119",
12-
"Microsoft.CSharp": "4.0.1-beta-23409",
13-
"System.Linq": "4.0.1-beta-23409"
11+
"Microsoft.NETCore": "5.0.1-beta-23516",
12+
"Microsoft.NETCore.Platforms": "1.0.1-beta-23516",
13+
"Microsoft.CSharp": "4.0.1-beta-23516"
1414
}
1515
}
1616
},
@@ -45,6 +45,8 @@
4545
"System.Threading.Tasks": "4.0.11-beta-23516",
4646
"System.Threading.Thread": "4.0.0-beta-23516",
4747
"Microsoft.Azure.Management.Resources": "3.1.1-preview",
48-
"Microsoft.Extensions.Caching.Memory": "1.0.0-rc1-final"
48+
"Microsoft.Extensions.Caching.Memory": "1.0.0-rc1-final",
49+
"Microsoft.CLU": "1.0.0",
50+
"System.Linq": "4.0.1-beta-23409"
4951
}
5052
}

src/CLU/Commands.ResourceManager.Common/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"frameworks": {
99
"dnxcore50": {
1010
"dependencies": {
11-
"Microsoft.CLU": "0.0.1-beta-151119",
12-
"Microsoft.CSharp": "4.0.1-beta-23409",
13-
"System.Linq": "4.0.1-beta-23409"
11+
"Microsoft.NETCore": "5.0.1-beta-23516",
12+
"Microsoft.NETCore.Platforms": "1.0.1-beta-23516",
13+
"Microsoft.CSharp": "4.0.1-beta-23516"
1414
}
1515
}
1616
},
@@ -42,6 +42,8 @@
4242
"System.Text.Encoding.Extensions": "4.0.11-beta-23516",
4343
"System.Threading": "4.0.11-beta-23409",
4444
"System.Threading.Tasks": "4.0.11-beta-23516",
45-
"System.Threading.Thread": "4.0.0-beta-23516"
45+
"System.Threading.Thread": "4.0.0-beta-23516",
46+
"Microsoft.CLU": "1.0.0",
47+
"System.Linq": "4.0.1-beta-23409"
4648
}
4749
}

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
// ----------------------------------------------------------------------------------
1515

16-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
16+
namespace Microsoft.Azure.Commands.ScenarioTest
1717
{
1818
public class Category
1919
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,20 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Common.Authentication;
16-
using Microsoft.Azure.Common.Authentication.Models;
17-
using Microsoft.Azure.Test;
15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
17+
using Microsoft.Azure.Commands.Utilities.Common;
1818
using Microsoft.Azure.Test.HttpRecorder;
19-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
19+
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
2020
using System;
2121
using System.Collections.Generic;
2222
using System.Collections.ObjectModel;
2323
using System.Diagnostics;
2424
using System.IO;
2525
using System.Linq;
2626
using System.Management.Automation;
27-
using System.Management.Automation.Runspaces;
28-
using System.Reflection;
29-
using Microsoft.Azure.Commands.Models;
30-
using Microsoft.Azure.Commands.Utilities.Common;
31-
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
32-
using Microsoft.WindowsAzure.Commands.Common;
3327

34-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
28+
namespace Microsoft.Azure.Commands.ScenarioTest
3529
{
3630
public class EnvironmentSetupHelper
3731
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockAccessToken.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.Azure.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication;
1717

18-
namespace Microsoft.WindowsAzure.Commands.Common.Test.Mocks
18+
namespace Microsoft.Azure.Commands.Common.Test.Mocks
1919
{
2020
public class MockAccessToken : IAccessToken
2121
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockAccessTokenProvider.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Security;
16-
using Microsoft.Azure.Common.Authentication.Models;
17-
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
18-
using Microsoft.Azure.Common.Authentication;
15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
17+
using Microsoft.Azure.Commands.Common.Test.Mocks;
1918

20-
namespace Microsoft.WindowsAzure.Commands.Test.Utilities.Common
19+
namespace Microsoft.Azure.Commands.Test.Utilities.Common
2120
{
2221
public class MockAccessTokenProvider : ITokenProvider
2322
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCertificateAuthenticationFactory.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure;
16-
using Microsoft.Azure.Common.Authentication;
17-
using Microsoft.Azure.Common.Authentication.Models;
18-
using System.Security;
19-
using System.Security.Cryptography.X509Certificates;
15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
2017
using Microsoft.IdentityModel.Clients.ActiveDirectory;
18+
using System.Security.Cryptography.X509Certificates;
2119

22-
namespace Microsoft.WindowsAzure.Commands.Common.Test.Mocks
20+
namespace Microsoft.Azure.Commands.Common.Test.Mocks
2321
{
2422
public class MockCertificateAuthenticationFactory : IAuthenticationFactory
2523
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockClientFactory.cs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,23 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Factories;
17+
using Microsoft.Azure.Commands.Common.Authentication.Models;
18+
using Microsoft.Azure.Test.HttpRecorder;
19+
using Microsoft.Rest;
1520
using System;
1621
using System.Collections.Generic;
1722
using System.Diagnostics;
1823
using System.Linq;
1924
using System.Net;
2025
using System.Net.Http;
2126
using System.Net.Http.Headers;
27+
using System.Reflection;
2228
using System.Threading;
2329
using System.Threading.Tasks;
24-
using Microsoft.Azure.Test.HttpRecorder;
25-
using Microsoft.Azure.Common;
26-
using Microsoft.Azure.Common.Authentication.Factories;
27-
using Microsoft.Azure.Common.Authentication.Models;
28-
using Microsoft.Azure.Common.Authentication;
29-
using Microsoft.Azure;
30-
using System.IO;
31-
using System.Reflection;
32-
using Microsoft.Rest;
3330

34-
namespace Microsoft.WindowsAzure.Commands.Common.Test.Mocks
31+
namespace Microsoft.Azure.Commands.Common.Test.Mocks
3532
{
3633
public class MockClientFactory : IClientFactory
3734
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockCommandRuntime.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
using System.Collections;
1717
using System.Collections.Generic;
1818
using System.Diagnostics.CodeAnalysis;
19-
using System.Globalization;
2019
using System.Management.Automation;
21-
using System.Management.Automation.Host;
2220

23-
namespace Microsoft.WindowsAzure.Commands.Common.Test.Mocks
21+
namespace Microsoft.Azure.Commands.Common.Test.Mocks
2422
{
2523
public class MockCommandRuntime : ICommandRuntime
2624
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/Mocks/MockTokenAuthenticationFactory.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure;
16-
using Microsoft.Azure.Common.Authentication;
17-
using Microsoft.Azure.Common.Authentication.Models;
15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
17+
using Microsoft.IdentityModel.Clients.ActiveDirectory;
1818
using Microsoft.Rest;
1919
using System;
20-
using System.Security;
21-
using Microsoft.IdentityModel.Clients.ActiveDirectory;
2220

23-
namespace Microsoft.WindowsAzure.Commands.Common.Test.Mocks
21+
namespace Microsoft.Azure.Commands.Common.Test.Mocks
2422
{
2523
public class MockTokenAuthenticationFactory : IAuthenticationFactory
2624
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/PSCmdletExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using System.Management.Automation;
1818
using System.Reflection;
1919

20-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
20+
namespace Microsoft.Azure.Commands.ScenarioTest
2121
{
2222
public static class PSCmdletExtensions
2323
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/PermissiveRecordMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using Microsoft.Azure.Test.HttpRecorder;
1818
using Xunit;
1919

20-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
20+
namespace Microsoft.Azure.Commands.ScenarioTest
2121
{
2222
public class PermissiveRecordMatcher : IRecordMatcher
2323
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/PermissiveRecordMatcherWithApiExclusion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System.Text.RegularExpressions;
1919
using Microsoft.Azure.Test.HttpRecorder;
2020

21-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
21+
namespace Microsoft.Azure.Commands.ScenarioTest
2222
{
2323
// Excludes api version when matching mocked records.
2424
// If alternate api version is provided, uses that to match records else removes the api-version matching.

src/CLU/Commands.ScenarioTests.ResourceManager.Common/PowerShellExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
using System.Management.Automation;
1919
using System.Management.Automation.Runspaces;
2020

21-
namespace Microsoft.WindowsAzure.Commands.ScenarioTest
21+
namespace Microsoft.Azure.Commands.ScenarioTest
2222
{
2323
public static class PowerShellExtensions
2424
{

src/CLU/Commands.ScenarioTests.ResourceManager.Common/RMTestBase.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.Common.Authentication;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
17+
using Microsoft.Azure.Commands.Utilities.Common;
1518
using System;
1619
using System.Collections.Generic;
17-
using Microsoft.Azure.Common.Authentication.Models;
18-
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
19-
using Microsoft.Azure.Common.Authentication;
20-
using Microsoft.Azure.Commands.ResourceManager.Common;
21-
using Microsoft.WindowsAzure.Commands.Common;
22-
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2320
using System.Threading;
24-
using Microsoft.Azure.Commands.Utilities.Common;
2521

26-
namespace Microsoft.WindowsAzure.Commands.Test.Utilities.Common
22+
namespace Microsoft.Azure.Commands.Test.Utilities.Common
2723
{
2824
/// <summary>
2925
/// Base class for Microsoft Azure PowerShell unit tests.

src/CLU/Commands.ScenarioTests.ResourceManager.Common/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"frameworks": {
99
"dnxcore50": {
1010
"dependencies": {
11-
"Microsoft.CLU": "0.0.1-beta-151119",
12-
"Microsoft.CSharp": "4.0.1-beta-23409",
13-
"System.Linq": "4.0.1-beta-23409"
11+
"Microsoft.NETCore": "5.0.1-beta-23516",
12+
"Microsoft.NETCore.Platforms": "1.0.1-beta-23516",
13+
"Microsoft.CSharp": "4.0.1-beta-23516"
1414
}
1515
}
1616
},
@@ -54,6 +54,8 @@
5454
"xunit.runner.dnx": "2.1.0-rc1-build204",
5555
"xunit": "2.2.0-beta1-build3217",
5656
"Microsoft.Azure.Test.HttpRecorder": "2.0.0",
57-
"Microsoft.Rest.ClientRuntime.Azure.TestFramework": "1.0.0"
57+
"Microsoft.Rest.ClientRuntime.Azure.TestFramework": "1.0.0",
58+
"Microsoft.CLU": "1.0.0",
59+
"System.Linq": "4.0.1-beta-23409"
5860
}
5961
}

src/CLU/Microsoft.Azure.Commands.Profile.Test/ClientFactoryTests.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System.Collections.Generic;
16-
using Xunit;
15+
using Microsoft.Azure.Commands.Common.Authentication.Factories;
16+
using Microsoft.Azure.Commands.Common.Authentication.Models;
17+
using Microsoft.Azure.Commands.Common.Test.Mocks;
18+
using Microsoft.Azure.Commands.ScenarioTest;
1719
using System;
20+
using System.Collections.Generic;
1821
using System.Net.Http.Headers;
19-
using Microsoft.Azure;
20-
using Microsoft.Azure.Common.Authentication.Factories;
21-
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
22-
using Microsoft.Azure.Common.Authentication;
23-
using Microsoft.Azure.Common.Authentication.Models;
24-
using Microsoft.Rest.TransientFaultHandling;
25-
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
26-
using Microsoft.WindowsAzure.Commands.ScenarioTest;
22+
using Xunit;
2723

2824
namespace Microsoft.Azure.Commands.ResourceManager.Profile.Test
2925
{

0 commit comments

Comments
 (0)