Merge "Fix recordset name for update checking" into mosk-26.1/epoxy
diff --git a/designate_tempest_plugin/tests/scenario/v2/test_recordsets.py b/designate_tempest_plugin/tests/scenario/v2/test_recordsets.py
index 9d955f4..6d5bfac 100644
--- a/designate_tempest_plugin/tests/scenario/v2/test_recordsets.py
+++ b/designate_tempest_plugin/tests/scenario/v2/test_recordsets.py
@@ -246,8 +246,12 @@
while True:
ns_obj = SingleQueryClient(ns, config.CONF.dns.query_timeout)
ns_record = ns_obj.query(
- self.zone['name'], rdatatype=recordset_data['type'])
- if str(updated_ttl) in str(ns_record):
+ recordset_data['name'], rdatatype=recordset_data['type'])
+ rrset = ns_record.get_rrset(ns_record.answer,
+ ns_record.question[0].name,
+ ns_record.question[0].rdclass,
+ ns_record.question[0].rdtype)
+ if rrset and rrset.ttl == updated_ttl:
return
if time.time() - start >= config.CONF.dns.build_timeout:
raise lib_exc.TimeoutException(