File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/ResourceManager/Profile/Commands.Profile.Test Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ public void LoginWithBothSubscriptionIdAndNameThrowsCloudException()
166
166
cmdlt . InvokeEndProcessing ( ) ;
167
167
}
168
168
169
-
170
169
[ Fact ]
171
170
[ Trait ( Category . RunType , Category . LiveOnly ) ]
172
171
public void LoginWithRbacTenantOnly ( )
Original file line number Diff line number Diff line change @@ -85,17 +85,17 @@ function Test-SetAzureRmContextEndToEnd
85
85
86
86
function Test-SetAzureRmContextWithoutSubscription
87
87
{
88
- $allSubscriptions = Get-AzureRmSubscription - All
89
- $firstSubscription = $allSubscriptions [0 ]
90
- $id = $firstSubscription.SubscriptionId
91
- $tenantId = $firstSubscription.TenantId
88
+ $allSubscriptions = Get-AzureRmSubscription - All
89
+ $firstSubscription = $allSubscriptions [0 ]
90
+ $id = $firstSubscription.SubscriptionId
91
+ $tenantId = $firstSubscription.TenantId
92
92
93
93
Assert-True { $tenantId -ne $null }
94
94
95
95
Set-AzureRmContext - TenantId $tenantId
96
96
$context = Get-AzureRmContext
97
97
98
- Assert-True { $context.Subscription -eq $null }
98
+ Assert-True { $context.Subscription -eq $null }
99
99
Assert-True { $context.Tenant -ne $null }
100
100
Assert-AreEqual $context.Tenant.TenantId $firstSubscription.TenantId
101
101
}
You can’t perform that action at this time.
0 commit comments