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

add check_mode for elb_application_lb* & refactor integration tests #894

Conversation

jatorcasso
Copy link
Contributor

@jatorcasso jatorcasso commented Jan 27, 2022

SUMMARY

Add check_mode support for elb_application_lb* & refactor integration tests.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

elb_application_lb
elb_application_lb_info

@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Jan 27, 2022
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

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

Thanks @jatorcasso. I left some initial comments. I will do a more accurate review.

plugins/modules/elb_application_lb.py Outdated Show resolved Hide resolved
@jatorcasso jatorcasso marked this pull request as draft January 28, 2022 21:54
@softwarefactory-project-zuul
Copy link
Contributor

Build failed (third-party-check pipeline) integration testing with
OpenStack. For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@jatorcasso jatorcasso changed the title add check_mode for elb_application_lb & refactor integration tests add check_mode for elb_application_lb* & refactor integration tests Jan 31, 2022
@jatorcasso jatorcasso marked this pull request as ready for review January 31, 2022 21:01
@softwarefactory-project-zuul
Copy link
Contributor

Build failed (third-party-check pipeline) integration testing with
OpenStack. For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@softwarefactory-project-zuul
Copy link
Contributor

Build failed (third-party-check pipeline) integration testing with
OpenStack. For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@markuman markuman mentioned this pull request Feb 1, 2022
1 task
@alinabuzachis
Copy link
Contributor

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (third-party-check pipeline).

Copy link
Contributor

@alinabuzachis alinabuzachis 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 that, it looks good to me. Thank you @jatorcasso. Let's wait for some other reviews from @marknet15 @markuman.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (third-party-check pipeline).

- name: Ensure elb_application_lb_info supports check_mode
elb_application_lb_info:
register: elb_info
check_mode: yes
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what others think but I didn't think check mode was really applicable for info modules as nothing really changes

Copy link
Contributor

@alinabuzachis alinabuzachis Feb 4, 2022

Choose a reason for hiding this comment

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

I know that all the modules should support check_mode. You're right, there is no change. _info modules are a particular case, but don't know about the story behind the check_mode here. According to the argument spec, it supports check mode.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah makes sense, guess they are indeed quite a particular case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was basing that off a conversation with @jillr who basically said it should be there so nothing breaks if the user does --check on an entire playbook

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh cool cool 👍🏻

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (third-party-check pipeline).

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.

@jatorcasso Can you please retain the ALB naming in this set of modules and tests? ELBs are generally understood to mean v1/Classic Load Balancers (covered by amazon.aws.elb_classic_lb, the module formerly known as ec2_elb_lb). Only Application Load Balancers (elbv2) are covered by these modules.
https://docs.aws.amazon.com/elasticloadbalancing/index.html
The term ALB is a widely-used and understood convention for AWS users https://cloudacademy.com/blog/application-load-balancer-vs-classic-load-balancer/

@jatorcasso
Copy link
Contributor Author

@jatorcasso Can you please retain the ALB naming in this set of modules and tests? ELBs are generally understood to mean v1/Classic Load Balancers (covered by amazon.aws.elb_classic_lb, the module formerly known as ec2_elb_lb). Only Application Load Balancers (elbv2) are covered by these modules. https://docs.aws.amazon.com/elasticloadbalancing/index.html The term ALB is a widely-used and understood convention for AWS users https://cloudacademy.com/blog/application-load-balancer-vs-classic-load-balancer/

@jillr changed to ALB where it made the most sense to me. Please let me know if I missed any, thanks!

@jatorcasso jatorcasso requested a review from jillr February 7, 2022 20:34
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.

Thanks @jatorcasso!

@jillr jillr added the mergeit Merge the PR (SoftwareFactory) label Feb 9, 2022
@softwarefactory-project-zuul
Copy link
Contributor

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 239136b into ansible-collections:main Feb 9, 2022
jatorcasso added a commit to jatorcasso/community.aws that referenced this pull request Mar 28, 2022
…nsible-collections#894)

add check_mode for elb_application_lb* & refactor integration tests

SUMMARY
Add check_mode support for elb_application_lb* & refactor integration tests.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_application_lb
elb_application_lb_info

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Jill R <None>
Reviewed-by: Mark Woolley <[email protected]>
(cherry picked from commit 239136b)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Mar 29, 2022
…c default sg (#1025)

Backport: elb_application_lb - check_mode support, alb attributes, vpc default sg

SUMMARY
Backport #894 #963 #971 manually to resolve conflicts.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
elb_application_lb

Reviewed-by: Markus Bergholz <[email protected]>
Reviewed-by: Alina Buzachis <None>
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 has_issue integration tests/integration mergeit Merge the PR (SoftwareFactory) module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants