mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-11-21 14:48:41 +00:00
Fix dns zone update issues in CI
Stop CI failing due to DNS zone update timing out. Designate currently has a bug where an update that only changes the description of a DNS zone gets stuck in pending. Update the TTL as well to work around this. https://bugs.launchpad.net/designate/+bug/2171489 Change-Id: I47ec220f0db00dde996962077a15b2a8b2f072ee Signed-off-by: Jed Preist <jed@stackhpc.com>
This commit is contained in:
@@ -16,17 +16,21 @@
|
||||
# allow new fields to be introduced but prevent fields from being removed
|
||||
- expected_fields|difference(dns_zone.zone.keys())|length == 0
|
||||
|
||||
# NOTE(jed-preist): Update ttl as well, to work around
|
||||
# https://bugs.launchpad.net/designate/+bug/2171489
|
||||
- name: Update dns zone
|
||||
openstack.cloud.dns_zone:
|
||||
cloud: "{{ cloud }}"
|
||||
name: ansible.test.zone.
|
||||
description: "Another description"
|
||||
ttl: 1800
|
||||
register: dns_zone
|
||||
|
||||
- name: Assert return values of dns_zone module
|
||||
assert:
|
||||
that:
|
||||
- dns_zone.zone.description == "Another description"
|
||||
- dns_zone.zone.ttl == 1800
|
||||
|
||||
- name: Fetch all dns zones
|
||||
openstack.cloud.dns_zone_info:
|
||||
|
||||
Reference in New Issue
Block a user