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_fileset alicloud_nas_auto_snapshot_policy alicloud_nas_file_system #4609

Merged
merged 1 commit into from Feb 25, 2022

Conversation

thisnihonglei
Copy link
Contributor

No description provided.

@@ -248,3 +258,322 @@ variable "name" {
}
`, name)
}

func TestAccAlicloudNASAutoSnapshotPolicy_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.

单测97.4%覆盖率

@@ -576,3 +586,365 @@ locals {
}
`, name)
}

func TestAccAlicloudNasFileSystemTags_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.

单测93.3%覆盖率,剩余代码无法覆盖

@@ -102,3 +113,296 @@ resource "alicloud_nas_file_system" "default" {
}
`, name)
}
func TestAccAlicloudNASFileset_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.7%覆盖率

@thisnihonglei thisnihonglei force-pushed the nasdataflowmock branch 2 times, most recently from 96e5d33 to 9417373 Compare February 25, 2022 02:07
…licloud_nas_auto_snapshot_policy alicloud_nas_file_system
@xiaozhu36 xiaozhu36 merged commit 2364058 into aliyun:master Feb 25, 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