Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Further enhance parity of API Gateway patch operations#8873

Merged
whummer merged 1 commit into
masterfrom
apigw-stage-patch-fix
Aug 9, 2023
Merged

Further enhance parity of API Gateway patch operations#8873
whummer merged 1 commit into
masterfrom
apigw-stage-patch-fix

Conversation

@whummer
Copy link
Copy Markdown
Member

@whummer whummer commented Aug 9, 2023

Motivation

Further enhance parity of API Gateway patch operations. Follow-up from #8836. Addresses #8739 Unfortunately, #8836 introduced a regression where certain fields of Stages cannot be updated now.

In the process of more snapshot testing, I've discovered a few more discrepancies in the moto logic, which are also fixed in this PR (and some obsolete moto patches removed).

Changes

  • fix regression to allow updating /*/*/throttling/burstLimit stage attributes
  • extend the snapshot test to cover this functionality
  • remove obsolete moto patches

@whummer whummer requested a review from calvernaz as a code owner August 9, 2023 13:42
@whummer whummer requested a review from bentsku August 9, 2023 13:42
Copy link
Copy Markdown
Contributor

@bentsku bentsku left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome to see even more parity, especially those patches being removed... 🙏
Sorry I missed the missing commas in the previous review introducing the regression 😬 but good catch finding it so quickly!

Comment on lines +884 to +886
# note: weird formatting in AWS - required for snapshot testing
valid_paths = valid_paths.replace("/burstLimit, /", "/burstLimit /")
valid_paths = valid_paths.replace("/rateLimit, /", "/rateLimit /")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

such a weird bug, good catch!

@bentsku bentsku added the semver: patch Non-breaking changes which can be included in patch releases label Aug 9, 2023
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 9, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 27m 3s ⏱️
2 042 tests 1 655 ✔️ 387 💤 0
2 043 runs  1 655 ✔️ 388 💤 0

Results for commit 93cf106.

@whummer whummer merged commit 78f635a into master Aug 9, 2023
@whummer whummer deleted the apigw-stage-patch-fix branch August 9, 2023 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants