Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows support for the http resource #3959

Open
nellshamrell opened this issue Apr 18, 2019 · 1 comment

Comments

@nellshamrell
Copy link
Collaborator

@nellshamrell nellshamrell commented Apr 18, 2019

馃帥 Description

Choose one: is this a 馃悰 bug report or 馃檵 feature request?

Feature request, though this feature request came from a Bug Report in #2822

Briefly describe the issue and the expected behavior. Also, please be aware of our Code of Conduct.

A user should be able to use the http resource on windows.

i.e.

describe http('http://localhost:8080', enable_remote_worker: true) do
  its('body') { should match /Tomcat/ }
end

should run successfully on Windows, rather than returning an unsupported platform error.

@lmayorga1980

This comment has been minimized.

Copy link

@lmayorga1980 lmayorga1980 commented Jun 24, 2019

I get the same error on Windows 2019 Server.

describe http('http://localhost', enable_remote_worker: true) do
  its('status') { should cmp 200 }
  its('body') { should contain 'www.mysite.com' }
end

[FAIL] Resourcehttp is not supported on platform windows_server_2019_standard/10.0.17763.

This worked for me ...

describe command('curl http://localhost -UseBasicParsing') do
  its('stdout') { should include "www.mysite.com" }
  its('stderr') { should eq '' }
  its('exit_status') { should eq 0 }
end

output

  Command: `curl http://localhost -UseBasicParsing`
     [PASS]  stdout should include "www.mysite.com"
     [PASS]  stderr should eq ""
     [PASS]  exit_status should eq 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can鈥檛 perform that action at this time.