Skip to content

Commit c8a6c1b

Browse files
committed
Adding Dynamic VM test to RunnerTests.csv file
1 parent 5aa7a89 commit c8a6c1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/RunnerTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void ExecuteRunnerTests()
1515
var mode = Environment.GetEnvironmentVariable("AZURE_TEST_MODE");
1616
var csmAuth = Environment.GetEnvironmentVariable("TEST_CSM_ORGID_AUTHENTICATION");
1717

18-
if (mode.ToLower() != "record")
18+
if (mode == null || csmAuth == null || mode.ToLower() != "record")
1919
{
2020
return;
2121
}
@@ -33,7 +33,6 @@ public void ExecuteRunnerTests()
3333
var authenticationContext = new AuthenticationContext("https://login.windows.net/" + testEnv.Tenant);
3434
var credential = new ClientCredential(testEnv.ClientId, envDictionary["ApplicationSecret"]);
3535

36-
3736
var result = authenticationContext.AcquireToken("https://management.core.windows.net/", clientCredential: credential);
3837
Assert.NotNull(result.AccessToken);
3938
envDictionary["RawToken"] = result.AccessToken;

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/RunnerTests.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ComputeCloudExceptionTests;RunComputeCloudExceptionTests
33
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests;TestLinuxVirtualMachine
44
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests;TestVirtualMachineProfile
5+
Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VMDynamicTests;RunVMDynamicTests

0 commit comments

Comments
 (0)