Skip to content
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

Refactor test code for fetching AMIs and AZs #485

Merged
merged 3 commits into from
Sep 1, 2021

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Aug 31, 2021

SUMMARY

Our Tests have a lot of copy and paste code, let's try refactoring a little. This also means we're more consistent about which AMIs we use.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cloudformation
ec2
ec2_ami
ec2_eni
ec2_vol
ec2_vpc_route_table
ec2_vpc_subnet

ADDITIONAL INFORMATION

@ansibullbot ansibullbot added WIP Work in progress feature This issue/PR relates to a feature request integration tests/integration needs_triage plugins plugin (any type) tests tests labels Aug 31, 2021
@tremble tremble force-pushed the test_facts_refactor branch from f745df1 to 7cc03bf Compare August 31, 2021 16:56
@tremble tremble changed the title [WIP] Refactor test code for fetching AMIs and AZs Refactor test code for fetching AMIs and AZs Aug 31, 2021
@tremble tremble removed the WIP Work in progress label Aug 31, 2021
@tremble
Copy link
Contributor Author

tremble commented Aug 31, 2021

@goneri I mentioned standardizing on a single AMI this is my suggestion of how to implement

@goneri
Copy link
Member

goneri commented Aug 31, 2021

I tend to think we can just declare a region/AMI mapping and avoid the logic to auto-guess the right image.

@tremble tremble added the gate label Aug 31, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ansibullbot ansibullbot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR and removed community_review labels Aug 31, 2021
@tremble tremble force-pushed the test_facts_refactor branch from 7cc03bf to d52de48 Compare August 31, 2021 19:03
@ansible-zuul ansible-zuul bot removed the gate label Aug 31, 2021
@ansibullbot ansibullbot added community_review module module and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Aug 31, 2021
@tremble tremble force-pushed the test_facts_refactor branch from 295a0dc to 6fe0ec5 Compare August 31, 2021 19:52
@tremble tremble force-pushed the test_facts_refactor branch from 6fe0ec5 to b4f9b64 Compare August 31, 2021 20:24
@tremble tremble added the gate label Sep 1, 2021
@ansible-zuul ansible-zuul bot merged commit d047a90 into ansible-collections:main Sep 1, 2021
@tremble tremble deleted the test_facts_refactor branch November 26, 2021 12:43
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
)

* fix test bugs
* Update tests/integration/targets/aws_acm/tasks/full_acm_test.yml
Co-authored-by: Mark Chappell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants