Merge "Configure auth_strategy"
This commit is contained in:
commit
a7b7b7f6d4
@ -285,6 +285,7 @@ running as a standalone service, or httpd for being run by a httpd server")
|
|||||||
'DEFAULT/osapi_volume_base_URL': value => $osapi_volume_base_url;
|
'DEFAULT/osapi_volume_base_URL': value => $osapi_volume_base_url;
|
||||||
'DEFAULT/osapi_max_limit': value => $osapi_max_limit;
|
'DEFAULT/osapi_max_limit': value => $osapi_max_limit;
|
||||||
'DEFAULT/osapi_volume_listen_port': value => $osapi_volume_listen_port;
|
'DEFAULT/osapi_volume_listen_port': value => $osapi_volume_listen_port;
|
||||||
|
'DEFAULT/auth_strategy': value => $auth_strategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
cinder_config {
|
cinder_config {
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- auth_strategy will now be configured in cinder.conf
|
||||||
|
with the value passed for cinder::api::auth_strategy
|
@ -52,6 +52,9 @@ describe 'cinder::api' do
|
|||||||
is_expected.to contain_cinder_config('DEFAULT/os_region_name').with(
|
is_expected.to contain_cinder_config('DEFAULT/os_region_name').with(
|
||||||
:value => '<SERVICE DEFAULT>'
|
:value => '<SERVICE DEFAULT>'
|
||||||
)
|
)
|
||||||
|
is_expected.to contain_cinder_config('DEFAULT/auth_strategy').with(
|
||||||
|
:value => 'keystone'
|
||||||
|
)
|
||||||
|
|
||||||
is_expected.to contain_cinder_config('DEFAULT/os_privileged_user_name').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_cinder_config('DEFAULT/os_privileged_user_name').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_cinder_config('DEFAULT/os_privileged_user_password').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_cinder_config('DEFAULT/os_privileged_user_password').with_value('<SERVICE DEFAULT>')
|
||||||
@ -268,6 +271,17 @@ describe 'cinder::api' do
|
|||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'with a custom auth_strategy' do
|
||||||
|
let :params do
|
||||||
|
req_params.merge({'auth_strategy' => 'noauth'})
|
||||||
|
end
|
||||||
|
it 'should configure the auth_strategy to noauth' do
|
||||||
|
is_expected.to contain_cinder_config('DEFAULT/auth_strategy').with(
|
||||||
|
:value => 'noauth'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe 'with a custom osapi_max_limit' do
|
describe 'with a custom osapi_max_limit' do
|
||||||
let :params do
|
let :params do
|
||||||
req_params.merge({'osapi_max_limit' => '10000'})
|
req_params.merge({'osapi_max_limit' => '10000'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user