Skip to content

Commit eea07b1

Browse files
author
begoldsm
committed
Re-record ADL tests
Note that I am still testing out the addition of the logger for ADL import and I will need to add it for export as well. So there is at least one more commit needed here.
1 parent ed9a64d commit eea07b1

File tree

7 files changed

+2454
-1993
lines changed

7 files changed

+2454
-1993
lines changed

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeAnalytics.Test.ScenarioTests.AdlaAliasTests/TestAdlaJob.json

Lines changed: 336 additions & 270 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeAnalytics.Test.ScenarioTests.AdlaAliasTests/TestNegativeAdlaJob.json

Lines changed: 277 additions & 226 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeAnalytics.Test.ScenarioTests.AdlaTests/TestAdlaJob.json

Lines changed: 323 additions & 404 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeAnalytics.Test.ScenarioTests.AdlaTests/TestNegativeAdlaJob.json

Lines changed: 277 additions & 226 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests/TestAdlsFileSystem.json

Lines changed: 616 additions & 433 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTests/TestAdlsFileSystem.json

Lines changed: 614 additions & 431 deletions
Large diffs are not rendered by default.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Commands/ImportAzureRmDataLakeStoreItem.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,13 @@ public override void ExecuteCmdlet()
118118
Destination.TransformedPath,
119119
() =>
120120
{
121-
var logger = new DataLakeStoreTraceLogger(this, diagnosticPath, DiagnosticLogLevel);
122-
ServiceClientTracing.AddTracingInterceptor(logger.SdkTracingInterceptor);
121+
DataLakeStoreTraceLogger logger = null;
122+
if (DiagnosticLogLevel != LogLevel.None)
123+
{
124+
logger = new DataLakeStoreTraceLogger(this, diagnosticPath, DiagnosticLogLevel);
125+
ServiceClientTracing.AddTracingInterceptor(logger.SdkTracingInterceptor);
126+
}
127+
123128
try
124129
{
125130
if (Directory.Exists(powerShellSourcePath))
@@ -161,7 +166,10 @@ public override void ExecuteCmdlet()
161166
}
162167
finally
163168
{
164-
ServiceClientTracing.RemoveTracingInterceptor(logger.SdkTracingInterceptor);
169+
if (logger != null)
170+
{
171+
ServiceClientTracing.RemoveTracingInterceptor(logger.SdkTracingInterceptor);
172+
}
165173
}
166174
});
167175
}

0 commit comments

Comments
 (0)