Cleans up the keystone manifest
This patch makes the following changes to the keystone auth manifest: * Fixes the tenant variable in the Keystone_user_role notification * Modifies the tests to account for the above point Change-Id: I94716b165750f0a89112028608b78ff6712c54de
This commit is contained in:
parent
2bcd52f426
commit
e8b669553d
@ -14,7 +14,7 @@ class quantum::keystone::auth (
|
||||
$region = 'RegionOne'
|
||||
) {
|
||||
|
||||
Keystone_user_role["${auth_name}@services"] ~> Service <| name == 'quantum-server' |>
|
||||
Keystone_user_role["${auth_name}@${tenant}"] ~> Service <| name == 'quantum-server' |>
|
||||
|
||||
if ! $public_port {
|
||||
$real_public_port = $port
|
||||
|
@ -5,16 +5,18 @@ describe 'quantum::keystone::auth' do
|
||||
describe 'with default class parameters' do
|
||||
let :params do
|
||||
{
|
||||
:password => 'quantum_password'
|
||||
:password => 'quantum_password',
|
||||
:tenant => 'foobar'
|
||||
}
|
||||
end
|
||||
|
||||
it { should contain_keystone_user('quantum').with(
|
||||
:ensure => 'present',
|
||||
:password => 'quantum_password'
|
||||
:password => 'quantum_password',
|
||||
:tenant => 'foobar'
|
||||
) }
|
||||
|
||||
it { should contain_keystone_user_role('quantum@services').with(
|
||||
it { should contain_keystone_user_role('quantum@foobar').with(
|
||||
:ensure => 'present',
|
||||
:roles => 'admin'
|
||||
)}
|
||||
@ -38,13 +40,13 @@ describe 'quantum::keystone::auth' do
|
||||
|
||||
let :params do
|
||||
{
|
||||
:password => 'quantum_password',
|
||||
:public_protocol => 'https',
|
||||
:public_port => '80',
|
||||
:public_address => '10.10.10.10',
|
||||
:port => '81',
|
||||
:password => 'quantum_password',
|
||||
:public_protocol => 'https',
|
||||
:public_port => '80',
|
||||
:public_address => '10.10.10.10',
|
||||
:port => '81',
|
||||
:internal_address => '10.10.10.11',
|
||||
:admin_address => '10.10.10.12'
|
||||
:admin_address => '10.10.10.12'
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user