puppet-cinder/spec/classes/cinder_db_mysql_spec.rb
Dan Bode ec77314554 Add basic spec tests
This commit adds basic test coverage. It is no
100% coverage, but its a great start.
2012-10-29 12:58:03 -07:00

29 lines
503 B
Ruby

require 'spec_helper'
describe 'cinder::db::mysql' do
let :req_params do
{:password => 'pw'}
end
let :facts do
{:osfamily => 'Debian'}
end
let :pre_condition do
'include mysql::server'
end
describe 'with only required params' do
let :params do
req_params
end
it { should contain_mysql__db('cinder').with(
:user => 'cinder',
:password => 'pw',
:host => '127.0.0.1',
:charset => 'latin1'
) }
end
end