File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public void ExecuteRunnerTests()
15
15
var mode = Environment . GetEnvironmentVariable ( "AZURE_TEST_MODE" ) ;
16
16
var csmAuth = Environment . GetEnvironmentVariable ( "TEST_CSM_ORGID_AUTHENTICATION" ) ;
17
17
18
- if ( mode . ToLower ( ) != "record" )
18
+ if ( mode == null || csmAuth == null || mode . ToLower ( ) != "record" )
19
19
{
20
20
return ;
21
21
}
@@ -33,7 +33,6 @@ public void ExecuteRunnerTests()
33
33
var authenticationContext = new AuthenticationContext ( "https://login.windows.net/" + testEnv . Tenant ) ;
34
34
var credential = new ClientCredential ( testEnv . ClientId , envDictionary [ "ApplicationSecret" ] ) ;
35
35
36
-
37
36
var result = authenticationContext . AcquireToken ( "https://management.core.windows.net/" , clientCredential : credential ) ;
38
37
Assert . NotNull ( result . AccessToken ) ;
39
38
envDictionary [ "RawToken" ] = result . AccessToken ;
Original file line number Diff line number Diff line change 2
2
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ComputeCloudExceptionTests;RunComputeCloudExceptionTests
3
3
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests;TestLinuxVirtualMachine
4
4
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests;TestVirtualMachineProfile
5
+ Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VMDynamicTests;RunVMDynamicTests
You can’t perform that action at this time.
0 commit comments