From 5edd9ea0b089e171e755a78f9e1186b5f8fe8e0a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:00:57 +0000 Subject: [PATCH] Re-enable integration test for autoscaling_instance* modules (#2383) (#2389) This is a backport of PR #2383 as merged into main (453e084). SUMMARY Fixes #2362 ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell --- changelogs/fragments/autoscaling_instance_enable_tests.yml | 2 ++ tests/integration/targets/autoscaling_instance/aliases | 2 -- .../integration/targets/autoscaling_instance/tasks/health.yml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/autoscaling_instance_enable_tests.yml diff --git a/changelogs/fragments/autoscaling_instance_enable_tests.yml b/changelogs/fragments/autoscaling_instance_enable_tests.yml new file mode 100644 index 00000000000..42fd3baa39c --- /dev/null +++ b/changelogs/fragments/autoscaling_instance_enable_tests.yml @@ -0,0 +1,2 @@ +trivial: + - autoscaling_instance - Enable integration tests which were disabled earlier due to permission issues (https://github.com/ansible-collections/amazon.aws/pull/2383). diff --git a/tests/integration/targets/autoscaling_instance/aliases b/tests/integration/targets/autoscaling_instance/aliases index 10cd19605f2..cc06f7fdbfb 100644 --- a/tests/integration/targets/autoscaling_instance/aliases +++ b/tests/integration/targets/autoscaling_instance/aliases @@ -1,5 +1,3 @@ -# reason: missing-policy -disabled time=30m cloud/aws diff --git a/tests/integration/targets/autoscaling_instance/tasks/health.yml b/tests/integration/targets/autoscaling_instance/tasks/health.yml index 02f6f00ab83..521ba37dfee 100644 --- a/tests/integration/targets/autoscaling_instance/tasks/health.yml +++ b/tests/integration/targets/autoscaling_instance/tasks/health.yml @@ -15,6 +15,9 @@ # ===================================================== # Test updating the health of all instances # ===================================================== +- name: Sleep to wait for the health check period to be over before making any changes + ansible.builtin.wait_for: + timeout: 10 # Set all to Healthy - no change - name: instance_ids - all Healthy (idempotency) - check_mode