2013-09-13 19:13:59 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'mysql::bindings' do
|
2015-10-13 12:29:42 +02:00
|
|
|
on_supported_os.each do |os, facts|
|
|
|
|
context "on #{os}" do
|
|
|
|
let(:facts) {
|
|
|
|
facts.merge({
|
|
|
|
:root_home => '/root',
|
|
|
|
})
|
|
|
|
}
|
2014-08-08 21:27:07 +02:00
|
|
|
|
2015-10-13 12:29:42 +02:00
|
|
|
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',
|
|
|
|
}}
|
2014-08-08 21:27:07 +02:00
|
|
|
|
2015-10-13 12:29:42 +02:00
|
|
|
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') }
|
2014-05-09 03:17:44 +02:00
|
|
|
end
|
2013-09-13 19:13:59 +02:00
|
|
|
end
|
|
|
|
end
|