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

Query for control verify-kb #14

Closed
amitchettri opened this issue Apr 21, 2020 · 0 comments
Closed

Query for control verify-kb #14

amitchettri opened this issue Apr 21, 2020 · 0 comments

Comments

@amitchettri
Copy link

Hi,

I am using dev-sec windows-patch-baseline profile and generating a html report. But in the report for below control I get the value 1 due to the line describe win_update.all.length as this check for the number of updates available to be installed and returns the value.

Is there a possibility to do get somethings as All updates should be installed is "value" instead of value 1 as shown in the attached screenshot with green highlights.

I do understand that this is due to the inspec reporter as it shows in the heading what is coded in "describe" in this case describe win_update.all.length. But I am hoping to know is there a way to concatenate title in describe like describe All updates should be installed is +" "+ win_update.all.length

win_update = windows_update
control 'verify-kb' do
  impact 0.3
  title 'All updates should be installed'
  describe win_update.all.length do
    it { should eq 0 }
  end
end

inspecerror

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