2014-07-28 07:51:22 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-09-13 19:13:59 +02:00
|
|
|
describe 'mysql::client' do
|
2014-07-28 07:51:22 +02:00
|
|
|
on_pe_supported_platforms(PLATFORMS).each do |pe_version,pe_platforms|
|
|
|
|
pe_platforms.each do |pe_platform,facts|
|
|
|
|
describe "on #{pe_version} #{pe_platform}" do
|
|
|
|
let(:facts) { facts }
|
2013-09-13 19:13:59 +02:00
|
|
|
|
2014-07-28 07:51:22 +02:00
|
|
|
context 'with defaults' do
|
2014-08-08 21:27:07 +02:00
|
|
|
it { is_expected.not_to contain_class('mysql::bindings') }
|
|
|
|
it { is_expected.to contain_package('mysql_client') }
|
2014-07-28 07:51:22 +02:00
|
|
|
end
|
2013-09-13 19:13:59 +02:00
|
|
|
|
2014-07-28 07:51:22 +02:00
|
|
|
context 'with bindings enabled' do
|
|
|
|
let(:params) {{ :bindings_enable => true }}
|
2013-09-13 19:13:59 +02:00
|
|
|
|
2014-08-08 21:27:07 +02:00
|
|
|
it { is_expected.to contain_class('mysql::bindings') }
|
|
|
|
it { is_expected.to contain_package('mysql_client') }
|
2014-07-28 07:51:22 +02:00
|
|
|
end
|
2014-12-07 09:23:18 +01:00
|
|
|
|
|
|
|
context 'with package_manage set to true' do
|
|
|
|
let(:params) {{ :package_manage => true }}
|
|
|
|
|
|
|
|
it { is_expected.to contain_package('mysql_client') }
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'with package_manage set to false' do
|
|
|
|
let(:params) {{ :package_manage => false }}
|
|
|
|
|
|
|
|
it { is_expected.not_to contain_package('mysql_client') }
|
|
|
|
end
|
|
|
|
|
2014-07-25 20:32:00 +02:00
|
|
|
end
|
|
|
|
end
|
2013-09-13 19:13:59 +02:00
|
|
|
end
|
|
|
|
end
|