File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed
src/ResourceManager/Compute/Commands.Compute.Test Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 229229 <None Include =" ScenarioTests\DummyConfig.ps1" >
230230 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
231231 </None >
232- <None Include =" ScenarioTests\Generated\VirtualMachineDynamicTest1.ps1" >
233- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
234- </None >
235- <None Include =" ScenarioTests\Generated\VirtualMachineDynamicTest2.ps1" >
236- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
237- </None >
238- <None Include =" ScenarioTests\Generated\VirtualMachineDynamicTest3.ps1" >
239- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
240- </None >
241232 <None Include =" ScenarioTests\RunnerTests.csv" >
242233 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
243234 </None >
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public void ExecuteRunnerTests()
3434 var credential = new ClientCredential ( testEnv . ClientId , envDictionary [ "ApplicationSecret" ] ) ;
3535
3636 var result = authenticationContext . AcquireToken ( "https://management.core.windows.net/" , clientCredential : credential ) ;
37+
3738 Assert . NotNull ( result . AccessToken ) ;
3839 envDictionary [ "RawToken" ] = result . AccessToken ;
3940
@@ -54,7 +55,11 @@ public void ExecuteRunnerTests()
5455 var testClassInstance = constructorInfo . Invoke ( new object [ ] { } ) ;
5556 var testMethod = type . GetMethod ( method ) ;
5657
58+ Console . WriteLine ( "Invoking method : " + testMethod ) ;
59+
5760 testMethod . Invoke ( testClassInstance , new object [ ] { } ) ;
61+
62+ Console . WriteLine ( "Method " + testMethod + " has finished" ) ;
5863 }
5964 }
6065 }
Original file line number Diff line number Diff line change 1- Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AvailabilitySetTests;TestAvailabilitySet
2- Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ComputeCloudExceptionTests;RunComputeCloudExceptionTests
3- Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests;TestLinuxVirtualMachine
4- Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests;TestVirtualMachineProfile
5- Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VMDynamicTests;RunVMDynamicTests
1+ Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VMDynamicTests;RunVMDynamicTests
Original file line number Diff line number Diff line change 1212// limitations under the License.
1313// ----------------------------------------------------------------------------------
1414
15+ using System ;
16+ using System . IO ;
1517using Microsoft . Azure . Test . HttpRecorder ;
1618using Microsoft . WindowsAzure . Commands . ScenarioTest ;
1719using Xunit ;
@@ -24,7 +26,7 @@ public partial class VMDynamicTests
2426 [ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
2527 public void RunVMDynamicTests ( )
2628 {
27- ComputeTestController . NewInstance . RunPsTest ( "Run-VMDynamicTests" ) ;
29+ ComputeTestController . NewInstance . RunPsTest ( "Run-VMDynamicTests -num_total_generated_tests 1 " ) ;
2830 }
2931 }
3032}
You can’t perform that action at this time.
0 commit comments