File tree Expand file tree Collapse file tree 7 files changed +40
-0
lines changed Expand file tree Collapse file tree 7 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ class { 'mysql::server': }
4343 context 'with defaults' do
4444 let ( :params ) { default_params }
4545
46+ it { is_expected . to contain_class ( 'mysql::params' ) }
47+
4648 it {
4749 expect ( subject ) . to contain_cron ( 'mysql-backup' ) . with (
4850 command : '/usr/local/sbin/mysqlbackup.sh' ,
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ class { 'mysql::server': }
2525 default_params
2626 end
2727
28+ it { is_expected . to contain_class ( 'mysql::params' ) }
29+
2830 it 'does not contain the touch command' do
2931 expect ( subject ) . to contain_file ( 'xtrabackup.sh' ) . without_content (
3032 %r{(^\s +touch\s +$)} ,
Original file line number Diff line number Diff line change 2525 }
2626 end
2727
28+ it { is_expected . to contain_class ( 'mysql::params' ) }
29+
30+ it { is_expected . to contain_class ( 'mysql::bindings::java' ) }
2831 it { is_expected . to contain_package ( 'mysql-connector-java' ) }
32+
33+ it { is_expected . to contain_class ( 'mysql::bindings::perl' ) }
2934 it { is_expected . to contain_package ( 'perl_mysql' ) }
35+
36+ it { is_expected . to contain_class ( 'mysql::bindings::python' ) }
3037 it { is_expected . to contain_package ( 'python-mysqldb' ) }
38+
39+ it { is_expected . to contain_class ( 'mysql::bindings::ruby' ) }
3140 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' ) }
3246 it { is_expected . to contain_package ( 'mysql-client_dev' ) }
47+
48+ it { is_expected . to contain_class ( 'mysql::bindings::daemon_dev' ) }
3349 it { is_expected . to contain_package ( 'mysql-daemon_dev' ) }
3450 end
3551 end
Original file line number Diff line number Diff line change 1010 end
1111
1212 context 'with defaults' do
13+ it { is_expected . to contain_class ( 'mysql::params' ) }
14+ it { is_expected . to contain_class ( 'mysql::client::install' ) }
1315 it { is_expected . not_to contain_class ( 'mysql::bindings' ) }
1416 it { is_expected . to contain_package ( 'mysql_client' ) }
1517 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': }
2727 context 'standard conditions' do
2828 let ( :params ) { default_params }
2929
30+ it { is_expected . to contain_class ( 'mysql::params' ) }
31+
3032 # Cannot use that_requires here, doesn't work on classes.
3133 it {
3234 expect ( subject ) . to contain_mysql_user ( 'testuser@localhost' ) . with (
Original file line number Diff line number Diff line change 1010 end
1111
1212 context 'with defaults' do
13+ it { is_expected . to contain_class ( 'mysql::params' ) }
1314 it { is_expected . to contain_class ( 'mysql::server::install' ) }
1415 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' ) }
1518 it { is_expected . to contain_class ( 'mysql::server::service' ) }
1619 it { is_expected . to contain_class ( 'mysql::server::root_password' ) }
1720 it { is_expected . to contain_class ( 'mysql::server::providers' ) }
You can’t perform that action at this time.
0 commit comments