Skip to content

Commit

Permalink
rds_instance - test fixups (ansible-collections#515)
Browse files Browse the repository at this point in the history
* rds_instance - fix test syntax - test_read_replica.yml
* Note that rds_instance tests are slow
* add rds_snapshot to aws group
* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@1722d02
  • Loading branch information
tremble authored and goneri committed Sep 21, 2022
1 parent 501ca15 commit 04e134b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/integration/targets/rds_instance/aliases
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# reason: missing-policy
# reason: slow
unsupported

cloud/aws
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
register: result

- assert:
that:
- result.changed
- "result.db_instance_identifier == '{{ instance_id }}-replica'"
- "result.tags | length == 2"
- "result.tags.Name == '{{ instance_id }}'"
- "result.tags.Created_by == 'Ansible rds_instance tests'"
that:
- result.changed
- "result.db_instance_identifier == '{{ instance_id }}-replica'"
- "result.tags | length == 2"
- "result.tags.Name == '{{ instance_id }}'"
- "result.tags.Created_by == 'Ansible rds_instance tests'"

- name: Test idempotence with a read replica
rds_instance:
Expand Down

0 comments on commit 04e134b

Please sign in to comment.