Refactor Out randomString() #10040
Labels
service/elb
Issues and PRs that pertain to the elb service.
service/iam
Issues and PRs that pertain to the iam service.
service/rds
Issues and PRs that pertain to the rds service.
service/redshift
Issues and PRs that pertain to the redshift service.
service/worklink
Issues and PRs that pertain to the worklink service.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone
Community Note
Description
Currently there is a function named
randomString()
, which generates a random lowercase alphabetical string:https://github.com/terraform-providers/terraform-provider-aws/blob/b4efb0be0ac4315f2f4ac52955e58fc32ffe05d5/aws/resource_aws_db_parameter_group_test.go#L624-L632
Most usage of this function should be replaced with
acctest.RandStringFromCharSet(len, acctest.CharSetAlpha)
, which is functionally equivalent and part of the Terraform Provider SDK.Affected Resource(s)
aws/resource_aws_db_parameter_group_test.go
aws/resource_aws_elb_test.go
aws/resource_aws_iam_role_policy_test.go
aws/resource_aws_iam_role_test.go
aws/resource_aws_iam_user_policy_test.go
aws/resource_aws_iam_user_test.go
aws/resource_aws_redshift_cluster_test.go
aws/resource_aws_redshift_parameter_group_test.go
aws/resource_aws_redshift_security_group_test.go
aws/resource_aws_redshift_subnet_group_test.go
aws/resource_aws_worklink_fleet_test.go
aws/resource_aws_worklink_website_certificate_authority_association_test.go
aws/validators_test.go
(see also Simplify Validation Functions in validators.go with Terraform helper/validation Functions #8424)The text was updated successfully, but these errors were encountered: