mirror of
https://github.com/inspec/inspec
synced 2024-12-20 10:03:28 +00:00
17 lines
504 B
Ruby
17 lines
504 B
Ruby
|
require "helper"
|
||
|
require "inspec/resource"
|
||
|
require "inspec/resources/mongodb"
|
||
|
|
||
|
describe "Inspec::Resources::Mongodb" do
|
||
|
it "sets default configuration path" do
|
||
|
resource = MockLoader.new(:windows).load_resource("mongodb")
|
||
|
_(resource.conf_path).must_equal "C:\\Program Files\\MongoDB\\Server\\4.4\\bin\\mongod.cfg"
|
||
|
end
|
||
|
|
||
|
it "sets default configuration path" do
|
||
|
resource = MockLoader.new(:centos7).load_resource("mongodb")
|
||
|
_(resource.conf_path).must_equal "/etc/mongod.conf"
|
||
|
end
|
||
|
end
|
||
|
|