3 describe 'neutron::db::mysql' do
6 'include mysql::server'
10 { :password => 'passw0rd',
14 { :osfamily => 'Debian' }
18 context 'on Debian platforms' do
20 { :osfamily => 'Debian' }
23 it { should contain_openstacklib__db__mysql('neutron').with(
25 :password_hash => '*74B1C21ACE0C2D6B0678A5E503D2A60E8F9651A3',
28 :collate => 'utf8_general_ci',
32 context 'on RedHat platforms' do
34 { :osfamily => 'RedHat' }
37 it { should contain_openstacklib__db__mysql('neutron').with(
39 :password_hash => '*74B1C21ACE0C2D6B0678A5E503D2A60E8F9651A3',
42 :collate => 'utf8_general_ci',
46 describe "overriding allowed_hosts param to array" do
49 :password => 'neutronpass',
50 :allowed_hosts => ['127.0.0.1','%']
56 describe "overriding allowed_hosts param to string" do
59 :password => 'neutronpass2',
60 :allowed_hosts => '192.168.1.1'
66 describe "overriding allowed_hosts param equals to host param " do
69 :password => 'neutronpass2',
70 :allowed_hosts => '127.0.0.1'