Skip to content

Commit a3a922f

Browse files
committed
Address test project issues in profile project
1 parent ee2e62d commit a3a922f

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

src/ResourceManager/Profile/Commands.Profile.Test/LongRunningCmdletTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
using Microsoft.Azure.Commands.Common;
1616
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
17-
using Microsoft.Azure.Commands.ResourceManager.Common;
18-
using Microsoft.Azure.Management.Internal.Resources.Utilities;
1917
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2018
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2119
using Microsoft.WindowsAzure.Commands.Utilities.Common;
@@ -43,7 +41,7 @@ public void CanReceiveAllStreams()
4341
var cmdlet = SetupCmdlet(false, false, out mockRuntime);
4442
var job = cmdlet.ExecuteAsJob("Test Job") as AzureLongRunningJob<AzureStreamTestCmdlet>;
4543
int times = 0;
46-
while (times++ < 4 && job.StatusMessage != "Completed")
44+
while (times++ < 20 && job.StatusMessage != "Completed")
4745
{
4846
Thread.Sleep(TimeSpan.FromSeconds(1));
4947
}
@@ -59,7 +57,7 @@ public void CanSupportShouldProcess()
5957
var cmdlet = SetupCmdlet(true, false, out mockRuntime);
6058
var job = cmdlet.ExecuteAsJob("Test Job") as AzureLongRunningJob<AzureStreamTestCmdlet>;
6159
int times = 0;
62-
while (times++ < 4 && job.StatusMessage != "Completed")
60+
while (times++ < 20 && job.StatusMessage != "Completed")
6361
{
6462
Thread.Sleep(TimeSpan.FromSeconds(1));
6563
}
@@ -75,7 +73,7 @@ public void CanSupportShouldContinue()
7573
var cmdlet = SetupCmdlet(true, true, out mockRuntime);
7674
var job = cmdlet.ExecuteAsJob("Test Job") as AzureLongRunningJob<AzureStreamTestCmdlet>;
7775
int times = 0;
78-
while (times++ < 4 && job.StatusMessage != "Completed")
76+
while (times++ < 20 && job.StatusMessage != "Completed")
7977
{
8078
Thread.Sleep(TimeSpan.FromSeconds(1));
8179
if (job.StatusMessage == "Blocked")
@@ -97,7 +95,7 @@ public void CanHandleCmdletException()
9795
cmdlet.Fail = true;
9896
var job = cmdlet.ExecuteAsJob("Test Job") as AzureLongRunningJob<AzureStreamTestCmdlet>;
9997
int times = 0;
100-
while (times++ < 4 && job.StatusMessage != "Completed" && job.StatusMessage != "Failed")
98+
while (times++ < 20 && job.StatusMessage != "Completed" && job.StatusMessage != "Failed")
10199
{
102100
Thread.Sleep(TimeSpan.FromSeconds(1));
103101
}

src/ResourceManager/Profile/Profile.sln

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Network", "
3434
EndProject
3535
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Storage", "..\..\Common\Commands.Common.Storage\Commands.Common.Storage.csproj", "{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}"
3636
EndProject
37+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources", "..\Resources\Commands.Resources\Commands.Resources.csproj", "{E1F5201D-6067-430E-B303-4E367652991B}"
38+
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
40+
EndProject
41+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights", "..\Insights\Commands.Insights\Commands.Insights.csproj", "{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}"
42+
EndProject
3743
Global
3844
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3945
Debug|Any CPU = Debug|Any CPU
@@ -100,6 +106,18 @@ Global
100106
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Debug|Any CPU.Build.0 = Debug|Any CPU
101107
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.ActiveCfg = Release|Any CPU
102108
{65C3A86A-716D-4E7D-AB67-1DB00B3BF72D}.Release|Any CPU.Build.0 = Release|Any CPU
109+
{E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
110+
{E1F5201D-6067-430E-B303-4E367652991B}.Debug|Any CPU.Build.0 = Debug|Any CPU
111+
{E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.ActiveCfg = Release|Any CPU
112+
{E1F5201D-6067-430E-B303-4E367652991B}.Release|Any CPU.Build.0 = Release|Any CPU
113+
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
114+
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
115+
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
116+
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
117+
{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
118+
{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Debug|Any CPU.Build.0 = Debug|Any CPU
119+
{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.ActiveCfg = Release|Any CPU
120+
{DEA446A1-84E2-46CC-B780-EB4AFDE2460E}.Release|Any CPU.Build.0 = Release|Any CPU
103121
EndGlobalSection
104122
GlobalSection(SolutionProperties) = preSolution
105123
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)