From 6582fa3e25b75e06ebbc0233a9ab105ce9fb108d Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Tue, 6 Apr 2021 19:05:33 +0200 Subject: [PATCH] rds_instance - test fixups (#515) * 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: https://github.com/ansible-collections/community.aws/commit/1722d0216e3ad141d97a79366f0bb9200734c40f --- tests/integration/targets/rds_instance/aliases | 1 + .../targets/rds_instance/tasks/test_read_replica.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/integration/targets/rds_instance/aliases b/tests/integration/targets/rds_instance/aliases index e4280272565..283523234b9 100644 --- a/tests/integration/targets/rds_instance/aliases +++ b/tests/integration/targets/rds_instance/aliases @@ -1,4 +1,5 @@ # reason: missing-policy +# reason: slow unsupported cloud/aws diff --git a/tests/integration/targets/rds_instance/tasks/test_read_replica.yml b/tests/integration/targets/rds_instance/tasks/test_read_replica.yml index ea87178e2f8..01f15b8b3ca 100644 --- a/tests/integration/targets/rds_instance/tasks/test_read_replica.yml +++ b/tests/integration/targets/rds_instance/tasks/test_read_replica.yml @@ -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: