Skip to content

Commit 5f2924a

Browse files
author
Hovsep
committed
Merge pull request Azure#1024 from hovsepm/dev
Fixed live tests in profile test suite.
2 parents a59a8b3 + 5cb982a commit 5f2924a

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public class Category
7171
// Run Type
7272
public const string RunType = "RunType";
7373
public const string LiveOnly = "LiveOnly";
74-
public const string Manual = "Manual";
7574
//Uncomment when we need to tag on only run under mock
7675
//public const string MockedOnly = "MockedOnly";
7776

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public LoginCmdletTests()
4242
}
4343

4444
[Fact]
45-
[Trait(Category.AcceptanceType, Category.Manual)]
45+
[Trait(Category.RunType, Category.LiveOnly)]
4646
public void LoginWithSubscriptionAndTenant()
4747
{
4848
var cmdlt = new AddAzureRMAccountCommand();
@@ -61,7 +61,7 @@ public void LoginWithSubscriptionAndTenant()
6161
}
6262

6363
[Fact]
64-
[Trait(Category.AcceptanceType, Category.Manual)]
64+
[Trait(Category.RunType, Category.LiveOnly)]
6565
public void LoginWithInvalidSubscriptionAndTenantThrowsCloudException()
6666
{
6767
var cmdlt = new AddAzureRMAccountCommand();
@@ -77,7 +77,7 @@ public void LoginWithInvalidSubscriptionAndTenantThrowsCloudException()
7777
}
7878

7979
[Fact]
80-
[Trait(Category.AcceptanceType, Category.Manual)]
80+
[Trait(Category.RunType, Category.LiveOnly)]
8181
public void LoginWithSubscriptionAndNoTenant()
8282
{
8383
var cmdlt = new AddAzureRMAccountCommand();
@@ -93,9 +93,9 @@ public void LoginWithSubscriptionAndNoTenant()
9393
Assert.NotNull(AzureRMCmdlet.DefaultProfile.Context);
9494
Assert.Equal("microsoft.com", AzureRMCmdlet.DefaultProfile.Context.Tenant.Domain);
9595
}
96-
96+
9797
[Fact]
98-
[Trait(Category.AcceptanceType, Category.Manual)]
98+
[Trait(Category.RunType, Category.LiveOnly)]
9999
public void LoginWithNoSubscriptionAndNoTenant()
100100
{
101101
var cmdlt = new AddAzureRMAccountCommand();
@@ -112,7 +112,7 @@ public void LoginWithNoSubscriptionAndNoTenant()
112112
}
113113

114114
[Fact]
115-
[Trait(Category.AcceptanceType, Category.Manual)]
115+
[Trait(Category.RunType, Category.LiveOnly)]
116116
public void LoginWithNoSubscriptionAndTenant()
117117
{
118118
var cmdlt = new AddAzureRMAccountCommand();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public TenantCmdletTests()
4242
}
4343

4444
[Fact]
45-
[Trait(Category.AcceptanceType, Category.Manual)]
45+
[Trait(Category.RunType, Category.LiveOnly)]
4646
public void GetTenantWithTenantParameter()
4747
{
4848
var cmdlt = new GetAzureRMTenantCommand();
@@ -62,7 +62,7 @@ public void GetTenantWithTenantParameter()
6262
}
6363

6464
[Fact]
65-
[Trait(Category.AcceptanceType, Category.Manual)]
65+
[Trait(Category.RunType, Category.LiveOnly)]
6666
public void GetTenantWithDomainParameter()
6767
{
6868
var cmdlt = new GetAzureRMTenantCommand();
@@ -82,7 +82,7 @@ public void GetTenantWithDomainParameter()
8282
}
8383

8484
[Fact]
85-
[Trait(Category.AcceptanceType, Category.Manual)]
85+
[Trait(Category.RunType, Category.LiveOnly)]
8686
public void GetTenantWithoutParameters()
8787
{
8888
var cmdlt = new GetAzureRMTenantCommand();

0 commit comments

Comments
 (0)