Skip to content

Commit

Permalink
Merge pull request #455 from apenney/fix-uninstall-logic
Browse files Browse the repository at this point in the history
Fix this test for Debian.  This is a total hack for now.
  • Loading branch information
Ashley Penney committed Feb 19, 2014
2 parents 84fc716 + f107531 commit 64163db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/acceptance/mysql_server_root_password_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,14 @@ class { 'mysql::server': root_password => 'new', old_root_password => 'test' }
end
end
end

# Debian relies on a debian-sys-maint@ account to do almost everything.
# Without recreating this account we can't even stop the service in future
# tests.
if fact('osfamily') == 'Debian'
describe 'readd debian user' do
it 'readds the user' do
shell("MYSQL_PASSWORD=`head -5 /etc/mysql/debian.cnf | grep password | cut -d' ' -f 3`; mysql -NBe \"GRANT ALL PRIVILEGES ON *.* to 'debian-sys-maint'@'localhost' IDENTIFIED BY '${MYSQL_PASSWORD}' WITH GRANT OPTION;\"")
end
end
end

0 comments on commit 64163db

Please sign in to comment.