mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
da00e359aa
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
16 lines
504 B
Ruby
16 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
|
|
|