Sha256: 179e7f6f6b4383df971336cfada245baf0602c43d69fb2e3674fadd93badbb00

Contents?: true

Size: 766 Bytes

Versions: 7

Compression:

Stored size: 766 Bytes

Contents

require 'spec_helper_system'

describe 'postgresql::server::contrib:' do
  after :all do
    # Cleanup after tests have ran, remove both contrib and server as contrib
    # pulls in the server based packages.
    pp = <<-EOS.unindent
      class { 'postgresql::server':
        ensure => absent,
      }
      class { 'postgresql::server::contrib':
        package_ensure => purged,
      }
    EOS

    puppet_apply(pp) do |r|
      r.exit_code.should_not == 1
    end
  end

  it 'test loading class with no parameters' do
    pp = <<-EOS.unindent
      class { 'postgresql::server': }
      class { 'postgresql::server::contrib': }
    EOS

    puppet_apply(pp) do |r|
      r.exit_code.should == 2
      r.refresh
      r.exit_code.should == 0
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
freighthop-0.3.3 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.3.2 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.3.1 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.3.0 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.2.1 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.2.0 modules/postgresql/spec/system/contrib_spec.rb
freighthop-0.1.0 modules/postgresql/spec/system/contrib_spec.rb