File tree 7 files changed +40
-0
lines changed
7 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ class { 'mysql::server': }
43
43
context 'with defaults' do
44
44
let ( :params ) { default_params }
45
45
46
+ it { is_expected . to contain_class ( 'mysql::params' ) }
47
+
46
48
it {
47
49
expect ( subject ) . to contain_cron ( 'mysql-backup' ) . with (
48
50
command : '/usr/local/sbin/mysqlbackup.sh' ,
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class { 'mysql::server': }
25
25
default_params
26
26
end
27
27
28
+ it { is_expected . to contain_class ( 'mysql::params' ) }
29
+
28
30
it 'does not contain the touch command' do
29
31
expect ( subject ) . to contain_file ( 'xtrabackup.sh' ) . without_content (
30
32
%r{(^\s +touch\s +$)} ,
Original file line number Diff line number Diff line change 25
25
}
26
26
end
27
27
28
+ it { is_expected . to contain_class ( 'mysql::params' ) }
29
+
30
+ it { is_expected . to contain_class ( 'mysql::bindings::java' ) }
28
31
it { is_expected . to contain_package ( 'mysql-connector-java' ) }
32
+
33
+ it { is_expected . to contain_class ( 'mysql::bindings::perl' ) }
29
34
it { is_expected . to contain_package ( 'perl_mysql' ) }
35
+
36
+ it { is_expected . to contain_class ( 'mysql::bindings::python' ) }
30
37
it { is_expected . to contain_package ( 'python-mysqldb' ) }
38
+
39
+ it { is_expected . to contain_class ( 'mysql::bindings::ruby' ) }
31
40
it { is_expected . to contain_package ( 'ruby_mysql' ) }
41
+
42
+ it { is_expected . to contain_class ( 'mysql::bindings::php' ) }
43
+ it { is_expected . to contain_package ( 'php-mysql' ) }
44
+
45
+ it { is_expected . to contain_class ( 'mysql::bindings::client_dev' ) }
32
46
it { is_expected . to contain_package ( 'mysql-client_dev' ) }
47
+
48
+ it { is_expected . to contain_class ( 'mysql::bindings::daemon_dev' ) }
33
49
it { is_expected . to contain_package ( 'mysql-daemon_dev' ) }
34
50
end
35
51
end
Original file line number Diff line number Diff line change 10
10
end
11
11
12
12
context 'with defaults' do
13
+ it { is_expected . to contain_class ( 'mysql::params' ) }
14
+ it { is_expected . to contain_class ( 'mysql::client::install' ) }
13
15
it { is_expected . not_to contain_class ( 'mysql::bindings' ) }
14
16
it { is_expected . to contain_package ( 'mysql_client' ) }
15
17
end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe 'mysql::params' do
6
+ on_supported_os . each do |os , facts |
7
+ context "on #{ os } " do
8
+ let ( :facts ) { facts }
9
+
10
+ it { is_expected . to compile }
11
+ end
12
+ end
13
+ end
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ class { 'mysql::server': }
27
27
context 'standard conditions' do
28
28
let ( :params ) { default_params }
29
29
30
+ it { is_expected . to contain_class ( 'mysql::params' ) }
31
+
30
32
# Cannot use that_requires here, doesn't work on classes.
31
33
it {
32
34
expect ( subject ) . to contain_mysql_user ( 'testuser@localhost' ) . with (
Original file line number Diff line number Diff line change 10
10
end
11
11
12
12
context 'with defaults' do
13
+ it { is_expected . to contain_class ( 'mysql::params' ) }
13
14
it { is_expected . to contain_class ( 'mysql::server::install' ) }
14
15
it { is_expected . to contain_class ( 'mysql::server::config' ) }
16
+ it { is_expected . to contain_class ( 'mysql::server::managed_dirs' ) }
17
+ it { is_expected . to contain_class ( 'mysql::server::installdb' ) }
15
18
it { is_expected . to contain_class ( 'mysql::server::service' ) }
16
19
it { is_expected . to contain_class ( 'mysql::server::root_password' ) }
17
20
it { is_expected . to contain_class ( 'mysql::server::providers' ) }
You can’t perform that action at this time.
0 commit comments