Skip to content

Commit d3ed64e

Browse files
committed
Add commandlets for installing, removing, getting and testing the Azure Enhanced Monitoring extension
1 parent 8c7eb90 commit d3ed64e

23 files changed

+27881
-0
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
<ItemGroup>
165165
<Compile Include="Common\ComputeTestController.cs" />
166166
<Compile Include="ScenarioTests\AddVhdTests.cs" />
167+
<Compile Include="ScenarioTests\AEMExtensionTests.cs" />
167168
<Compile Include="ScenarioTests\ComputeCloudExceptionTests.cs" />
168169
<Compile Include="ScenarioTests\DiagnosticsExtensionTests.cs" />
169170
<Compile Include="ScenarioTests\DscExtensionTests.cs" />
@@ -219,6 +220,9 @@
219220
<None Include="ScenarioTests\AddVhdTests.ps1">
220221
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
221222
</None>
223+
<None Include="ScenarioTests\AEMExtensionTests.ps1">
224+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
225+
</None>
222226
<None Include="ScenarioTests\ComputeCloudExceptionTests.ps1">
223227
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
224228
</None>
@@ -269,6 +273,18 @@
269273
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AddVhdTests\TestAddVhd.json">
270274
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
271275
</None>
276+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AEMExtensionTests\TestAEMExtensionAdvancedLinux.json">
277+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
278+
</None>
279+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AEMExtensionTests\TestAEMExtensionAdvancedWindows.json">
280+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
281+
</None>
282+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AEMExtensionTests\TestAEMExtensionBasicLinux.json">
283+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
284+
</None>
285+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AEMExtensionTests\TestAEMExtensionBasicWindows.json">
286+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
287+
</None>
272288
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.AvailabilitySetTests\TestAvailabilitySet.json">
273289
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
274290
</None>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using Xunit;
8+
9+
namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
10+
{
11+
public class AEMExtensionTests
12+
{
13+
[Fact]
14+
[Trait(Category.AcceptanceType, Category.CheckIn)]
15+
public void TestAEMExtensionBasicWindows()
16+
{
17+
ComputeTestController.NewInstance.RunPsTest("Test-AEMExtensionBasicWindows");
18+
}
19+
20+
[Fact]
21+
[Trait(Category.AcceptanceType, Category.CheckIn)]
22+
public void TestAEMExtensionBasicLinux()
23+
{
24+
ComputeTestController.NewInstance.RunPsTest("Test-AEMExtensionBasicLinux");
25+
}
26+
27+
[Fact]
28+
[Trait(Category.AcceptanceType, Category.CheckIn)]
29+
public void TestAEMExtensionAdvancedWindows()
30+
{
31+
ComputeTestController.NewInstance.RunPsTest("Test-AEMExtensionAdvancedWindows");
32+
}
33+
34+
[Fact]
35+
[Trait(Category.AcceptanceType, Category.CheckIn)]
36+
public void TestAEMExtensionAdvancedLinux()
37+
{
38+
ComputeTestController.NewInstance.RunPsTest("Test-AEMExtensionAdvancedLinux");
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)