-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fix bug that cause altered key value item to be deleted #43208
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
base: main
Are you sure you want to change the base?
fix bug that cause altered key value item to be deleted #43208
Conversation
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible. |
c9883b8
to
543c01f
Compare
543c01f
to
54ae632
Compare
54ae632
to
895e76d
Compare
@frek818 Thank you for raising the PR! I have added a few code suggestions to ensure the test case is properly testing the update flow. Once updated. Please include the output of locally running the acceptance tests in the PR description. |
internal/service/cloudfrontkeyvaluestore/keys_exclusive_test.go
Outdated
Show resolved
Hide resolved
internal/service/cloudfrontkeyvaluestore/keys_exclusive_test.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Brittan DeYoung <32572259+brittandeyoung@users.noreply.github.com>
Co-authored-by: Brittan DeYoung <32572259+brittandeyoung@users.noreply.github.com>
Co-authored-by: Brittan DeYoung <32572259+brittandeyoung@users.noreply.github.com>
Thank you @brittandeyoung. Here are the acceptance test results. $ make testacc TESTS=TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange PKG=cloudfrontkeyvaluestore
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.4 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20 -run='TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange' -timeout 360m -
vet=off
2025/06/27 09:12:07 Creating Terraform AWS Provider (SDKv2-style)...
2025/06/27 09:12:07 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange (40.12s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore 40.256s |
LGTM make testacc TESTARGS='-run=TestAccCloudFrontKeyValueStoreKeysExclusive' PKG=cloudfrontkeyvaluestore
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.24.4 test ./internal/service/cloudfrontkeyvaluestore/... -v -count 1 -parallel 20 -run=TestAccCloudFrontKeyValueStoreKeysExclusive -timeout 360m -vet=off
2025/06/27 12:57:41 Creating Terraform AWS Provider (SDKv2-style)...
2025/06/27 12:57:41 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_value
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_value
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_empty
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_empty
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_maxBatchSize
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_maxBatchSize
=== RUN TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
=== PAUSE TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_basic
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_value
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_maxBatchSize
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore
=== CONT TestAccCloudFrontKeyValueStoreKeysExclusive_empty
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_disappears_KeyValueStore (32.54s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_value (41.92s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandRemoval (43.64s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_outOfBandAddition (44.48s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_basic (45.28s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_maxBatchSize (45.35s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_itemRemainsAfterValueChange (48.62s)
--- PASS: TestAccCloudFrontKeyValueStoreKeysExclusive_empty (60.02s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cloudfrontkeyvaluestore 65.958s |
Fixes #43190