fuel-library/deployment/puppet/mongodb/spec/classes/server_install_spec.rb
Bogdan Dobrelya 3aff1017bc Add puppetlabs-mongodb
This is a verbatim copy of upstream
https://github.com/puppetlabs/puppetlabs-mongodb
v0.7.0 c5e672581664c326b9f0dc4071d9d79c764e40cc

Partial (Stage 2) blueprint: ceilometer-fuel-integraition

Change-Id: Icbd908ff855cd5320c961ec198ccc536baf204e5
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-04-14 12:28:01 +03:00

17 lines
479 B
Ruby

require 'spec_helper'
describe 'mongodb::server::install', :type => :class do
describe 'it should create package and dbpath file' do
let(:pre_condition) { ["class mongodb::server { $package_ensure = true $dbpath = '/var/lib/mongo' $user = 'mongodb' $package_name = 'mongodb-server' }", "include mongodb::server"]}
it {
should contain_package('mongodb_server').with({
:ensure => 'present',
:name => 'mongodb-server',
})
}
end
end