-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
b-cachekeyparameters-29910 #29991
b-cachekeyparameters-29910 #29991
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Acceptance test output: % make testacc TESTARGS='-run=TestAccAPIGatewayAccount_' PKG=apigateway ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/apigateway/... -v -count 1 -parallel 20 -run=TestAccAPIGatewayAccount_ -timeout 180m === RUN TestAccAPIGatewayAccount_basic === PAUSE TestAccAPIGatewayAccount_basic === CONT TestAccAPIGatewayAccount_basic --- PASS: TestAccAPIGatewayAccount_basic (145.91s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 151.265s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccAPIGatewayMethod_\|TestAccAPIGatewayMethodResponse_' PKG=apigateway ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/apigateway/... -v -count 1 -parallel 3 -run=TestAccAPIGatewayMethod_\|TestAccAPIGatewayMethodResponse_ -timeout 180m
=== RUN TestAccAPIGatewayMethodResponse_basic
=== PAUSE TestAccAPIGatewayMethodResponse_basic
=== RUN TestAccAPIGatewayMethodResponse_disappears
=== PAUSE TestAccAPIGatewayMethodResponse_disappears
=== RUN TestAccAPIGatewayMethod_basic
=== PAUSE TestAccAPIGatewayMethod_basic
=== RUN TestAccAPIGatewayMethod_customAuthorizer
=== PAUSE TestAccAPIGatewayMethod_customAuthorizer
=== RUN TestAccAPIGatewayMethod_cognitoAuthorizer
=== PAUSE TestAccAPIGatewayMethod_cognitoAuthorizer
=== RUN TestAccAPIGatewayMethod_customRequestValidator
=== PAUSE TestAccAPIGatewayMethod_customRequestValidator
=== RUN TestAccAPIGatewayMethod_disappears
=== PAUSE TestAccAPIGatewayMethod_disappears
=== RUN TestAccAPIGatewayMethod_operationName
=== PAUSE TestAccAPIGatewayMethod_operationName
=== CONT TestAccAPIGatewayMethodResponse_basic
=== CONT TestAccAPIGatewayMethod_cognitoAuthorizer
=== CONT TestAccAPIGatewayMethod_operationName
=== CONT TestAccAPIGatewayMethod_cognitoAuthorizer
method_test.go:110: Step 1/3 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# aws_cognito_user_pool.pool will be updated in-place
~ resource "aws_cognito_user_pool" "pool" {
id = "us-west-2_bdxo99mUD"
name = "tf-acc-test-112159726476929413"
# (8 unchanged attributes hidden)
~ account_recovery_setting {
- recovery_mechanism {
- name = "verified_email" -> null
- priority = 1 -> null
}
- recovery_mechanism {
- name = "verified_phone_number" -> null
- priority = 2 -> null
}
}
# (4 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccAPIGatewayMethod_cognitoAuthorizer (22.06s)
=== CONT TestAccAPIGatewayMethod_disappears
--- PASS: TestAccAPIGatewayMethodResponse_basic (52.98s)
=== CONT TestAccAPIGatewayMethod_customRequestValidator
--- PASS: TestAccAPIGatewayMethod_operationName (86.27s)
=== CONT TestAccAPIGatewayMethod_basic
--- PASS: TestAccAPIGatewayMethod_customRequestValidator (68.40s)
=== CONT TestAccAPIGatewayMethod_customAuthorizer
--- PASS: TestAccAPIGatewayMethod_disappears (138.06s)
=== CONT TestAccAPIGatewayMethodResponse_disappears
--- PASS: TestAccAPIGatewayMethodResponse_disappears (65.05s)
--- PASS: TestAccAPIGatewayMethod_customAuthorizer (104.20s)
--- PASS: TestAccAPIGatewayMethod_basic (252.43s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 351.254s
FAIL
make: *** [testacc] Error 1
% make testacc TESTARGS='-run=TestAccAPIGatewayIntegration_' PKG=apigateway ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/apigateway/... -v -count 1 -parallel 3 -run=TestAccAPIGatewayIntegration_ -timeout 180m
=== RUN TestAccAPIGatewayIntegration_basic
=== PAUSE TestAccAPIGatewayIntegration_basic
=== RUN TestAccAPIGatewayIntegration_contentHandling
=== PAUSE TestAccAPIGatewayIntegration_contentHandling
=== RUN TestAccAPIGatewayIntegration_CacheKey_parameters
=== PAUSE TestAccAPIGatewayIntegration_CacheKey_parameters
=== RUN TestAccAPIGatewayIntegration_CacheKeyUpdate_parameters
=== PAUSE TestAccAPIGatewayIntegration_CacheKeyUpdate_parameters
=== RUN TestAccAPIGatewayIntegration_integrationType
=== PAUSE TestAccAPIGatewayIntegration_integrationType
=== RUN TestAccAPIGatewayIntegration_TLS_insecureSkipVerification
=== PAUSE TestAccAPIGatewayIntegration_TLS_insecureSkipVerification
=== RUN TestAccAPIGatewayIntegration_disappears
=== PAUSE TestAccAPIGatewayIntegration_disappears
=== CONT TestAccAPIGatewayIntegration_basic
=== CONT TestAccAPIGatewayIntegration_integrationType
=== CONT TestAccAPIGatewayIntegration_disappears
--- PASS: TestAccAPIGatewayIntegration_disappears (17.85s)
=== CONT TestAccAPIGatewayIntegration_CacheKey_parameters
--- PASS: TestAccAPIGatewayIntegration_CacheKey_parameters (32.43s)
=== CONT TestAccAPIGatewayIntegration_CacheKeyUpdate_parameters
--- PASS: TestAccAPIGatewayIntegration_CacheKeyUpdate_parameters (32.64s)
=== CONT TestAccAPIGatewayIntegration_contentHandling
--- PASS: TestAccAPIGatewayIntegration_basic (120.04s)
=== CONT TestAccAPIGatewayIntegration_TLS_insecureSkipVerification
--- PASS: TestAccAPIGatewayIntegration_contentHandling (62.11s)
--- PASS: TestAccAPIGatewayIntegration_TLS_insecureSkipVerification (55.46s)
--- PASS: TestAccAPIGatewayIntegration_integrationType (683.81s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 689.284s
% make testacc TESTARGS='-run=TestAccAPIGatewayAccount_' PKG=apigateway
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/apigateway/... -v -count 1 -parallel 20 -run=TestAccAPIGatewayAccount_ -timeout 180m
=== RUN TestAccAPIGatewayAccount_basic
=== PAUSE TestAccAPIGatewayAccount_basic
=== CONT TestAccAPIGatewayAccount_basic
--- PASS: TestAccAPIGatewayAccount_basic (145.91s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/apigateway 151.265s
The failure is unrelated to this change and has started occurring recently in our CI (#30030).
@deepan83 Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.59.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR looks to address 2 open issues where the addition of a new request parameter removes caching settings (via cacheKeyParameters on integration) on existing request parameters.
Analysis
Implemented Fix
Closes
Closes #29910.
Closes #25736.
References
Output from Acceptance Testing
New to GO and first contribution to Terraform so fully happy to be guided, the above new test would fail without the fix code with a
After applying this test step and performing a 'terraform refresh', the plan was not empty.'
message with the parameter in question but I havent been able to add a failing assert without the fix code (despite the test step leaving the gateway in the state with the issue described)