Support [barbican_rbac_scope_verification] enforce_scope
barbican-tempest-plugin provides the option to enforce scope check in policy. Change-Id: I7aef09121dd5dafee4a6e259fcf0406934fbcbc8
This commit is contained in:
parent
d39407a85e
commit
c9ef36444a
@ -187,6 +187,8 @@
|
||||
# Defaults to false
|
||||
# [*manila_available*]
|
||||
# Defaults to false
|
||||
# [*barbican_enforce_scope*]
|
||||
# Defaults to $facts['os_service_default']
|
||||
# [*cinder_enforce_scope*]
|
||||
# Defaults to $facts['os_service_default']
|
||||
# [*glance_enforce_scope*]
|
||||
@ -439,6 +441,7 @@ class tempest(
|
||||
Boolean $octavia_available = false,
|
||||
Boolean $barbican_available = false,
|
||||
Boolean $manila_available = false,
|
||||
$barbican_enforce_scope = $facts['os_service_default'],
|
||||
$cinder_enforce_scope = $facts['os_service_default'],
|
||||
$glance_enforce_scope = $facts['os_service_default'],
|
||||
$keystone_enforce_scope = $facts['os_service_default'],
|
||||
@ -668,6 +671,7 @@ class tempest(
|
||||
'service_available/zaqar': value => $zaqar_available;
|
||||
'service_available/ec2api': value => $ec2api_available;
|
||||
'service_available/octavia': value => $octavia_available;
|
||||
'barbican_rbac_scope_verification/enforce_scope': value => $barbican_enforce_scope;
|
||||
'enforce_scope/cinder': value => $cinder_enforce_scope;
|
||||
'enforce_scope/designate': value => $designate_enforce_scope;
|
||||
'enforce_scope/glance': value => $glance_enforce_scope;
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``tempest::barbican_enforce_scope`` parameter has been added.
|
@ -318,6 +318,7 @@ describe 'tempest' do
|
||||
is_expected.to contain_tempest_config('service_available/octavia').with(:value => false)
|
||||
is_expected.to contain_tempest_config('service_available/barbican').with(:value => false)
|
||||
is_expected.to contain_tempest_config('service_available/manila').with(:value => false)
|
||||
is_expected.to contain_tempest_config('barbican_rbac_scope_verification/enforce_scope').with(:value => '<SERVICE DEFAULT>')
|
||||
is_expected.to contain_tempest_config('enforce_scope/cinder').with(:value => '<SERVICE DEFAULT>')
|
||||
is_expected.to contain_tempest_config('enforce_scope/glance').with(:value => '<SERVICE DEFAULT>')
|
||||
is_expected.to contain_tempest_config('enforce_scope/keystone').with(:value => '<SERVICE DEFAULT>')
|
||||
|
Loading…
Reference in New Issue
Block a user