Mercurial > repos > other > Puppet
annotate modules/mysql/spec/classes/mysql_server_monitor_spec.rb @ 244:48d3a1948e4d
Update MySQL module
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Dec 2019 14:11:43 -0500 |
parents | 58d1818c2ded |
children |
rev | line source |
---|---|
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 require 'spec_helper' |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 describe 'mysql::server::monitor' do |
244 | 3 on_supported_os.each do |os, facts| |
4 context "on #{os}" do | |
5 let(:facts) do | |
6 facts.merge(root_home: '/root') | |
7 end | |
8 | |
9 let :pre_condition do | |
10 "include 'mysql::server'" | |
11 end | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 |
244 | 13 let :default_params do |
14 { | |
15 mysql_monitor_username: 'monitoruser', | |
16 mysql_monitor_password: 'monitorpass', | |
17 mysql_monitor_hostname: 'monitorhost', | |
18 } | |
19 end | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 |
244 | 21 let :params do |
22 default_params | |
23 end | |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 |
244 | 25 it { is_expected.to contain_mysql_user('monitoruser@monitorhost') } |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 |
244 | 27 it { |
28 is_expected.to contain_mysql_grant('monitoruser@monitorhost/*.*').with( | |
29 ensure: 'present', user: 'monitoruser@monitorhost', | |
30 table: '*.*', privileges: ['PROCESS', 'SUPER'], | |
31 require: 'Mysql_user[monitoruser@monitorhost]' | |
32 ) | |
33 } | |
26
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
34 end |
58d1818c2ded
Update MySQL module (which adds "staging" module)
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
35 end |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
36 end |