Skip to content

Implement _serialize(...) override in NodeBalancerConfig #555

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

Merged

Conversation

lgarber-akamai
Copy link
Contributor

📝 Description

This pull request overrides the NodeBalancerConfig(...)._serialize(...) method to remove the the cipher_suite field from the PUT request body on calls to save(...) for UDP configs. This field is rejected by the API if the cipher_suite key is specified, even if its value is null.

✔️ How to Test

The following test steps assume you have pulled down this PR locally and your local environment is pointing to a NodeBalancer-UDP-enabled Linode account.

Unit Testing

make test-unit

Integration Testing

make test-int TEST_COMMAND=models/nodebalancer

Manual Testing

N/A

@lgarber-akamai lgarber-akamai requested a review from a team as a code owner May 21, 2025 18:28
@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label May 21, 2025
@lgarber-akamai lgarber-akamai requested review from jriddle-linode, ezilber-akamai and zliang-akamai and removed request for a team and jriddle-linode May 21, 2025 18:28
Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@lgarber-akamai lgarber-akamai merged commit 0eced30 into linode:proj/nb-udp May 22, 2025
12 checks passed
lgarber-akamai added a commit that referenced this pull request May 27, 2025
* Add support for Nodebalancers UDP (#494)

* Implemented changes for NodeBalancers UDP

* Added unit tests

* Fix lint

* Fixed issue with cipher_suite in save

* Lint

* Addressed PR comments

* Removed overriden _serialize method

* Drop residual prints

* Implement _serialize(...) override in NodeBalancerConfig (#555)

* Add LA notice

---------

Co-authored-by: Jacob Riddle <87780794+jriddle-linode@users.noreply.github.com>
Co-authored-by: Zhiwei Liang <121905282+zliang-akamai@users.noreply.github.com>
Co-authored-by: Ye Chen <127243817+yec-akamai@users.noreply.github.com>
Co-authored-by: Youjung Kim <126618609+ykim-1@users.noreply.github.com>
Co-authored-by: Erik Zilber <ezilber@akamai.com>
Co-authored-by: Youjung Kim <126618609+ykim-akamai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants