Skip to content

webrequest tests fail on CentOS and RedHat on RC #5486

Closed

Description

RC testing observed the following failures only on CentOS 7 (Core) and RedHat 7.2 (Maipo)

   Description: Invoke-RestMethod tests

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls, Tls11 fails on a Tls12 only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           --------------------^

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls, Tls11 works on Tls
Error    : The requested security protocol is not supported.

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls, Tls11 works on Tls11
Error    : The requested security protocol is not supported.

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls, Tls12 fails on a Tls11 only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           --------------------^

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls, Tls12 works on Tls
Error    : The requested security protocol is not supported.

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls11, Tls12 fails on a Tls only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand}
           --------------------^

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls11, Tls12 works on Tls11
Error    : The requested security protocol is not supported.

Context  : Invoke-RestMethod -SslProtocol Test
TestName : Verifies Invoke-RestMethod -SslProtocol Tls11, Tls12 works on Tls12
Error    : The requested security protocol is not supported.

   Description: Invoke-WebRequest tests

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol -SslProtocol Tls, Tls11 fails on a Tls12 only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           --------------------^

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol -SslProtocol Tls, Tls12 fails on a Tls11 only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           --------------------^

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol -SslProtocol Tls11, Tls12 fails on a Tls only connection
Error    : Expected string length 83 but was 89. Strings differ at index 9.
           Expected: {WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           But was:  {WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand}
           --------------------^

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol Tls, Tls11 works on Tls
Error    : The requested security protocol is not supported.

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol Tls, Tls11 works on Tls11
Error    : The requested security protocol is not supported.

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol Tls, Tls12 works on Tls
Error    : The requested security protocol is not supported.

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol Tls11, Tls12 works on Tls11
Error    : The requested security protocol is not supported.

Context  : Invoke-WebRequest -SslProtocol Test
TestName : Verifies Invoke-WebRequest -SslProtocol Tls11, Tls12 works on Tls12
Error    : The requested security protocol is not supported.

Activity

  1. changed the title [-]webrequest tests fail on CentOS and RedHat[/-] [+]webrequest tests fail on CentOS and RedHat on RC[/+] on Nov 17, 2017
  2. markekraus commented on Nov 17, 2017

    @markekraus
    Contributor

    This is somewhat expected. It's the same as the -Certificate tests an due to the difference in libcurl implementation.

  3. markekraus commented on Jan 10, 2018

    @markekraus
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions