(maint) Fix the specs due to changes to backup.

This commit is contained in:
Ashley Penney 2014-02-11 17:10:35 -05:00
parent aefbf567c5
commit eee60088dd
4 changed files with 9 additions and 8 deletions

View file

@ -29,7 +29,6 @@ describe 'mysql::server::backup class' do
end
apply_manifest(pp, :catch_failures => true) do |r|
expect(r.stderr).to eq("")
expect(r.exit_code).to be_zero
end
end
end

View file

@ -97,9 +97,13 @@ describe 'mysql::bindings class' do
it { should be_installed }
end
# This package is not available out of the box and adding in other repos
# is a bit much for the scope of this test.
unless fact('osfamily') == 'RedHat'
describe package(php_package) do
it { should be_installed }
end
end
describe package(python_package) do
it { should be_installed }

View file

@ -14,10 +14,8 @@ describe 'mysql::db define' do
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
end
apply_manifest(pp, :catch_changes => true)
it 'should have the database' do
expect(shell("mysql -e 'show databases;'|grep spec1").exit_code).to be_zero
end
end
@ -41,7 +39,7 @@ describe 'mysql::db define' do
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
apply_manifest(pp, :catch_changes => true)
end
it 'should have the table' do

View file

@ -254,7 +254,7 @@ describe 'mysql_grant' do
EOS
apply_manifest(pp, :catch_failures => true)
expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
apply_manifest(pp, :catch_changes => true)
end
end