Update identity_role_info for latest openstacksdk release

- Stop checking for to_dict, breaking compatibility with older sdk
  releases
- Updates RETURN doc string with all the returned fields
- Adds a new identity_role_info role to test the identity_role_info
  module.
- Change the name of the module return value to remove 'openstack_'
  prefix

Change-Id: If8a1145a31d685d41367383930e6fd08d64c6ae8
This commit is contained in:
Rafael Castillo
2022-02-09 07:03:22 -07:00
committed by Jakob Meng
parent fdf4999747
commit 1d22a94a90
5 changed files with 103 additions and 30 deletions

View File

@@ -32,7 +32,7 @@
- name: Assert role found
assert:
that:
- roles.openstack_roles | length == 1
- roles.roles | length == 1
- name: Assert role changed
assert:
that: role is changed
@@ -45,7 +45,7 @@
that: role['role']['name'] == role_name
- name: Assert retrieved values
assert:
that: roles.openstack_roles[0].name == role_name
that: roles.roles[0].name == role_name
- block:
- name: Create existing keystone role
@@ -80,4 +80,4 @@
- name: Assert no role found
assert:
that:
- roles.openstack_roles | length == 0
- roles.roles | length == 0