puppet-swift/spec/classes/swift_client_spec.rb
David Moreau Simard 2c6261251c Include swift::params in swift::client
Otherwise swift::client can't fetch the name of the package by itself
if swift::params doesn't happen to be in the catalog.

Change-Id: I3d15d0ce68ca084eb4573764b05e8723befbd7e7
2014-05-28 17:53:43 -04:00

21 lines
434 B
Ruby

require 'spec_helper'
describe 'swift::client' do
it { should contain_package('swiftclient').with(
:ensure => 'present',
:name => 'python-swiftclient'
)}
let :facts do
{:osfamily => 'Debian'}
end
context 'with params' do
let :params do
{:ensure => 'latest'}
end
it { should contain_package('swiftclient').with(
:ensure => 'latest',
:name => 'python-swiftclient'
)}
end
end