Skip to content

Client-side telemetry is opt-in by default #4396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 8, 2017
Prev Previous commit
Next Next commit
Move environment variable declaration to test constructor from contro…
…ller
  • Loading branch information
cormacpayne committed Aug 7, 2017
commit 33c51f7def4df234fde167cbb3ee5a2ac00f96a6
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
using Xunit;
using Xunit.Abstractions;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using System;
using Microsoft.WindowsAzure.Commands.Common;

namespace Microsoft.Azure.Commands.ResourceManager.Profile.Test
{
Expand All @@ -42,6 +44,7 @@ public ContextCmdletTests(ITestOutputHelper output)
AzureSession.Instance.DataStore = dataStore;
commandRuntimeMock = new MockCommandRuntime();
AzureSession.Instance.AuthenticationFactory = new MockTokenAuthenticationFactory();
Environment.SetEnvironmentVariable(AzurePSDataCollectionProfile.EnvironmentVariableName, "false");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void RunPsTestWorkflow(
helper.RMResourceModule,
helper.RMResourceManagerStartup,
helper.RMInsightsModule);
Environment.SetEnvironmentVariable(AzurePSDataCollectionProfile.EnvironmentVariableName, "false");

try
{
if (scriptBuilder != null)
Expand Down