forked from puppetlabs/puppetlabs-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmysql_client_spec.rb
35 lines (27 loc) · 962 Bytes
/
mysql_client_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'spec_helper'
describe 'mysql::client' do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts.merge(root_home: '/root')
end
context 'with defaults' do
it { is_expected.not_to contain_class('mysql::bindings') }
it { is_expected.to contain_package('mysql_client') }
end
context 'with bindings enabled' do
let(:params) { { bindings_enable: true } }
it { is_expected.to contain_class('mysql::bindings') }
it { is_expected.to contain_package('mysql_client') }
end
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
end
end
end