File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
ResourceManager/Profile/Commands.Profile.Test Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,12 @@ protected static void InitializeDataCollectionProfile()
138
138
if ( string . Equals ( value , bool . FalseString , StringComparison . OrdinalIgnoreCase ) )
139
139
{
140
140
// Disable data collection only if it is explicitly set to 'false'.
141
- _dataCollectionProfile = new AzurePSDataCollectionProfile ( true ) ;
141
+ _dataCollectionProfile = new AzurePSDataCollectionProfile ( false ) ;
142
142
}
143
143
else if ( string . Equals ( value , bool . TrueString , StringComparison . OrdinalIgnoreCase ) )
144
144
{
145
145
// Enable data collection only if it is explicitly set to 'true'.
146
- _dataCollectionProfile = new AzurePSDataCollectionProfile ( false ) ;
146
+ _dataCollectionProfile = new AzurePSDataCollectionProfile ( true ) ;
147
147
}
148
148
}
149
149
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ public class MetricHelper
54
54
/// </summary>
55
55
private readonly object _lock = new object ( ) ;
56
56
57
- private string _hashMacAddress = string . Empty ;
57
+ private static string _hashMacAddress = string . Empty ;
58
58
59
- private string HashMacAddress
59
+ private static string HashMacAddress
60
60
{
61
61
get
62
62
{
Original file line number Diff line number Diff line change 17
17
using Microsoft . Azure . ServiceManagemenet . Common . Models ;
18
18
using Microsoft . Azure . Test . HttpRecorder ;
19
19
using Microsoft . Rest . ClientRuntime . Azure . TestFramework ;
20
+ using Microsoft . WindowsAzure . Commands . Common ;
20
21
using Microsoft . WindowsAzure . Commands . Common . Test . Mocks ;
21
22
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
22
23
using System ;
@@ -107,7 +108,7 @@ private void RunPsTestWorkflow(
107
108
helper . RMResourceModule ,
108
109
helper . RMResourceManagerStartup ,
109
110
helper . RMInsightsModule ) ;
110
-
111
+ Environment . SetEnvironmentVariable ( AzurePSDataCollectionProfile . EnvironmentVariableName , "false" ) ;
111
112
try
112
113
{
113
114
if ( scriptBuilder != null )
You can’t perform that action at this time.
0 commit comments