6527a3aa22
Switching out the puppet version, as puppet_facts does, does not work, as this will confuse code that wants to use version-dependent features. Instead this uses rspec-puppet-facts, which doesn't touch the puppet version.
32 lines
1 KiB
Ruby
32 lines
1 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'mysql::bindings' do
|
|
on_supported_os.each do |os, facts|
|
|
context "on #{os}" do
|
|
let(:facts) {
|
|
facts.merge({
|
|
:root_home => '/root',
|
|
})
|
|
}
|
|
|
|
let(:params) {{
|
|
'java_enable' => true,
|
|
'perl_enable' => true,
|
|
'php_enable' => true,
|
|
'python_enable' => true,
|
|
'ruby_enable' => true,
|
|
'client_dev' => true,
|
|
'daemon_dev' => true,
|
|
'client_dev_package_name' => 'libmysqlclient-devel',
|
|
'daemon_dev_package_name' => 'mysql-devel',
|
|
}}
|
|
|
|
it { is_expected.to contain_package('mysql-connector-java') }
|
|
it { is_expected.to contain_package('perl_mysql') }
|
|
it { is_expected.to contain_package('python-mysqldb') }
|
|
it { is_expected.to contain_package('ruby_mysql') }
|
|
it { is_expected.to contain_package('mysql-client_dev') }
|
|
it { is_expected.to contain_package('mysql-daemon_dev') }
|
|
end
|
|
end
|
|
end
|