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
  • Loading branch information
tremble authored Apr 6, 2021
1 parent 4f1c8da commit de8d4d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/515-rds_snapshot-aws-group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- rds_snapshot - added to the aws module_defaults group (https://github.com/ansible-collections/community.aws/pull/515).
1 change: 1 addition & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ action_groups:
- rds_instance
- rds_instance_info
- rds_param_group
- rds_snapshot
- rds_snapshot_info
- rds_subnet_group
- redshift
Expand Down
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 de8d4d8

Please sign in to comment.