Merge pull request #339 from jhoblitt/rspec-puppet-fixes
Rspec puppet fixes
This commit is contained in:
commit
9ebf893a0a
7 changed files with 10 additions and 9 deletions
1
Gemfile
1
Gemfile
|
@ -3,6 +3,7 @@ source 'https://rubygems.org'
|
|||
group :development, :test do
|
||||
gem 'rake'
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
gem 'rspec-puppet', '< 1.0'
|
||||
gem 'rspec-system-puppet', '~>2.0'
|
||||
gem 'rspec-system-serverspec', '~>1.0'
|
||||
gem 'puppet-lint', '~> 0.3.2'
|
||||
|
|
|
@ -11,7 +11,7 @@ describe 'postgresql::globals', :type => :class do
|
|||
|
||||
describe 'with no parameters' do
|
||||
it 'should work' do
|
||||
should include_class("postgresql::globals")
|
||||
should contain_class("postgresql::globals")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -22,7 +22,7 @@ describe 'postgresql::globals', :type => :class do
|
|||
}
|
||||
end
|
||||
it 'should pull in class postgresql::repo' do
|
||||
should include_class("postgresql::repo")
|
||||
should contain_class("postgresql::repo")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,5 +8,5 @@ describe 'postgresql::lib::devel', :type => :class do
|
|||
:operatingsystemrelease => '6.0',
|
||||
}
|
||||
end
|
||||
it { should include_class("postgresql::lib::devel") }
|
||||
it { should contain_class("postgresql::lib::devel") }
|
||||
end
|
||||
|
|
|
@ -8,5 +8,5 @@ describe 'postgresql::params', :type => :class do
|
|||
:operatingsystemrelease => '6.0',
|
||||
}
|
||||
end
|
||||
it { should include_class("postgresql::params") }
|
||||
it { should contain_class("postgresql::params") }
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ describe 'postgresql::repo', :type => :class do
|
|||
|
||||
describe 'with no parameters' do
|
||||
it 'should instantiate apt_postgresql_org class' do
|
||||
should include_class('postgresql::repo::apt_postgresql_org')
|
||||
should contain_class('postgresql::repo::apt_postgresql_org')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ describe 'postgresql::server::plperl', :type => :class do
|
|||
end
|
||||
|
||||
describe 'with no parameters' do
|
||||
it { should include_class("postgresql::server::plperl") }
|
||||
it { should contain_class("postgresql::server::plperl") }
|
||||
it 'should create package' do
|
||||
should contain_package('postgresql-plperl').with({
|
||||
:ensure => 'present',
|
||||
|
@ -33,7 +33,7 @@ describe 'postgresql::server::plperl', :type => :class do
|
|||
}
|
||||
end
|
||||
|
||||
it { should include_class("postgresql::server::plperl") }
|
||||
it { should contain_class("postgresql::server::plperl") }
|
||||
it 'should create package with correct params' do
|
||||
should contain_package('postgresql-plperl').with({
|
||||
:ensure => 'absent',
|
||||
|
|
|
@ -12,8 +12,8 @@ describe 'postgresql::server', :type => :class do
|
|||
end
|
||||
|
||||
describe 'with no parameters' do
|
||||
it { should include_class("postgresql::params") }
|
||||
it { should include_class("postgresql::server") }
|
||||
it { should contain_class("postgresql::params") }
|
||||
it { should contain_class("postgresql::server") }
|
||||
it 'should validate connection' do
|
||||
should contain_postgresql__validate_db_connection('validate_service_is_running')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue