Skip to content

Query for control verify-kb #14

@amitchettri

Description

@amitchettri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions