Skip to content

Commit

Permalink
route53_info - enable max_items tests (#1389)
Browse files Browse the repository at this point in the history
route53_info - enable max_items tests

SUMMARY
Enables the tests from #1384
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
route53_info
ADDITIONAL INFORMATION
  • Loading branch information
tremble authored Aug 3, 2022
1 parent 569fff4 commit 7427a0d
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions tests/integration/targets/route53/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7427a0d

Please sign in to comment.