-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ec2_asg: minor fix - run setup only once #1061
ec2_asg: minor fix - run setup only once #1061
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after changelog
@@ -1,5 +1,5 @@ | |||
- name: Run ec2_asg integration tests. | |||
|
|||
run_once: '{{ setup_run_once | default("no") | bool }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would instead use tests/integration/targets/ec2_asg/roles/ec2_asg/default/main.yaml
to define a default setup_run_once
value for the role.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks!
60bba32
to
ee5869e
Compare
ee5869e
to
6464bf4
Compare
Backport to stable-3: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 0e54134 on top of patchback/backports/stable-3/0e54134dd6ccfc8550e3b91f56940878995e6ff5/pr-1061 Backporting merged PR #1061 into main
🤖 @patchback |
…#1061) Add missing 'legacy_missing_tests' alias entries SUMMARY During migrations a couple of 'legacy_missing_tests' aliase entries were missed. Add them ISSUE TYPE Feature Pull Request COMPONENT NAME tests/integration/targets/legacy_missing_tests/aliases ADDITIONAL INFORMATION
SUMMARY
Fix integration tests bug in ec2_asg and run env_setup only once.
The bug causes env_setup.yml to run as many times as the number of tests in inventory file.
This causes removing test VPC to fail with the error
"msg": "Currently there are 3 VPCs that have the same name and CIDR block you specified. If you would like to create the VPC anyway please pass True to the multi_ok param.",
ISSUE TYPE
COMPONENT NAME
ec2_asg