You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in a LocalStack Slack Community post, we would raise an exception when trying to update a stage with some method settings.
Here's the message to reproduce:
This PR is a follow up from #9039 and #8873. There was still an issue with the formatting of the error, and we didn't get all the fields from it properly.
We also didn't use the default values from */* method settings when creating a new one by update.
Changes
Fix the STAGE_UPDATE_PATHS list to have all the right paths, and adapted the logic for the error message (maybe we should just create it once?)
I've added some logic in an existing patch to get the default values from */* method settings.
Added snapshots tests to validate the behaviour with default settings and being able to set a {resource}/{method}/* path.
Motivation
As reported in a LocalStack Slack Community post, we would raise an exception when trying to update a stage with some method settings.
Here's the message to reproduce:
User's repo to reproduce:
https://github.com/joecolly/localstack-tf-apgw
This PR is a follow up from #9039 and #8873. There was still an issue with the formatting of the error, and we didn't get all the fields from it properly.
https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html#UpdateStage-Patch
We also didn't use the default values from
*/*
method settings when creating a new one by update.Changes
Fix the
STAGE_UPDATE_PATHS
list to have all the right paths, and adapted the logic for the error message (maybe we should just create it once?)I've added some logic in an existing patch to get the default values from
*/*
method settings.Added snapshots tests to validate the behaviour with default settings and being able to set a
{resource}/
{method}/*
path.Originally posted by @bentsku in localstack/localstack#9334
The text was updated successfully, but these errors were encountered: