2012-05-15 13:34:10 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'nova::db::mysql' do
|
2012-07-06 13:34:03 -07:00
|
|
|
|
|
|
|
context 'on a Debian osfamily' do
|
|
|
|
let :facts do
|
|
|
|
{ :osfamily => "Debian" }
|
|
|
|
end
|
|
|
|
let :params do
|
|
|
|
{ :password => "qwerty" }
|
|
|
|
end
|
|
|
|
it { should contain_mysql__db('nova').with(
|
2012-05-15 13:34:10 -05:00
|
|
|
:user => 'nova',
|
|
|
|
:password => 'qwerty',
|
2012-10-14 01:52:16 -07:00
|
|
|
:charset => 'latin1',
|
2012-05-15 13:34:10 -05:00
|
|
|
:require => "Class[Mysql::Config]"
|
2012-07-06 13:34:03 -07:00
|
|
|
)}
|
|
|
|
end
|
2012-05-15 13:34:10 -05:00
|
|
|
|
2012-07-06 13:34:03 -07:00
|
|
|
context 'on a RedHat osfamily' do
|
|
|
|
let :facts do
|
|
|
|
{ :osfamily => 'RedHat' }
|
|
|
|
end
|
|
|
|
let :params do
|
|
|
|
{ :password => 'qwerty' }
|
|
|
|
end
|
|
|
|
it { should contain_mysql__db('nova').with(
|
|
|
|
:user => 'nova',
|
|
|
|
:password => 'qwerty',
|
|
|
|
:charset => 'latin1',
|
|
|
|
:require => "Class[Mysql::Config]"
|
|
|
|
)}
|
|
|
|
end
|
2012-05-15 13:34:10 -05:00
|
|
|
end
|