Remove superfluous role_name arguments
This patch removes the role_name when using openstack_user's :create action (it gets ignored by the target method). Note that the spec test would still pass if only the line in identity_registration.rb (but not the test) were changed, because the code that actually does grant the role to the resource is executed right after user creation and before any tests check the resource for the existence of the role_name attribute. In other words: if the argument were required in a call but only supplied in another call, the spec tests would not catch it. Something to watch out for. Change-Id: Ic45dd42453d9f8ae2a8c4d04f830cff67740cac6
This commit is contained in:
parent
20d299964d
commit
48fdd181f9
|
@ -101,7 +101,6 @@ end
|
|||
# Register Service User
|
||||
openstack_user service_user do
|
||||
project_name service_project_name
|
||||
role_name service_role
|
||||
password service_pass
|
||||
connection_params connection_params
|
||||
end
|
||||
|
@ -164,7 +163,6 @@ end
|
|||
|
||||
openstack_user stack_domain_admin do
|
||||
domain_name heat_domain_name
|
||||
role_name 'admin'
|
||||
password stack_domain_admin_password
|
||||
connection_params connection_params
|
||||
end
|
||||
|
|
|
@ -66,7 +66,6 @@ describe 'openstack-orchestration::identity_registration' do
|
|||
service_user
|
||||
).with(
|
||||
project_name: project_name,
|
||||
role_name: role_name,
|
||||
password: password,
|
||||
connection_params: connection_params
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue