yatin
898ecc11f0
Fedora repo [1] has python3 packages, start consuming those. [1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/ Change-Id: Id15a40384286a825f65658bdb1ad924a917d9031
34 lines
832 B
Ruby
34 lines
832 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'keystone::client' do
|
|
|
|
let :facts do
|
|
@default_facts.merge({
|
|
:osfamily => 'Debian',
|
|
:os => { :name => 'Debian', :family => 'Debian', :release => { :major => '8', :minor => '0' } },
|
|
})
|
|
end
|
|
|
|
describe "with default parameters" do
|
|
it { is_expected.to contain_package('python-keystoneclient').with(
|
|
'ensure' => 'present',
|
|
'tag' => 'openstack'
|
|
) }
|
|
it { is_expected.to contain_package('python-openstackclient').with(
|
|
'ensure' => 'present',
|
|
'tag' => 'openstack',
|
|
) }
|
|
end
|
|
|
|
describe "with specified version" do
|
|
let :params do
|
|
{:ensure => '2013.1'}
|
|
end
|
|
|
|
it { is_expected.to contain_package('python-keystoneclient').with(
|
|
'ensure' => '2013.1',
|
|
'tag' => 'openstack'
|
|
) }
|
|
end
|
|
end
|