Skip to content

Commit

Permalink
update 252141
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlongcc committed Mar 29, 2024
1 parent 2faa810 commit 875a748
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/mongo-inspec-profile/controls/SV-252141.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
tag nist: ['SC-24', 'SC-24']


#set a var to the mongo_version
run_check_command = "mongosh mongodb://localhost:27017/test --quiet --eval \"EJSON.stringify(db.version())\""

check_output = json({command: run_check_command})

mongo_version = check_output.params.to_f

only_if('Storage journal options are only possible to enable on MongoDB versions 6.1 or older', impact: 0.0) {
(mongo_version) <= 6.1
Expand All @@ -58,5 +62,4 @@
its(['storage','journal','enabled']){should eq true}
end


end

0 comments on commit 875a748

Please sign in to comment.