Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/aws_msk_cluster: fix
provisioned_throughput
block update behavior (…
…#40910) This change includes two fixes for the `broker_node_group_info.0.storage_info.0.ebs_storage_info.0.provisioned_throughput` block: 1. The update method now includes logic to handle the case where the block previously existed but has been removed. Removal will cause the nested `enabled` value to be set to `false` in the call to the Update API, disabling provisioned throughput. 2. Differences between an unset `provisioned_throughput` block and the default value returned from AWS (a nested block with `enabled` set to `false`) will now be suppressed. This should prevent perpetual differences in configurations which choose to omit this block to disable it. ```console % make testacc PKG=kafka TESTS=TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/kafka/... -v -count 1 -parallel 20 -run='TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_' -timeout 360m 2025/01/13 14:30:06 Initializing Terraform AWS Provider... --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_enabledToUnset (2195.72s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_enabledToDisabled (2200.75s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_disabledToEnabled (2207.31s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/kafka 2213.740s ``` ```console % make testacc PKG=kafka TESTS=TestAccKafkaCluster_ make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/kafka/... -v -count 1 -parallel 20 -run='TestAccKafkaCluster_' -timeout 360m -vet=off 2025/01/13 15:31:15 Initializing Terraform AWS Provider... --- PASS: TestAccKafkaCluster_EncryptionInfoEncryptionInTransit_inCluster (1903.67s) === CONT TestAccKafkaCluster_EncryptionInfoEncryptionInTransit_clientBroker --- PASS: TestAccKafkaCluster_basic (1918.03s) === CONT TestAccKafkaCluster_EncryptionInfo_encryptionAtRestKMSKeyARN --- PASS: TestAccKafkaCluster_enhancedMonitoring (2052.26s) === CONT TestAccKafkaCluster_tags --- PASS: TestAccKafkaCluster_ClientAuthenticationTLS_certificateAuthorityARNs (2115.51s) === CONT TestAccKafkaCluster_disappears --- PASS: TestAccKafkaCluster_openMonitoring (2158.66s) === CONT TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_disabledToEnabled --- PASS: TestAccKafkaCluster_loggingInfo (2195.49s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_enabledToDisabled (2215.01s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_enabledToUnset (2226.82s) --- PASS: TestAccKafkaCluster_storageMode (2819.54s) --- PASS: TestAccKafkaCluster_numberOfBrokerNodes (2823.48s) --- PASS: TestAccKafkaCluster_Info_revision (2827.43s) --- PASS: TestAccKafkaCluster_EncryptionInfo_encryptionAtRestKMSKeyARN (2089.17s) --- PASS: TestAccKafkaCluster_EncryptionInfoEncryptionInTransit_clientBroker (2105.36s) --- PASS: TestAccKafkaCluster_kafkaVersionDowngrade (4013.28s) --- PASS: TestAccKafkaCluster_ClientAuthenticationSASL_iam (4014.32s) --- PASS: TestAccKafkaCluster_tags (1962.95s) --- PASS: TestAccKafkaCluster_ClientAuthenticationSASL_scram (4018.83s) --- PASS: TestAccKafkaCluster_disappears (1907.78s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_StorageInfo_disabledToEnabled (1878.63s) --- PASS: TestAccKafkaCluster_ClientAuthenticationTLS_initiallyNoAuthentication (4289.27s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_vpcConnectivity (5800.89s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_publicAccessSASLIAM (5961.32s) --- PASS: TestAccKafkaCluster_kafkaVersionUpgradeWithInfo (7131.54s) --- PASS: TestAccKafkaCluster_kafkaVersionUpgrade (7131.72s) --- PASS: TestAccKafkaCluster_BrokerNodeGroupInfo_instanceType (7585.60s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/kafka 7590.972s ```
- Loading branch information