Skip to content

Commit 297a844

Browse files
committed
Fix operation insights scenario tests
1 parent a23cfde commit 297a844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function Test-StorageInsightCreateUpdateDelete
6969

7070
# Delete one of the storage insights
7171
Remove-AzureRmOperationalInsightsStorageInsight -ResourceGroupName $rgname -WorkspaceName $wsname -Name $sinametwo -Force
72-
Assert-ThrowsContains { Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace -Name $sinametwo } "Not Found"
72+
Assert-ThrowsContains { Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace -Name $sinametwo } "NotFound"
7373
$storageinsights = Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace
7474
Assert-AreEqual 1 $storageinsights.Count
7575
Assert-AreEqual 1 ($storageinsights | Where {$_.Name -eq $siname}).Count
@@ -90,7 +90,7 @@ function Test-StorageInsightCreateUpdateDelete
9090

9191
# Delete the remaining storage insight via piping
9292
Remove-AzureRmOperationalInsightsStorageInsight -Workspace $workspace -Name $siname -Force
93-
Assert-ThrowsContains { Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace -Name $siname } "Not Found"
93+
Assert-ThrowsContains { Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace -Name $siname } "NotFound"
9494
$storageinsights = Get-AzureRmOperationalInsightsStorageInsight -Workspace $workspace
9595
Assert-AreEqual 0 $storageinsights.Count
9696
}

0 commit comments

Comments
 (0)