Skip to content

Commit

Permalink
bundle exec rake lint:auto_correct
Browse files Browse the repository at this point in the history
  • Loading branch information
DMedina6 committed Jan 13, 2025
1 parent f31d91b commit 42f94ea
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions controls/SV-230484.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,21 @@
unless time_sources.nil?
# Verify the chrony.conf file is configured to at least one authoritative DoD time source
# Check for valid maxpoll value <17
describe "chrony.conf" do
describe 'chrony.conf' do
# authoritative_timeservers_exact specifies whether to verify all inputted timeservers or just one
if authoritative_timeservers_exact
it "should include all specified valid timeservers" do
it 'should include all specified valid timeservers' do
expect(authoritative_timeservers.all? { |input|
server_values.include?(input) && max_poll_values[server_values.index(input)] < 17
}).to be true
end
server_values.include?(input) && max_poll_values[server_values.index(input)] < 17
}).to be true
end
else
it "should include at least one valid timeserver" do
expect(authoritative_timeservers.any? { |input|
server_values.include?(input) && max_poll_values[server_values.index(input)] < 17
it 'should include at least one valid timeserver' do
expect(authoritative_timeservers.any? { |input|
server_values.include?(input) && max_poll_values[server_values.index(input)] < 17
}).to be true
end
end
end
end

end




0 comments on commit 42f94ea

Please sign in to comment.