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

testcase: Adds new unit test case for resource alicloud_nas_access_rule alicloud_nas_access_group alicloud_oos_template #4604

Merged
merged 1 commit into from Feb 24, 2022

Conversation

thisnihonglei
Copy link
Contributor

No description provided.

@@ -166,3 +176,400 @@ variable "name" {
}
`, name)
}

func TestAccAlicloudNasAccessGroup_unit(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

单测覆盖率95.5%

@@ -121,3 +132,311 @@ resource "alicloud_nas_access_group" "example" {
}
`, name)
}

func TestAccAlicloudNasAccessRule_unit(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

单测覆盖率95.6%

@@ -216,3 +226,302 @@ var OosTemplateMap = map[string]string{
func OosTemplateBasicdependence(name string) string {
return ""
}

func TestAccAlicloudOOSStateConfiguration_unit(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

单测覆盖率95.0%

…le alicloud_nas_access_group alicloud_oos_template
* `type` - (Required, ForceNew, Deprecated in v1.92.0+) Replaced by `access_group_type` after version 1.92.0.
* `access_group_name` - (Required, ForceNew, Available in v1.92.0+) A Name of one Access Group.
* `access_group_type` - (Required, ForceNew, Available in v1.92.0+) A Type of one Access Group. Valid values: `Vpc` and `Classic`.
* `name` - (Optional, ForceNew, Deprecated in v1.92.0+) Replaced by `access_group_name` after version 1.92.0.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

GitHub CI报错,所以改成文档与Schema定义对齐

@xiaozhu36 xiaozhu36 merged commit 6d9d6b9 into aliyun:master Feb 24, 2022
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.

None yet

2 participants