From 1492ccec27228ad200f7c1a0b0f8c94c698b45bc Mon Sep 17 00:00:00 2001 From: Mark Kraus Date: Mon, 9 Apr 2018 04:54:53 -0700 Subject: [PATCH 1/2] [feature] Add Missing Start-WebListener to Web Cmdlet Tests --- .../Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index 8c4c49dc8d9..c9bfb8643d6 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 @@ -3067,6 +3067,9 @@ Describe "Invoke-RestMethod tests" -Tags "Feature" { } Describe "Validate Invoke-WebRequest and Invoke-RestMethod -InFile" -Tags "Feature" { + BeforeAll { + $WebListener = Start-WebListener + } Context "InFile parameter negative tests" { BeforeAll { $uri = Get-WebListenerUrl -Test 'Post' From 883d4940a3db1d01cdba0898f24a7398b652c502 Mon Sep 17 00:00:00 2001 From: Mark Kraus Date: Mon, 9 Apr 2018 22:16:14 -0700 Subject: [PATCH 2/2] [feature] Address PR Feedback --- .../Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index c9bfb8643d6..1f7bb99f172 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 @@ -3070,6 +3070,7 @@ Describe "Validate Invoke-WebRequest and Invoke-RestMethod -InFile" -Tags "Featu BeforeAll { $WebListener = Start-WebListener } + Context "InFile parameter negative tests" { BeforeAll { $uri = Get-WebListenerUrl -Test 'Post'