Sha256: e701467ec637092efd03982db56a8e65206d9e3ad7af5d063e420a4fa5e9c8f9

Contents?: true

Size: 736 Bytes

Versions: 7

Compression:

Stored size: 736 Bytes

Contents

require 'spec_helper'

describe 'postgresql::server::initdb', :type => :class do
  let (:pre_condition) do
    "include postgresql::server"
  end
  describe 'on RedHat' do
    let :facts do
      {
        :osfamily => 'RedHat',
        :operatingsystem => 'CentOS',
        :operatingsystemrelease => '6.0',
        :concat_basedir => tmpfilename('server'),
      }
    end
    it { should contain_file('/var/lib/pgsql/data').with_ensure('directory') }
  end
  describe 'on Amazon' do
    let :facts do
      {
        :osfamily => 'RedHat',
        :operatingsystem => 'Amazon',
        :concat_basedir => tmpfilename('server'),
      }
    end
    it { should contain_file('/var/lib/pgsql9/data').with_ensure('directory') }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
freighthop-0.3.3 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.3.2 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.3.1 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.3.0 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.2.1 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.2.0 modules/postgresql/spec/unit/classes/server/initdb_spec.rb
freighthop-0.1.0 modules/postgresql/spec/unit/classes/server/initdb_spec.rb