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

tests fail with inspec 0.9.5 #19

Closed
srenatus opened this issue Dec 7, 2015 · 0 comments · Fixed by #20
Closed

tests fail with inspec 0.9.5 #19

srenatus opened this issue Dec 7, 2015 · 0 comments · Fixed by #20
Assignees
Labels
Type: Bug Doesn't work as expected.

Comments

@srenatus
Copy link
Contributor

srenatus commented Dec 7, 2015

$ .bin/rake test
/Users/stephan/.rbenv/versions/2.2.3/bin/ruby -I/Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.1/lib:/Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-support-3.4.1/lib /Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

Kitchen::Verifier::Inspec
  verifier api_version is 1
  plugin_version is set to Kitchen::Verifier::INSPEC_VERSION
  with an ssh transport
    constructs a Inspec::Runner using transport config data and state (FAILED - 1)
    adds *spec.rb test files to runner (FAILED - 2)
    calls #run on the runner (FAILED - 3)
  with an winrm transport
    constructs a Inspec::Runner using transport config data and state (FAILED - 4)
  with an unsupported transport
    #call raises a UserError

Failures:

  1) Kitchen::Verifier::Inspec with an ssh transport constructs a Inspec::Runner using transport config data and state
     Failure/Error: raise ActionFailed, "Inspec Runner returns #{exit_code}" unless exit_code == 0

     Kitchen::ActionFailed:
       Inspec Runner returns 
     # ./lib/kitchen/verifier/inspec.rb:57:in `call'
     # ./spec/kitchen/verifier/inspec_spec.rb:163:in `block (3 levels) in <top (required)>'

  2) Kitchen::Verifier::Inspec with an ssh transport adds *spec.rb test files to runner
     Failure/Error: raise ActionFailed, "Inspec Runner returns #{exit_code}" unless exit_code == 0

     Kitchen::ActionFailed:
       Inspec Runner returns 
     # ./lib/kitchen/verifier/inspec.rb:57:in `call'
     # ./spec/kitchen/verifier/inspec_spec.rb:177:in `block (3 levels) in <top (required)>'

  3) Kitchen::Verifier::Inspec with an ssh transport calls #run on the runner
     Failure/Error: raise ActionFailed, "Inspec Runner returns #{exit_code}" unless exit_code == 0

     Kitchen::ActionFailed:
       Inspec Runner returns 
     # ./lib/kitchen/verifier/inspec.rb:57:in `call'
     # ./spec/kitchen/verifier/inspec_spec.rb:184:in `block (3 levels) in <top (required)>'

  4) Kitchen::Verifier::Inspec with an winrm transport constructs a Inspec::Runner using transport config data and state
     Failure/Error: raise ActionFailed, "Inspec Runner returns #{exit_code}" unless exit_code == 0

     Kitchen::ActionFailed:
       Inspec Runner returns 
     # ./lib/kitchen/verifier/inspec.rb:57:in `call'
     # ./spec/kitchen/verifier/inspec_spec.rb:228:in `block (3 levels) in <top (required)>'

Finished in 0.08909 seconds (files took 0.16373 seconds to load)
7 examples, 4 failures

Failed examples:

rspec ./spec/kitchen/verifier/inspec_spec.rb:140 # Kitchen::Verifier::Inspec with an ssh transport constructs a Inspec::Runner using transport config data and state
rspec ./spec/kitchen/verifier/inspec_spec.rb:166 # Kitchen::Verifier::Inspec with an ssh transport adds *spec.rb test files to runner
rspec ./spec/kitchen/verifier/inspec_spec.rb:180 # Kitchen::Verifier::Inspec with an ssh transport calls #run on the runner
rspec ./spec/kitchen/verifier/inspec_spec.rb:213 # Kitchen::Verifier::Inspec with an winrm transport constructs a Inspec::Runner using transport config data and state

/Users/stephan/.rbenv/versions/2.2.3/bin/ruby -I/Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.1/lib:/Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-support-3.4.1/lib /Users/stephan/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.4.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
@srenatus srenatus changed the title tests fail on master tests fail with inspec 0.9.5 Dec 7, 2015
@srenatus srenatus self-assigned this Dec 7, 2015
@srenatus srenatus added the bug label Dec 7, 2015
@tas50 tas50 added Type: Bug Doesn't work as expected. and removed bug labels Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Doesn't work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants