26 lines
614 B
Ruby
26 lines
614 B
Ruby
# ROLE: primary-controller
|
|
|
|
require 'spec_helper'
|
|
require 'shared-examples'
|
|
manifest = 'murano/db.pp'
|
|
|
|
describe manifest do
|
|
shared_examples 'catalog' do
|
|
murano_enabled = Noop.hiera_structure('murano/enabled', false)
|
|
|
|
it 'should install proper mysql-client', :if => murano_enabled do
|
|
if facts[:osfamily] == 'RedHat'
|
|
pkg_name = 'MySQL-client-wsrep'
|
|
elsif facts[:osfamily] == 'Debian'
|
|
pkg_name = 'mysql-wsrep-client-5.6'
|
|
end
|
|
should contain_class('mysql::client').with(
|
|
'package_name' => pkg_name,
|
|
)
|
|
end
|
|
end
|
|
|
|
test_ubuntu_and_centos manifest
|
|
end
|
|
|