Sha256: d3ce6e8acfc5d3ac8b73e9f005f9f30004ffa0ed39591819c317aff0bfc43e78

Contents?: true

Size: 818 Bytes

Versions: 14

Compression:

Stored size: 818 Bytes

Contents

require 'spec_helper'

describe 'postgresql::validate_db_connection', :type => :define do
  let :facts do
    {
      :osfamily => 'Debian',
      :operatingsystem => 'Debian',
      :operatingsystemrelease => '6.0',
    }
  end

  let :title do
    'test'
  end

  describe 'should work with only default parameters' do
    it { should contain_postgresql__validate_db_connection('test') }
  end

  describe 'should work with all parameters' do
    let :params do
      {
        :database_host => 'test',
        :database_name => 'test',
        :database_password => 'test',
        :database_username => 'test',
        :database_port => 5432,
        :run_as => 'postgresq',
        :sleep => 4,
        :tries => 30,
      }
    end
    it { should contain_postgresql__validate_db_connection('test') }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.6.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.5.2 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.5.1 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.5.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.4.1 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.4.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.3.3 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.3.2 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.3.1 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.3.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.2.1 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.2.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb
freighthop-0.1.0 modules/postgresql/spec/unit/defines/validate_db_connection_spec.rb