Skip to content
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/alicloud_rds_account: accountName support caseSensitivity #7982

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chaitiansheng0524
Copy link
Contributor

No description provided.

@chaitiansheng0524 chaitiansheng0524 force-pushed the fix_Account_caseinsensitive branch from 3da64f8 to c766fd9 Compare December 16, 2024 02:06
@@ -46,15 +46,15 @@ func resourceAlicloudRdsAccount() *schema.Resource {
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-z][a-z0-9_]{0,61}[a-z0-9]$`), "The name can consist of lowercase letters, numbers, underscores, and must begin with letters and end with letters or numbers"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9_]{0,61}[a-zA-Z0-9]$`), "The name can consist of letters, numbers, underscores, and must begin with letters and end with letters or numbers"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然改了校验条件支持实例命名设置大写字母,那就应该在单测中体现
image

ConflictsWith: []string{"name"},
},
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-z][a-z0-9_]{0,61}[a-z0-9]$`), "The name can consist of lowercase letters, numbers, underscores, and must begin with letters and end with letters or numbers"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9_]{0,61}[a-zA-Z0-9]$`), "The name can consist of letters, numbers, underscores, and must begin with letters and end with letters or numbers"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文档中的字段描述也改一下,现在还是只支持mysql类型的设置大写,还是所有类型都支持?
image

@chaitiansheng0524 chaitiansheng0524 force-pushed the fix_Account_caseinsensitive branch from a0306ea to c1ed5a2 Compare January 3, 2025 02:51
@chaitiansheng0524 chaitiansheng0524 force-pushed the fix_Account_caseinsensitive branch from c1ed5a2 to 37c68d0 Compare January 3, 2025 08:47
@chaitiansheng0524 chaitiansheng0524 changed the title resource/alicloud_rds_account: fix_Account_caseinsensitive resource/alicloud_rds_account: accountName support caseSensitivity Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants