2013-06-05 13:06:05 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'keystone::client' do
|
|
|
|
|
|
|
|
describe "with default parameters" do
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to contain_package('python-keystoneclient').with(
|
2015-02-05 20:26:43 -07:00
|
|
|
'ensure' => 'present',
|
|
|
|
'tag' => 'openstack'
|
|
|
|
) }
|
2015-08-06 17:41:01 +03:00
|
|
|
it { is_expected.to contain_package('python-openstackclient').with(
|
|
|
|
'ensure' => 'present',
|
|
|
|
'tag' => 'openstack',
|
|
|
|
) }
|
2013-06-05 13:06:05 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
describe "with specified version" do
|
|
|
|
let :params do
|
|
|
|
{:ensure => '2013.1'}
|
|
|
|
end
|
|
|
|
|
2015-03-15 16:32:35 +01:00
|
|
|
it { is_expected.to contain_package('python-keystoneclient').with(
|
2015-02-05 20:26:43 -07:00
|
|
|
'ensure' => '2013.1',
|
|
|
|
'tag' => 'openstack'
|
|
|
|
) }
|
2013-06-05 13:06:05 -04:00
|
|
|
end
|
|
|
|
end
|