puppet-swift/spec/classes/swift_client_spec.rb
Sebastien Badia 21f9eff35c Add client_package_ensure parameter and swift::client class
In the actual state of the manifest we can only setup package_ensure to
absent|present|latest. This commit allow end users to pin swift* and
swift-client to a specific version. (note that swift* and
python-swiftclient version are not the same).

A new class (swift::client) manage now client packages, and we keep the
retro-compatibility of commit 020b7723cbbe75fbcae89514a1e1882ae807fb27.

Change-Id: I9bcc5a0f9d0a93a812fb574c4571fb9584077e4a
2014-03-06 02:09:52 +01:00

17 lines
355 B
Ruby

require 'spec_helper'
describe 'swift::client' do
describe "with default parameters" do
it { should contain_package('swiftclient').with_ensure('present') }
end
describe "with specified version" do
let :params do
{:ensure => '2.0.2-1'}
end
it { should contain_package('swiftclient').with_ensure(params[:ensure]) }
end
end