Skip to content

Commit 7ae09c6

Browse files
committed
Operational Insights test recordings and cmdlet help
1 parent 927b04c commit 7ae09c6

File tree

9 files changed

+3093
-744
lines changed

9 files changed

+3093
-744
lines changed

setup/azurecmdfiles.wxi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,9 @@
11061106
<Component Id="cmp60A47A8F0DFC42757E29CA7C75A21217" Guid="*">
11071107
<File Id="fil552F02B5CDD640DB4312F7CAAB735049" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.dll" />
11081108
</Component>
1109+
<Component Id="cmpDE97E805227E154CF4D25B2163461267" Guid="*">
1110+
<File Id="fil13D0F3FF2F9B93D754B39296DABC0F54" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.dll-Help.xml" />
1111+
</Component>
11091112
<Component Id="cmpE6D6321DFD55A1F07571F1E21169199C" Guid="*">
11101113
<File Id="filFEDCD421B189CE5A582A37B80D68C3FE" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\OperationalInsights\Microsoft.Azure.Commands.OperationalInsights.format.ps1xml" />
11111114
</Component>
@@ -4252,6 +4255,7 @@
42524255
<ComponentRef Id="cmp1F786D1771E02C0007F768794F3E10AB" />
42534256
<ComponentRef Id="cmpDDC47903D4E3310A136BA41E977329F6" />
42544257
<ComponentRef Id="cmp60A47A8F0DFC42757E29CA7C75A21217" />
4258+
<ComponentRef Id="cmpDE97E805227E154CF4D25B2163461267" />
42554259
<ComponentRef Id="cmpE6D6321DFD55A1F07571F1E21169199C" />
42564260
<ComponentRef Id="cmpD256276ACABBFDBED438D49EAF836520" />
42574261
<ComponentRef Id="cmp59338734131C2DE2321E63AB277B8300" />

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/Commands.OperationalInsights.Test.csproj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,23 @@
168168
<None Include="ScenarioTests\WorkspaceTests.ps1">
169169
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
170170
</None>
171+
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests\TestStorageInsightCreateFailsWithoutWorkspace.json">
172+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
173+
</None>
174+
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests\TestStorageInsightCreateUpdateDelete.json">
175+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
176+
</None>
177+
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.WorkspaceTests\TestWorkspaceActions.json">
178+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
179+
</None>
180+
<None Include="SessionRecords\Microsoft.Azure.Commands.OperationalInsights.Test.WorkspaceTests\TestWorkspaceCreateUpdateDelete.json">
181+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
182+
</None>
171183
</ItemGroup>
172184
<ItemGroup>
173185
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
174186
</ItemGroup>
175-
<ItemGroup>
176-
<Folder Include="SessionRecords\" />
177-
</ItemGroup>
187+
<ItemGroup />
178188
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
179189
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
180190
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/ScenarioTests/StorageInsightTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function Test-StorageInsightCreateUpdateDelete
8484
Assert-AreEqualArray @() $storageInsight.Tables
8585
Assert-AreEqualArray @("wad-iis-logfiles") $storageInsight.Containers
8686

87-
$storageinsight = New-AzureOperationalInsightsStorageInsight -Workspace $workspace -Name $siname -Tables @("WADWindowsEventLogsTable") -Containers @("wad-iis-logfiles") -StorageAccountKey "anotherfakekey" -Force
87+
$storageinsight = New-AzureOperationalInsightsStorageInsight -Workspace $workspace -Name $siname -Tables @("WADWindowsEventLogsTable") -Containers @("wad-iis-logfiles") -StorageAccountKey "anotherfakekey" -StorageAccountResourceId $said -Force
8888
Assert-AreEqualArray @("WADWindowsEventLogsTable") $storageInsight.Tables
8989
Assert-AreEqualArray @("wad-iis-logfiles") $storageInsight.Containers
9090

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/SessionRecords/Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests/TestStorageInsightCreateFailsWithoutWorkspace.json

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/SessionRecords/Microsoft.Azure.Commands.OperationalInsights.Test.StorageInsightTests/TestStorageInsightCreateUpdateDelete.json

Lines changed: 456 additions & 208 deletions
Large diffs are not rendered by default.

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/SessionRecords/Microsoft.Azure.Commands.OperationalInsights.Test.WorkspaceTests/TestWorkspaceActions.json

Lines changed: 141 additions & 141 deletions
Large diffs are not rendered by default.

src/ResourceManager/OperationalInsights/Commands.OperationalInsights.Test/SessionRecords/Microsoft.Azure.Commands.OperationalInsights.Test.WorkspaceTests/TestWorkspaceCreateUpdateDelete.json

Lines changed: 270 additions & 335 deletions
Large diffs are not rendered by default.

src/ResourceManager/OperationalInsights/Commands.OperationalInsights/Commands.OperationalInsights.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@
165165
</ItemGroup>
166166
<ItemGroup>
167167
<None Include="Microsoft.Azure.Commands.OperationalInsights.dll-Help.psd1" />
168+
<Content Include="Microsoft.Azure.Commands.OperationalInsights.dll-Help.xml">
169+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
170+
</Content>
168171
<Content Include="Microsoft.Azure.Commands.OperationalInsights.format.ps1xml">
169172
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
170173
</Content>

0 commit comments

Comments
 (0)