File tree Expand file tree Collapse file tree 4 files changed +2509
-1
lines changed
src/Common/Commands.ScenarioTest
Resources/ServiceManagement
SessionRecords/Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests Expand file tree Collapse file tree 4 files changed +2509
-1
lines changed Original file line number Diff line number Diff line change 236
236
<None Include =" SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunAzurePlatformVMImageNegativeTest.json" >
237
237
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
238
238
</None >
239
+ <None Include =" SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunEnableAndDisableDataCollectionTests.json" >
240
+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
241
+ </None >
239
242
<None Include =" SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\RunNewAzureComputeArgumentListTests.json" >
240
243
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
241
244
</None >
Original file line number Diff line number Diff line change @@ -590,4 +590,22 @@ function Run-ServiceDeploymentExtensionCmdletTests
590
590
# Cleanup
591
591
Cleanup- CloudService $svcName ;
592
592
}
593
- }
593
+ }
594
+
595
+ # Run Data Collection Cmdlet Tests
596
+ function Run-EnableAndDisableDataCollectionTests
597
+ {
598
+ $st = Enable-AzureDataCollection ;
599
+
600
+ $locations = Get-AzureLocation ;
601
+ foreach ($loc in $locations )
602
+ {
603
+ $svcName = getAssetName;
604
+ $st = New-AzureService - ServiceName $svcName - Location $loc.Name ;
605
+
606
+ # Cleanup
607
+ Cleanup- CloudService $svcName
608
+ }
609
+
610
+ $st = Disable-AzureDataCollection ;
611
+ }
Original file line number Diff line number Diff line change @@ -125,5 +125,14 @@ public void RunServiceDeploymentExtensionCmdletTests()
125
125
{
126
126
this . RunPowerShellTest ( "Run-ServiceDeploymentExtensionCmdletTests" ) ;
127
127
}
128
+
129
+ [ Fact ]
130
+ [ Trait ( Category . Service , Category . ServiceManagement ) ]
131
+ [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
132
+ [ Trait ( Category . AcceptanceType , Category . BVT ) ]
133
+ public void RunEnableAndDisableDataCollectionTests ( )
134
+ {
135
+ this . RunPowerShellTest ( "Run-EnableAndDisableDataCollectionTests" ) ;
136
+ }
128
137
}
129
138
}
You can’t perform that action at this time.
0 commit comments