Allow for specification of package version for nova client package.
This commit is contained in:
parent
7af9469f6b
commit
7c836ea985
|
@ -1,9 +1,9 @@
|
|||
class nova::client(
|
||||
|
||||
$ensure = 'present',
|
||||
) {
|
||||
|
||||
package { 'python-novaclient':
|
||||
ensure => present,
|
||||
ensure => $ensure,
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,4 +2,11 @@ require 'spec_helper'
|
|||
|
||||
describe 'nova::client' do
|
||||
it { should contain_package('python-novaclient').with_ensure('present') }
|
||||
describe "with specified version" do
|
||||
let :params do
|
||||
{:ensure => '2012.1-2'}
|
||||
end
|
||||
|
||||
it { should contain_package('python-novaclient').with_ensure('2012.1-2') }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue