class_spec.rb 482 B

12345678910111213141516171819202122
  1. require 'spec_helper_acceptance'
  2. describe 'ceph class' do
  3. context 'default parameters' do
  4. # Using puppet_apply as a helper
  5. it 'should work idempotently with no errors' do
  6. pp = <<-EOS
  7. class { 'ceph': }
  8. EOS
  9. # Run it twice and test for idempotency
  10. apply_manifest(pp, :catch_failures => true)
  11. apply_manifest(pp, :catch_changes => true)
  12. end
  13. describe package('ceph') do
  14. it { is_expected.to be_installed }
  15. end
  16. end
  17. end