Skip to content

Commit 31191b6

Browse files
committed
Merge pull request #604 from mhaskel/rebase_581
Fixed test classes
2 parents b7feb95 + 473a3c3 commit 31191b6

File tree

11 files changed

+18
-27
lines changed

11 files changed

+18
-27
lines changed

manifests/bindings.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535

3636
case $::osfamily {
3737
'Archlinux': {
38-
if $java_enable { fatal("::mysql::bindings::java cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable java mysql binding.") }
38+
if $java_enable { fail("::mysql::bindings::java cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable java mysql binding.") }
3939
if $perl_enable { include '::mysql::bindings::perl' }
40-
if $php_enable { warn("::mysql::bindings::php does not need to be managed by puppet on ${::osfamily} as it is included in mysql package by default.") }
40+
if $php_enable { warning("::mysql::bindings::php does not need to be managed by puppet on ${::osfamily} as it is included in mysql package by default.") }
4141
if $python_enable { include '::mysql::bindings::python' }
42-
if $ruby_enable { fatal("::mysql::bindings::ruby cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable ruby mysql binding.") }
42+
if $ruby_enable { fail("::mysql::bindings::ruby cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable ruby mysql binding.") }
4343
}
4444

4545
default: {

tests/backup.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
class { 'mysql::server':
2-
config_hash => {'root_password' => 'password'}
2+
root_password => 'password'
33
}
4-
class { 'mysql::backup':
4+
5+
class { 'mysql::server::backup':
56
backupuser => 'myuser',
67
backuppassword => 'mypassword',
78
backupdir => '/tmp/backups',

tests/bindings.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class { 'mysql::bindings':
2-
php_enable => 'true',
2+
php_enable => true,
33
}

tests/mysql_database.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
class { 'mysql::server':
2-
config_hash => {'root_password' => 'password'}
2+
root_password => 'password'
33
}
4-
database{ ['test1', 'test2', 'test3']:
4+
mysql::db{ ['test1', 'test2', 'test3']:
55
ensure => present,
66
charset => 'utf8',
77
require => Class['mysql::server'],
88
}
9-
database{ 'test4':
9+
mysql::db{ 'test4':
1010
ensure => present,
1111
charset => 'latin1',
1212
}
13-
database{ 'test5':
13+
mysql::db{ 'test5':
1414
ensure => present,
1515
charset => 'binary',
1616
collate => 'binary',

tests/mysql_db.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class { 'mysql::server':
2-
config_hash => {'root_password' => 'password'}
2+
root_password => 'password'
33
}
44
mysql::db { 'mydb':
55
user => 'myuser',

tests/mysql_user.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
$mysql_root_pw = 'password'
22

33
class { 'mysql::server':
4-
config_hash => {
5-
root_password => 'password',
6-
}
4+
root_password => 'password',
75
}
86

97
mysql_user{ 'redmine@localhost':

tests/perl.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include mysql::perl
1+
include mysql::bindings::perl

tests/python.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class { 'mysql::python':}
1+
class { 'mysql::bindings::python':}

tests/ruby.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include mysql::ruby
1+
include mysql::bindings::ruby

tests/server/account_security.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class { 'mysql::server':
2-
config_hash => { 'root_password' => 'password', },
2+
root_password => 'password',
33
}
44
class { 'mysql::server::account_security': }

tests/server/config.pp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
mysql::server::config { 'testfile':
2-
settings => {
3-
'mysqld' => {
4-
'bind-address' => '0.0.0.0',
5-
'read-only' => true,
6-
},
7-
'client' => {
8-
'port' => '3306'
9-
}
10-
}
2+
113
}

0 commit comments

Comments
 (0)