-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_msk_cluster: Update encryption_info.encryption_in_transit.client_broker default to match API default #14132
Conversation
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.
Just a comment in the data-source test and note conflict w/the upgrade guide and resource docs, otherwise LGTM 👍
Output of acceptance tests:
--- SKIP: TestAccAWSMskCluster_ConfigurationInfo_Revision (0.00s)
--- SKIP: TestAccAWSMskCluster_ClientAuthentication_Tls_CertificateAuthorityArns (0.00s)
--- PASS: TestAccAWSMskCluster_basic (1618.98s)
--- PASS: TestAccAWSMskClusterDataSource_Name (958.37s)
--- PASS: TestAccAWSMskCluster_Tags (977.44s)
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_InCluster (991.59s)
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_ClientBroker (1039.18s)
--- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionAtRestKmsKeyArn (1058.98s)
--- PASS: TestAccAWSMskCluster_EnhancedMonitoring (1133.72s)
--- PASS: TestAccAWSMskCluster_OpenMonitoring (1318.56s)
--- PASS: TestAccAWSMskCluster_LoggingInfo (1363.17s)
--- PASS: TestAccAWSMskCluster_BrokerNodeGroupInfo_EbsVolumeSize (1369.14s)
--- PASS: TestAccAWSMskCluster_NumberOfBrokerNodes (1590.21s)
resource.TestCheckResourceAttr(resourceName, "bootstrap_brokers", ""), | ||
resource.TestMatchResourceAttr(resourceName, "bootstrap_brokers_tls", regexp.MustCompile(`^(([-\w]+\.){1,}[\w]+:\d+,){2,}([-\w]+\.){1,}[\w]+:\d+$`)), // Ordering not guaranteed |
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.
could we use TestCheckResourceAttrPair
checks in exchange of these checks on the resource?
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.
Ah sorry the Go comment wasn't clear, unfortunately the ordering of the hostnames within the string response isn't guaranteed between read calls, so the resource and the data source may have differing responses. This resource attribute may be a candidate in the future for us going against the API and making a TypeSet
for better usability.
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.
Ohhh gotcha, makes sense!
…t.client_broker default to match API default Reference: #10673 Output from acceptance testing: ``` --- PASS: TestAccAWSMskCluster_basic (1595.73s) --- PASS: TestAccAWSMskCluster_BrokerNodeGroupInfo_EbsVolumeSize (1760.04s) --- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionAtRestKmsKeyArn (1603.40s) --- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_ClientBroker (1603.85s) --- PASS: TestAccAWSMskCluster_EncryptionInfo_EncryptionInTransit_InCluster (1598.02s) --- PASS: TestAccAWSMskCluster_EnhancedMonitoring (1603.10s) --- PASS: TestAccAWSMskCluster_LoggingInfo (1806.72s) --- PASS: TestAccAWSMskCluster_NumberOfBrokerNodes (2036.98s) --- PASS: TestAccAWSMskCluster_OpenMonitoring (1722.68s) --- PASS: TestAccAWSMskCluster_Tags (1605.63s) --- PASS: TestAccAWSMskClusterDataSource_Name (1608.30s) ```
f6dadf3
to
e926b92
Compare
Rebased the documentation conflicts and I'll clarify that comment in the testing. |
…ers_tls is not using TestCheckResourceAttrPair()
This has been released in version 3.0.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #10673
Release note for CHANGELOG:
Output from acceptance testing: