Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

route53_info - enable max_items tests #1389

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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