
Switch keystone_authtoken parameters for the new class heat::keystone::authtoken to configure the keystone_authtoken section in heat.conf. Some deprecations: - heat::auth_uri is deprecated in favor of heat::keystone::authtoken::auth_uri. - heat::identity_uri is deprecated in favor of heat::keystone::authtoken::auth_url. - heat::auth_plugin is deprecated in favor of heat::keystone::authtoken::auth_type. - heat::keystone_user is deprecated in favor of heat::keystone::authtoken::username. - heat::keystone_tenant is deprecated in favor of heat::keystone::authtoken::project_name. - heat::keystone_password is deprecated in favor of heat::keystone::authtoken::password. - heat::keystone_user_domain_name is deprecated in favor of heat::keystone::authtoken::user_domain_name. - heat::keystone_user_domain_id is deprecated, use the name option. - heat::keystone_project_domain_name is deprecated in favor of heat::keystone::authtoken::project_domain_name. - heat::keystone_project_domain_id is deprecated, use the name option. - heat::memcached_servers is deprecated in favor of heat::keystone::authtoken::memcached_servers. Change-Id: I466558e98176f20743271191df64dc327f0efcc6 Closes-bug: #1604463
46 lines
987 B
Ruby
46 lines
987 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'heat::db::postgresql' do
|
|
shared_examples_for 'heat::db::postgresql' do
|
|
let :req_params do
|
|
{ :password => 'pw' }
|
|
end
|
|
|
|
let :pre_condition do
|
|
"include ::postgresql::server
|
|
class { '::heat::keystone::authtoken':
|
|
password => 'password',
|
|
}
|
|
include ::heat"
|
|
end
|
|
|
|
context 'with only required parameters' do
|
|
let :params do
|
|
req_params
|
|
end
|
|
|
|
it { is_expected.to contain_postgresql__server__db('heat').with(
|
|
:user => 'heat',
|
|
:password => 'md5fd5c4fca491370aab732f903e2fb7c99'
|
|
)}
|
|
end
|
|
|
|
end
|
|
|
|
on_supported_os({
|
|
:supported_os => OSDefaults.get_supported_os
|
|
}).each do |os,facts|
|
|
context "on #{os}" do
|
|
let (:facts) do
|
|
facts.merge(OSDefaults.get_facts({
|
|
:processorcount => 8,
|
|
:concat_basedir => '/var/lib/puppet/concat'
|
|
}))
|
|
end
|
|
|
|
it_configures 'heat::db::postgresql'
|
|
end
|
|
end
|
|
|
|
end
|