Sha256: 17b10b532b15eac6615a1bb8879a04a133957fc29512106d670d6f0081c669f4

Contents?: true

Size: 783 Bytes

Versions: 7

Compression:

Stored size: 783 Bytes

Contents

require 'spec_helper_system'

describe 'postgresql::server::config_entry:' do
  after :all do
    # Cleanup after tests have ran
    puppet_apply("class { 'postgresql::server': ensure => absent }") do |r|
      r.exit_code.should_not == 1
    end
  end

  it 'should change setting and reflect it in show all' do
    pp = <<-EOS.unindent
      class { 'postgresql::server': }

      postgresql::server::config_entry { 'check_function_bodies':
        value => 'off',
      }
    EOS

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

    psql('--command="show all" postgres') do |r|
      r.stdout.should =~ /check_function_bodies.+off/
      r.stderr.should be_empty
      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/server/config_entry_spec.rb
freighthop-0.3.2 modules/postgresql/spec/system/server/config_entry_spec.rb
freighthop-0.3.1 modules/postgresql/spec/system/server/config_entry_spec.rb
freighthop-0.3.0 modules/postgresql/spec/system/server/config_entry_spec.rb
freighthop-0.2.1 modules/postgresql/spec/system/server/config_entry_spec.rb
freighthop-0.2.0 modules/postgresql/spec/system/server/config_entry_spec.rb
freighthop-0.1.0 modules/postgresql/spec/system/server/config_entry_spec.rb