Update spec tests

This commit updates the spec tests so that they should work.

- the ssh module that they depend on had introduced a dependency on
  the operatingsystem fact
- tests had not been updated to reflect using xinetd and not the service
to run the rsync daemon
- update travis-ci to include the xinetd module
This commit is contained in:
Dan Bode
2012-03-13 16:30:19 -07:00
parent cb233bd6a1
commit f07363b6af
10 changed files with 42 additions and 11 deletions

View File

@@ -5,6 +5,10 @@ describe 'swift::storage::generic' do
'account'
end
let :facts do
{:operatingsystem => 'Ubuntu'}
end
let :pre_condition do
"class { 'ssh::server::install': }
class { 'swift': swift_hash_suffix => 'foo' }
@@ -46,8 +50,7 @@ describe 'swift::storage::generic' do
:ensure => 'running',
:enable => true,
:hasstatus => true,
:provider => param_hash[:service_provider],
:subscribe => 'Service[rsync]'
:provider => param_hash[:service_provider]
)}
it { should contain_file("/etc/swift/#{t}-server/").with(
:ensure => 'directory',