Skip to content

Commit 3328b11

Browse files
author
Hovsep
committed
Merge pull request #1398 from hovsepm/clu
[#108471000] Added Websites test project to CLU.
2 parents 0f5fa9e + 0597f7a commit 3328b11

File tree

12 files changed

+169
-264
lines changed

12 files changed

+169
-264
lines changed

build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@
312312
<Target Name="Test" DependsOnTargets="BeforeRunTests">
313313
<Message Importance="high" Text="Running check in tests..." />
314314
<ItemGroup>
315-
<!--Exclude 2 test projects still in progress with build failures-->
315+
<!--Exclude 1 test projects still in progress with build failures-->
316316
<_CLUTestProjects Include="$(CLURootDir)\*.Test\project.json"
317-
Exclude="$(CLURootDir)\Microsoft.Azure.Commands.Resources.Test\project.json;$(CLURootDir)\Microsoft.Azure.Commands.Websites.Test\project.json">
317+
Exclude="$(CLURootDir)\Microsoft.Azure.Commands.Resources.Test\project.json">
318318
</_CLUTestProjects>
319319
</ItemGroup>
320320
<Exec Command="dnu build" WorkingDirectory="%(_CLUTestProjects.RootDir)%(_CLUTestProjects.Directory)" />

src/CLU.sln

Lines changed: 0 additions & 172 deletions
This file was deleted.

src/CLU/CLUCoreCLR.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.23107.0
4+
VisualStudioVersion = 14.0.24711.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Commands.Common", "Commands.Common\Commands.Common.xproj", "{5F567ACA-595E-436D-83DB-A21E08F82DF6}"
77
EndProject
@@ -25,6 +25,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Commands.Common.Storage", "
2525
EndProject
2626
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.Commands.Management.Storage", "Microsoft.Azure.Commands.Management.Storage\Microsoft.Azure.Commands.Management.Storage.xproj", "{3910613E-4ED2-49E2-8CCF-966D586665AC}"
2727
EndProject
28+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Azure.Commands.Websites.Test", "Microsoft.Azure.Commands.Websites.Test\Microsoft.Azure.Commands.Websites.Test.xproj", "{F4D46F77-36D6-4BDB-95D0-85B1FAD1E160}"
29+
EndProject
2830
Global
2931
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3032
Debug|Any CPU = Debug|Any CPU
@@ -75,6 +77,10 @@ Global
7577
{3910613E-4ED2-49E2-8CCF-966D586665AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
7678
{3910613E-4ED2-49E2-8CCF-966D586665AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
7779
{3910613E-4ED2-49E2-8CCF-966D586665AC}.Release|Any CPU.Build.0 = Release|Any CPU
80+
{F4D46F77-36D6-4BDB-95D0-85B1FAD1E160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
81+
{F4D46F77-36D6-4BDB-95D0-85B1FAD1E160}.Debug|Any CPU.Build.0 = Debug|Any CPU
82+
{F4D46F77-36D6-4BDB-95D0-85B1FAD1E160}.Release|Any CPU.ActiveCfg = Release|Any CPU
83+
{F4D46F77-36D6-4BDB-95D0-85B1FAD1E160}.Release|Any CPU.Build.0 = Release|Any CPU
7884
EndGlobalSection
7985
GlobalSection(SolutionProperties) = preSolution
8086
HideSolutionNode = FALSE
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"profiles": {}
3+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0.24711" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.24711</VisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
8+
<PropertyGroup Label="Globals">
9+
<ProjectGuid>f4d46f77-36d6-4bdb-95d0-85b1fad1e160</ProjectGuid>
10+
<RootNamespace>Microsoft.Azure.Commands.Websites.Test</RootNamespace>
11+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
12+
<OutputPath Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
13+
</PropertyGroup>
14+
<PropertyGroup>
15+
<SchemaVersion>2.0</SchemaVersion>
16+
</PropertyGroup>
17+
<ItemGroup>
18+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
19+
</ItemGroup>
20+
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
21+
</Project>

src/CLU/Microsoft.Azure.Commands.Websites.Test/NewAzureWebsitesCommandTests.cs

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

15+
using Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps;
16+
using Microsoft.Azure.Commands.WebApps.Utilities;
17+
using Moq;
1518
using System.Collections;
1619
using System.Collections.Generic;
1720
using System.Management.Automation;
18-
using Microsoft.Azure.Commands.WebApps.Utilities;
19-
using Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps;
20-
using Moq;
21-
2221

2322
namespace Microsoft.Azure.Commands.Websites.Test
2423
{
@@ -53,9 +52,10 @@ public NewAzureWebAppCommandTests()
5352
commandRuntimeMock = new Mock<ICommandRuntime>();
5453
cmdlet = new NewAzureWebAppCmdlet()
5554
{
56-
CommandRuntime = commandRuntimeMock.Object,
55+
//CommandRuntime = commandRuntimeMock.Object,
5756
WebsitesClient = websitesClientMock.Object
5857
};
58+
System.Reflection.TypeExtensions.GetProperty(cmdlet.GetType(), "CommandRuntime").SetValue(cmdlet, commandRuntimeMock.Object);
5959
}
6060

6161
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"profiles": {}
3+
}

0 commit comments

Comments
 (0)