From 570f23a9f6e31498f753c73794fc53c0f37f90df Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Tue, 12 Nov 2024 04:59:49 -0500 Subject: [PATCH] Re-enable integration test for autoscaling_instance* modules (#2383) SUMMARY Fixes #2362 ISSUE TYPE Bugfix Pull Request Docs Pull Request Feature Pull Request New Module Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves Reviewed-by: Mark Chappell (cherry picked from commit 453e0844fb51e34a32a95e78b78ed1279d68cfa8) --- 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