
Overriding service_provider was an hack and should not exist in any module. Puppet is by itself able to find which Service provider to use. If you want to override it for any reason, please use a Puppet resource collector, using keystone-service resource tag. This patch deprecates the service_provider parameter and drop its usage, so puppet-keystone can easily work on more systems, (ie: Ubuntu Xenial with Systemd). Change-Id: I661319aa83676880a83f3ecfc00e9a803524c7cf
31 lines
709 B
Ruby
31 lines
709 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'keystone::client' do
|
|
|
|
let :facts do
|
|
@default_facts.merge({ :osfamily => 'Debian' })
|
|
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
|