tablespace_spec.rb 710 B

1234567891011121314151617181920212223242526272829
  1. require 'spec_helper_acceptance'
  2. describe 'tablespace' do
  3. context 'with size and datafile' do
  4. # Using puppet_apply as a helper
  5. it 'should work with no errors' do
  6. pp = <<-EOS
  7. tablespace {'test':
  8. size => 10M,
  9. datafile => 'test.dbf'
  10. }
  11. EOS
  12. # Run it twice and test for idempotency
  13. expect(apply_manifest(pp,:catch_failures => true).exit_code).to_not eq(1)
  14. expect(apply_manifest(pp,:catch_failures => true).exit_code).to eq(0)
  15. end
  16. # describe package('oracle') do
  17. # it { should be_installed }
  18. # end
  19. # describe service('oracle') do
  20. # it { should be_enabled }
  21. # it { should be_running }
  22. # end
  23. end
  24. end