Refactored identity_domain{,_info} modules

Change-Id: Idf48f10e66a5651fa4693774eecd2c8683703082
This commit is contained in:
Jakob Meng
2023-01-13 09:05:57 +01:00
parent a4a6e6d4ec
commit 16a8a9e5d4
13 changed files with 292 additions and 335 deletions

View File

@@ -52,21 +52,21 @@
cloud: "{{ cloud }}"
state: present
name: "{{ group_name }}"
domain_id: "{{ domain.id }}"
domain_id: "{{ domain.domain.id }}"
register: group_result
- name: Assert results
assert:
that:
- group_result is changed
- group_result.group.domain_id == domain.id
- group_result.group.domain_id == domain.domain.id
- name: Create group in specific domain again
openstack.cloud.identity_group:
cloud: "{{ cloud }}"
state: present
name: "{{ group_name }}"
domain_id: "{{ domain.id }}"
domain_id: "{{ domain.domain.id }}"
register: group_result
- name: Assert not changed
@@ -90,7 +90,7 @@
cloud: "{{ cloud }}"
state: absent
name: "{{ group_name }}"
domain_id: "{{ domain.id }}"
domain_id: "{{ domain.domain.id }}"
register: group_result
- name: Assert changed
@@ -102,7 +102,7 @@
cloud: "{{ cloud }}"
state: absent
name: "{{ group_name }}"
domain_id: "{{ domain.id }}"
domain_id: "{{ domain.domain.id }}"
register: group_result
- name: Assert not changed