inspec/test/unit/resources/mongodb_test.rb
Vasu1105 da00e359aa Add mongodb_conf resource to InSpec
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
2021-06-14 18:17:05 +05:30

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