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: I45754d269598b821f0b86b6257556ebfe74dcd6b
This commit is contained in:
parent
7f4f94e57b
commit
9ad24ffd47
|
@ -90,7 +90,6 @@ connection_params = {
|
|||
# Register Service User
|
||||
openstack_user service_user do
|
||||
project_name service_tenant_name
|
||||
role_name service_role
|
||||
password service_pass
|
||||
connection_params connection_params
|
||||
end
|
||||
|
|
|
@ -76,7 +76,6 @@ describe 'openstack-telemetry::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