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: fix_Account_caseinsensitive #7982

Open
wants to merge 81 commits 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

ChenHanZhang and others added 23 commits December 17, 2024 11:33
…or code IncorrectDBInstanceState, LockTimeout
…curity_group; Added the field security_group_name, create_time; Deprecated the field name
…snapshot; Added the field create_time, region_id; Removed the ForceNew for field resource_group_id
…peration.Blocking and IncorrectStatus.TrafficQosPolicy
…ion AlbJobStateRefreshFunc; resource/alicloud_alb_listener: Fixed the update error caused by state refresh
…rameter account_type to fix international account site issue
ChenHanZhang and others added 30 commits December 26, 2024 10:19
… retry strategy for error code ConcurrentCallNotSupported
…etry strategy for error code Operation.Blocking
…r caused by field permission_policies.permission_policy_document
…d enable_auto_snapshot; Improved the document
…Added the field deletion_protection, deletion_protection_description
…r_ee_sync_rule; Added the field sync_rule_name, sync_trigger, target_user_id, repo_sync_rule_id, create_time, region_id; Deprecated the field name, rule_id
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.

7 participants