Skip to content

Commit 2aa9614

Browse files
committed
Fix playback test
1 parent 95504f0 commit 2aa9614

File tree

1 file changed

+8
-0
lines changed
  • src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ public RunnerTests(Xunit.Abstractions.ITestOutputHelper output)
1717
[Fact]
1818
public void ExecuteRunnerTests()
1919
{
20+
var mode = Environment.GetEnvironmentVariable("AZURE_TEST_MODE");
21+
var csmAuth = Environment.GetEnvironmentVariable("TEST_CSM_ORGID_AUTHENTICATION");
22+
23+
if (mode == null || csmAuth == null || mode.ToLower() != "record")
24+
{
25+
return;
26+
}
27+
2028
var testFile = File.ReadAllLines("ScenarioTests\\RunnerTests.csv");
2129
foreach (var line in testFile)
2230
{

0 commit comments

Comments
 (0)