Skip to content

Commit 95d1f1a

Browse files
committed
removed commented blocks
1 parent 494d829 commit 95d1f1a

File tree

7 files changed

+1
-78
lines changed

7 files changed

+1
-78
lines changed

spec/acceptance/mysql_backup_spec.rb

-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class { 'mysql::server::backup':
3030
MANIFEST
3131
it 'when configuring mysql backups' do
3232
idempotent_apply(default, pp, {})
33-
# execute_manifest(pp, catch_failures: true)
34-
# execute_manifest(pp, catch_failures: true)
3533
end
3634
end
3735

@@ -106,8 +104,6 @@ class { 'mysql::server::backup':
106104
MANIFEST
107105
it 'when configuring mysql backups' do
108106
idempotent_apply(default, pp, {})
109-
# execute_manifest(pp, catch_failures: true)
110-
# execute_manifest(pp, catch_failures: true)
111107
end
112108
end
113109

spec/acceptance/nodesets/test.yml

-37
This file was deleted.

spec/classes/mysql_client_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
describe 'mysql::client' do
44
on_supported_os.each do |os, facts|
5-
# next if facts[:osfamily] == 'Archlinux'
65
context "on #{os}" do
76
let(:facts) do
87
facts.merge(root_home: '/root')

spec/defines/mysql_db_spec.rb

-12
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
# 'if enforcing #command'
3838
is_expected.to contain_exec('test_db-import').with_command('cat test_sql | mysql test_db')
3939
end
40-
# it 'imports sql script on creation if enforcing #command' do
41-
# params.merge!('sql' => 'test_sql', 'enforce_sql' => true)
42-
# is_expected.to contain_exec('test_db-import').with_command('cat test_sql | mysql test_db')
43-
# end
4440

4541
it 'imports sql script with custom command on creation ' do
4642
params.merge!('sql' => 'test_sql', 'enforce_sql' => true, 'import_cat_cmd' => 'zcat')
@@ -49,10 +45,6 @@
4945
# if enforcing #command
5046
is_expected.to contain_exec('test_db-import').with_command('zcat test_sql | mysql test_db')
5147
end
52-
# it 'imports sql script with custom command on creation if enforcing #command' do
53-
# params.merge!('sql' => 'test_sql', 'enforce_sql' => true, 'import_cat_cmd' => 'zcat')
54-
# is_expected.to contain_exec('test_db-import').with_command('zcat test_sql | mysql test_db')
55-
# end
5648

5749
it 'imports sql scripts when more than one is specified' do
5850
params['sql'] = ['test_sql', 'test_2_sql']
@@ -64,10 +56,6 @@
6456
is_expected.to contain_mysql_database('test_db').with_ensure('absent')
6557
is_expected.to contain_mysql_user('testuser@localhost').with_ensure('absent')
6658
end
67-
# it 'does not create database user' do
68-
# params.merge!('ensure' => 'absent', 'host' => 'localhost')
69-
# is_expected.to contain_mysql_user('testuser@localhost').with_ensure('absent')
70-
# end
7159

7260
it 'creates with an appropriate collate and charset' do
7361
params.merge!('charset' => 'utf8', 'collate' => 'utf8_danish_ci')

spec/spec_helper_acceptance.rb

-21
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,6 @@ def idempotent_apply(hosts, manifest, opts = {}, &block)
4343
# Configure all nodes in nodeset
4444
c.before :suite do
4545
run_puppet_access_login(user: 'admin') if pe_install? && (Gem::Version.new(puppet_version) >= Gem::Version.new('5.0.0'))
46-
# hosts.each do |host|
47-
# # This will be removed, this is temporary to test localisation.
48-
# if (fact('osfamily') == 'Debian' || fact('osfamily') == 'RedHat') &&
49-
# (Gem::Version.new(puppet_version) >= Gem::Version.new('4.10.5') &&
50-
# Gem::Version.new(puppet_version) < Gem::Version.new('5.2.0'))
51-
# on(host, 'mkdir /opt/puppetlabs/puppet/share/locale/ja')
52-
# on(host, 'touch /opt/puppetlabs/puppet/share/locale/ja/puppet.po')
53-
# end
54-
# if fact('osfamily') == 'Debian'
55-
# # install language on debian systems
56-
# install_language_on(host, 'ja_JP.utf-8') if not_controller(host)
57-
# # This will be removed, this is temporary to test localisation.
58-
# end
59-
# # Required for binding tests.
60-
# if fact('osfamily') == 'RedHat'
61-
# if fact('operatingsystemmajrelease') =~ %r{7} || fact('operatingsystem') =~ %r{Fedora}
62-
# shell('yum install -y bzip2')
63-
# end
64-
# end
65-
# on host, puppet('module', 'install', 'stahnma/epel')
66-
# end
6746
end
6847
end
6948

spec/unit/facter/mysql_server_id_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
context 'node with lo only' do
1919
before :each do
2020
Facter.fact(:macaddress).stubs(:value).returns('00:00:00:00:00:00')
21-
Facter.fact(:macaddress).stubs(:value).returns('00:00:00:00:00:00')
2221
end
2322
it do
2423
Facter.fact(:mysql_server_id).value.to_s.should == '0'

spec/unit/facter/mysql_version_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
describe 'mysql_version' do
99
context 'with value' do
1010
before :each do
11-
12-
#Facter::Util::Resolution.stubs(:exec).with('mysql --version').returns('mysql Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (x86_64) using readline 5.1')
11+
Facter::Util::Resolution.stubs(:exec).with('mysql --version').returns('mysql Ver 14.12 Distrib 5.0.95, for redhat-linux-gnu (x86_64) using readline 5.1')
1312
end
1413
it {
1514
expect(Facter.fact(:mysql_version).value).to eq('5.0.95')

0 commit comments

Comments
 (0)