-
Notifications
You must be signed in to change notification settings - Fork 536
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_ga_accelerator: Added the time limit of the field duration. #4426
Conversation
@@ -105,3 +115,329 @@ var AlicloudGaAcceleratorMap = map[string]string{ | |||
func AlicloudGaAcceleratorBasicDependence(name string) string { | |||
return "" | |||
} | |||
|
|||
func TestAccAlicloudGaAccelerator_unit(t *testing.T) { |
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.
96.8%
3a175fd
to
ab7defc
Compare
request["Duration"] = duration | ||
} else if duration > 9 && duration <= 36 { | ||
request["PricingCycle"] = "Year" | ||
request["Duration"] = duration / 12 |
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.
直接把 PricingCycle 暴露出来吧
98b6e45
to
050ecf5
Compare
Type: schema.TypeString, | ||
Required: true, | ||
ValidateFunc: validation.StringInSlice([]string{"Month", "Year"}, false), | ||
}, |
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.
这个属于非兼容变更,改成 optional,然后在代码中设置一个默认值 Month,这个设置为 Computed
661664b
to
3a93fb2
Compare
No description provided.