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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitchen verify/test fails when using the command resource with curl #100

Closed
kuojo opened this issue Aug 24, 2016 · 1 comment
Closed

Kitchen verify/test fails when using the command resource with curl #100

kuojo opened this issue Aug 24, 2016 · 1 comment

Comments

@kuojo
Copy link

kuojo commented Aug 24, 2016

If you write a test that looks similar to below and you use kitchen verify/test this will fail with the curl error curl: can't find host localhost

describe bash('curl -sS localhost:80/index.html') do
  its('stdout') { should_not match /HTTP Status 404/i }
  its('stderr') { should eq ''}
end

This does however work if you use the inspec cli and run inspec exec test.rb -t ssh://vagrant@127.0.0.1:2222/

I don't think I am missing anything and I can't get any more detailed pulled from the kitchen logs. Is this expected behavior or did I miss up a configuration

@kuojo
Copy link
Author

kuojo commented Aug 24, 2016

This actually appears to be an issue with the structure of my tests.

@kuojo kuojo closed this as completed Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant