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 CLI output not showing skip message when control title is defined #1097

Closed
alexpop opened this issue Sep 19, 2016 · 1 comment
Closed
Assignees
Labels
Type: Bug Feature not working as expected

Comments

@alexpop
Copy link
Contributor

alexpop commented Sep 19, 2016

Take this control:

control 'windows-4' do
  title "Trying my luck :)"
  describe windows_feature('linux_kernel') do
    it { should be_installed }
  end
end

Executing it against a non-windows node, I get:

$ be inspec exec /tmp/t.rb

Target:  local://

    windows-4: Trying my luck :)

Profile Summary: 0 successful, 0 failures, 1 skipped

As can be seen from the output, it's not very clear why the control was skipped.


Now, if I remove title from the control, I get this:

$ be inspec exec /tmp/t.rb

Target:  local://

    windows-4: Windows Feature 'linux_kernel' The `windows_feature` resource is not supported on your OS.

Profile Summary: 0 successful, 0 failures, 1 skipped

With the title removed, I can see the skip message provided by the troubled resource.
I would also like to see the skip message when a title is defined for the control.

It looks like the function that needs updating is: current_control_summary

@alexpop alexpop added the Type: Bug Feature not working as expected label Sep 19, 2016
@alexpop alexpop self-assigned this Sep 20, 2016
@alexpop
Copy link
Contributor Author

alexpop commented Sep 20, 2016

I'm taking this

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

1 participant