Skip to content

ELB: Port and protocol validations for create listener #8563

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

Conversation

nik-localstack
Copy link
Contributor

@nik-localstack nik-localstack commented Feb 4, 2025

When creating a listener, port and protocol should satisfy some conditions base on the load balancer type.

https://docs.aws.amazon.com/cli/latest/reference/elbv2/create-listener.html#options

@nik-localstack nik-localstack force-pushed the fix/elbv2/listener-port-and-protocol-validations branch 3 times, most recently from c5f7d0d to eb3c105 Compare February 4, 2025 16:44
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.65%. Comparing base (9780730) to head (25d9703).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8563   +/-   ##
=======================================
  Coverage   92.65%   92.65%           
=======================================
  Files        1231     1231           
  Lines      106822   106851   +29     
=======================================
+ Hits        98976    99005   +29     
  Misses       7846     7846           
Flag Coverage Δ
servertests 28.13% <20.00%> (-0.01%) ⬇️
unittests 92.63% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nik-localstack nik-localstack force-pushed the fix/elbv2/listener-port-and-protocol-validations branch from 9b02b70 to 4d69a5a Compare February 5, 2025 08:31
@nik-localstack nik-localstack force-pushed the fix/elbv2/listener-port-and-protocol-validations branch from 4d69a5a to 25d9703 Compare February 6, 2025 07:52
@nik-localstack nik-localstack marked this pull request as ready for review February 6, 2025 08:16
Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Great tests @nik-localstack - always good to check every single scenario.

Thank you!

@bblommers bblommers added this to the 5.0.29 milestone Feb 6, 2025
@bblommers bblommers merged commit 98e2730 into getmoto:master Feb 6, 2025
56 checks passed
@bblommers bblommers modified the milestones: 5.0.29, 5.1.0 Feb 26, 2025
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