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

Inspec exec output when multiple matchers are used #812

Closed
alexpop opened this issue Jul 5, 2016 · 1 comment
Closed

Inspec exec output when multiple matchers are used #812

alexpop opened this issue Jul 5, 2016 · 1 comment
Labels
Type: Bug Feature not working as expected
Milestone

Comments

@alexpop
Copy link
Contributor

alexpop commented Jul 5, 2016

With inspec 0.26.0, when multiple matchers are used, the output is missing the label of the test. For example, for the above test:

describe file('/etc') do
  it { should exist }
end

describe service('apache2') do
  it { should be_enabled }
  it { should be_running }
end

I get:

$ ~/git/inspec/bin/inspec exec s.rb --sudo --password '***' -t ssh://vagrant@***

  ✔  File /etc should exist
  ✔

Summary: 3 successful, 0 failures, 0 skipped

And for this test:

describe file('/etc') do
  it { should exist }
  its('mode') { should cmp '0755' }
end

describe service('apache2') do
  it { should be_running }
end

I get:

$ ~/git/inspec/bin/inspec exec s.rb --sudo --password '***' -t ssh://vagrant@***

  ✔
  ✔  Service apache2 should be running

Summary: 3 successful, 0 failures, 0 skipped

$ ~/git/inspec/bin/inspec version
0.26.0
@alexpop alexpop added the Type: Bug Feature not working as expected label Jul 5, 2016
@chris-rock chris-rock added this to the 1.0.0 milestone Jul 26, 2016
@ksubrama ksubrama self-assigned this Aug 1, 2016
@Mykolaichenko
Copy link

The same problem, not working with multiple matchers in inspec version = 0.28.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

4 participants