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 229
229
<None Include =" ScenarioTests\DummyConfig.ps1" >
230
230
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
231
231
</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 >
241
232
<None Include =" ScenarioTests\RunnerTests.csv" >
242
233
<CopyToOutputDirectory >Always</CopyToOutputDirectory >
243
234
</None >
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public void ExecuteRunnerTests()
34
34
var credential = new ClientCredential ( testEnv . ClientId , envDictionary [ "ApplicationSecret" ] ) ;
35
35
36
36
var result = authenticationContext . AcquireToken ( "https://management.core.windows.net/" , clientCredential : credential ) ;
37
+
37
38
Assert . NotNull ( result . AccessToken ) ;
38
39
envDictionary [ "RawToken" ] = result . AccessToken ;
39
40
@@ -54,7 +55,11 @@ public void ExecuteRunnerTests()
54
55
var testClassInstance = constructorInfo . Invoke ( new object [ ] { } ) ;
55
56
var testMethod = type . GetMethod ( method ) ;
56
57
58
+ Console . WriteLine ( "Invoking method : " + testMethod ) ;
59
+
57
60
testMethod . Invoke ( testClassInstance , new object [ ] { } ) ;
61
+
62
+ Console . WriteLine ( "Method " + testMethod + " has finished" ) ;
58
63
}
59
64
}
60
65
}
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 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using System ;
16
+ using System . IO ;
15
17
using Microsoft . Azure . Test . HttpRecorder ;
16
18
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
17
19
using Xunit ;
@@ -24,7 +26,7 @@ public partial class VMDynamicTests
24
26
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
25
27
public void RunVMDynamicTests ( )
26
28
{
27
- ComputeTestController . NewInstance . RunPsTest ( "Run-VMDynamicTests" ) ;
29
+ ComputeTestController . NewInstance . RunPsTest ( "Run-VMDynamicTests -num_total_generated_tests 1 " ) ;
28
30
}
29
31
}
30
32
}
You can’t perform that action at this time.
0 commit comments