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

Cleanup IGW modules #318

Merged
merged 13 commits into from
Dec 9, 2020
Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Dec 5, 2020

SUMMARY

General module cleanup of IGW modules

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ec2_vpc_igw
ec2_vpc_igw_info

ADDITIONAL INFORMATION

Planned changes

  • Use AWSRetry decorator
  • Add purge_tags
  • Add _info tests
  • Use module_defaults with test suite
  • Add tagging tests
  • Add check_mode tests
  • Add delete igw idemptency tests

@tremble tremble force-pushed the cleanup/vpc_igw branch 5 times, most recently from 32b17b5 to 842775e Compare December 6, 2020 20:22
@tremble tremble changed the title [WIP] Cleanup IGW modules Cleanup IGW modules Dec 8, 2020
@tremble tremble requested a review from jillr December 8, 2020 11:36
Copy link
Collaborator

@jillr jillr left a comment

Choose a reason for hiding this comment

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

other than needing a changelog, lgtm

plugins/modules/ec2_vpc_igw.py Show resolved Hide resolved
plugins/modules/ec2_vpc_igw_info.py Show resolved Hide resolved
@tremble tremble merged commit d6ff623 into ansible-collections:main Dec 9, 2020
@tremble
Copy link
Contributor Author

tremble commented Dec 10, 2020

Merged based on @jillr's review and the IRC comment:

<tremble> jillr, https://github.com/ansible-collections/community.aws/pull/318 changelog entries added
<jillr> tremble: thanks! if that's the only thing you changed I'm +1 to merge

@tremble tremble deleted the cleanup/vpc_igw branch February 11, 2021 09:27
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 14, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@d6ff623
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 15, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@d6ff623
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 16, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@d6ff623
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 17, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@d292be9
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog
danielcotton pushed a commit to danielcotton/community.aws that referenced this pull request Nov 23, 2021
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog
softwarefactory-project-zuul bot pushed a commit to ansible-collections/amazon.aws that referenced this pull request May 24, 2022
ec2_vpc_igw - convert tags by default

SUMMARY
Updates ec2_vpc_igw so that it return tags as a dictionary by default (instead of the boto3 style list of dictionaries)
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
ec2_vpc_igw
ADDITIONAL INFORMATION
See also ansible-collections/community.aws#318

Reviewed-by: Alina Buzachis <None>
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
* import order

* Add retry decorators

* Switch tests to using module_defaults

* module_defaults

* Add initial _info tests

* Handle Boto Errors with fail_json_aws

* Test state=absent when IGW missing

* Support not purging tags

* Support converting Tags from boto to dict

* Add tagging tests

* Use random CIDR for VPC

* Add check_mode tests

* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@d6ff623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants