Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Addressing issue #149 #150

Merged
merged 2 commits into from
Mar 30, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions controls/V-71999.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@
Vulnerability Management (IAVM) process, this is a finding."
desc "fix", "Install the operating system patches or updated packages
available from Red Hat within 30 days or sooner as local policy dictates."

updates = linux_update.updates
package_names = updates.map { |h| h['name'] }

describe.one do
describe 'List of out-of-date packages' do
subject { linux_update.updates }
subject { package_names }
it { should be_empty }
end

linux_update.updates.each do |update|
updates.each do |update|
describe package(update['name']) do
its('version') { should eq update['version'] }
end
Expand Down