From 52a820470a884a77c6e7614e5663d467c2147928 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Tue, 2 Aug 2022 16:07:26 +0200 Subject: [PATCH] route53_info - enable max_items tests --- .../targets/route53/tasks/main.yml | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/tests/integration/targets/route53/tasks/main.yml b/tests/integration/targets/route53/tasks/main.yml index f453a879e7c..2004523a7be 100644 --- a/tests/integration/targets/route53/tasks/main.yml +++ b/tests/integration/targets/route53/tasks/main.yml @@ -79,21 +79,20 @@ - hosted_zones.HostedZone.ResourceRecordSetCount == 2 - hosted_zones.HostedZone.Config.PrivateZone -# Needs CI permissions updated -# # Ensure that we can use the non-paginated list_by_name method with max_items -# - name: Get zone 1 details only -# route53_info: -# query: hosted_zone -# hosted_zone_method: list_by_name -# dns_name: '{{ zone_one }}' -# max_items: 1 -# register: list_by_name_result -# -# - name: Assert that we found exactly one zone when querying by name -# assert: -# that: -# - list_by_name_result.HostedZones | length == 1 -# - list_by_name_result.HostedZones[0].Name == '{{ zone_one }}' + # Ensure that we can use the non-paginated list_by_name method with max_items + - name: Get zone 1 details only + route53_info: + query: hosted_zone + hosted_zone_method: list_by_name + dns_name: '{{ zone_one }}' + max_items: 1 + register: list_by_name_result + + - name: Assert that we found exactly one zone when querying by name + assert: + that: + - list_by_name_result.HostedZones | length == 1 + - list_by_name_result.HostedZones[0].Name == '{{ zone_one }}' - name: 'Create A record using zone fqdn' route53: