1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/aws_ses_identity/tasks/assert_defaults.yaml
Ed Costello d16bc1c3f4 New aws_ses_identity module to manage AWS Simple Email Service Identity (#31140)
* Add aws_ses_identity module

* Update CI alias, add BotoCoreError exception handling.

* Add SES and SNS permissions to hacking/aws_config to run aws_ses_identity integration tests
2018-01-29 15:35:49 -05:00

23 lines
1.1 KiB
YAML

- name: assert returned identity
assert:
that:
- result.identity == identity
- name: assert returned identity_arn
assert:
that:
- "result.identity_arn|regex_search('^arn:aws:ses:' + ec2_region + ':[0-9]*:identity/' + identity + '$')"
msg: "'{{ result.identity_arn}}' doesn't match regex '^arn:aws:ses:{{ ec2_region }}:[0-9]*:identity/{{ identity }}'"
- name: assert verification_attributes.verification_status == 'Pending'
assert:
that:
- result.verification_attributes.verification_status == 'Pending'
- name: assert notification defaults
assert:
that:
- result.notification_attributes.forwarding_enabled == True
- result.notification_attributes.headers_in_bounce_notifications_enabled == False
- result.notification_attributes.headers_in_complaint_notifications_enabled == False
- result.notification_attributes.headers_in_delivery_notifications_enabled == False
- "'bounce_topic' not in result.notification_attributes"
- "'complaint_topic' not in result.notification_attributes"
- "'delivery_topic' not in result.notification_attributes"