Mercurial > repos > other > Puppet
view modules/mysql/spec/classes/mysql_server_mysqltuner_spec.rb @ 220:ccc13f56f8ec puppet-3.6
Blacklist lots more users from SSH probes
Includes the german for "web page"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Sep 2019 10:34:43 +0100 |
parents | 58d1818c2ded |
children | 48d3a1948e4d |
line wrap: on
line source
require 'spec_helper' describe 'mysql::server::mysqltuner' do 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 } context 'ensure => present' do it { is_expected.to compile } it { is_expected.to contain_staging__file('mysqltuner-v1.3.0').with({ :source => 'https://github.com/major/MySQLTuner-perl/raw/v1.3.0/mysqltuner.pl', }) } end context 'ensure => absent' do let(:params) {{ :ensure => 'absent' }} it { is_expected.to compile } it { is_expected.to contain_file('/usr/local/bin/mysqltuner').with(:ensure => 'absent') } end context 'custom version' do let(:params) {{ :version => 'v1.2.0' }} it { is_expected.to compile } it { is_expected.to contain_staging__file('mysqltuner-v1.2.0').with({ :source => 'https://github.com/major/MySQLTuner-perl/raw/v1.2.0/mysqltuner.pl', }) } end context 'custom source' do let(:params) {{ :source => '/tmp/foo' }} it { is_expected.to compile } it { is_expected.to contain_staging__file('mysqltuner-/tmp/foo').with({ :source => '/tmp/foo', }) } end end end end end