Skip to content

Commit 382a3e8

Browse files
committed
add one more possible error message to test case
1 parent 1f7414d commit 382a3e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Websites/Websites.Test/ScenarioTests/WebAppTests.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,15 +710,17 @@ function Test-WindowsContainerCanIssueWebAppPSSession
710710
$messageDNS = "Connecting to remote server $wname.azurewebsites.net failed with the following error message : The WinRM client cannot process the request because the server name cannot be resolved"
711711
$messageUnavailable = "Connecting to remote server $wname.azurewebsites.net failed with the following error message : The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available."
712712
$messagePsVersionNotSupported = "Remote Powershell sessions into Windows Containers on App Service from this version of PowerShell is not supported.";
713+
$messageMIResulFailed = "Connecting to remote server $wname.azurewebsites.net failed with the following error message : MI_RESULT_FAILED";
713714

714715
# One possible warning message in Playback mode.
715716
$messageWSMANNotConfigured = "Your current WSMAN Trusted Hosts settings will prevent you from connecting to your Container Web App";
716717

717718
$resultError = ($Error[0] -like "*$($messageDNS)*") -or
718719
($Error[0] -like "*$($messageUnavailable)*") -or
719720
($Error[0] -like "*$($messageWSMANNotConfigured)*") -or
720-
($Error[0] -like "*$($messagePsVersionNotSupported)*")
721-
721+
($Error[0] -like "*$($messagePsVersionNotSupported)*") -or
722+
($Error[0] -like "*$($messageMIResulFailed)*")
723+
722724
$resultWarning = ($wv[0] -like "*$($messageWSMANNotConfigured)*")
723725

724726
Write-Debug "Expected error message 1: $messageDNS"

0 commit comments

Comments
 (0)