Correctly build params dict in recordset

Change If8fda40780050d271c9d869d8959ef569644fd88 unintentionally broke
our integration tests. This patch fixes the code and tests to make
everything pass again.

Change-Id: Ief8d1f9e1eec13a2d435e96a0d70e31a2b4431f2
This commit is contained in:
Rafael Castillo
2022-05-31 17:57:43 -07:00
parent d65ea4d560
commit d6cdad2c42
2 changed files with 14 additions and 10 deletions

View File

@@ -48,7 +48,7 @@
- name: Assert recordset not changed
assert:
that:
- recordset is changed
- recordset is not changed
- name: Assert recordset fields
assert:
@@ -84,13 +84,13 @@
zone: "{{ dns_zone.zone.name }}"
name: "{{ recordset.recordset.name }}"
state: absent
register: recordset
register: deleted_recordset
- name: Verify recordset deletion
assert:
that:
- recordset is successful
- recordset is changed
- deleted_recordset is successful
- deleted_recordset is changed
- name: Delete unexistent recordset
openstack.cloud.recordset:
@@ -98,12 +98,12 @@
zone: "{{ dns_zone.zone.name }}"
name: "{{ recordset.recordset.name }}"
state: absent
register: recordset
register: deleted_recordset
- name: Verify recordset deletion
assert:
that:
- recordset is not changed
- deleted_recordset is not changed
- name: Delete dns zone
openstack.cloud.dns_zone: