Use new "service" role instead of "admin"
Change-Id: I410f260b6d522b8d28817f91f6103ab989859b0e Partial-Bug: #1436050
This commit is contained in:
@@ -52,7 +52,7 @@ default['openstack']['network']['rabbit_server_chef_role'] = 'rabbitmq-server'
|
|||||||
# Used in the Keystone authtoken middleware configuration
|
# Used in the Keystone authtoken middleware configuration
|
||||||
default['openstack']['network']['service_tenant_name'] = 'service'
|
default['openstack']['network']['service_tenant_name'] = 'service'
|
||||||
default['openstack']['network']['service_user'] = 'neutron'
|
default['openstack']['network']['service_user'] = 'neutron'
|
||||||
default['openstack']['network']['service_role'] = 'admin'
|
default['openstack']['network']['service_role'] = 'service'
|
||||||
|
|
||||||
# Number of separate worker processes to spawn. The default, 0, runs the
|
# Number of separate worker processes to spawn. The default, 0, runs the
|
||||||
# worker thread in the current process. Greater than 0 launches that number of
|
# worker thread in the current process. Greater than 0 launches that number of
|
||||||
|
|||||||
@@ -163,14 +163,14 @@ describe 'openstack-network::identity_registration' do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'grants admin role to service user for service tenant' do
|
it 'grants service role to service user for service tenant' do
|
||||||
expect(chef_run).to grant_role_openstack_identity_register(
|
expect(chef_run).to grant_role_openstack_identity_register(
|
||||||
"Grant 'admin' Role to neutron User for service Tenant"
|
"Grant 'service' Role to neutron User for service Tenant"
|
||||||
).with(
|
).with(
|
||||||
auth_uri: 'http://127.0.0.1:35357/v2.0',
|
auth_uri: 'http://127.0.0.1:35357/v2.0',
|
||||||
bootstrap_token: 'bootstrap-token',
|
bootstrap_token: 'bootstrap-token',
|
||||||
tenant_name: 'service',
|
tenant_name: 'service',
|
||||||
role_name: 'admin',
|
role_name: 'service',
|
||||||
user_name: 'neutron'
|
user_name: 'neutron'
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user