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

New Resource: alicloud_ddos_basic_defense_threshold #4973

Merged
merged 1 commit into from
May 20, 2022

Conversation

Wanghx0991
Copy link
Contributor

No description provided.

State: schema.ImportStatePassthrough,
},
Schema: map[string]*schema.Schema{
"ddos_region_id": {
Copy link
Member

Choose a reason for hiding this comment

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

这个regionid 没必要写啊,这个是跟实例的所在的region是一样的,直接使用 provider中的region就行

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

}

`, name)
}
Copy link
Member

Choose a reason for hiding this comment

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

单元测试呢

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,230 @@
package alicloud
Copy link
Member

Choose a reason for hiding this comment

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

这个资源的名字不对吧,既然用的是 ModifyDefenseThreshold,那么把 antiddos 改成 defense_threshold

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Wanghx0991 Wanghx0991 force-pushed the antiddos branch 3 times, most recently from f36e263 to d19c22f Compare May 19, 2022 10:24
@Wanghx0991 Wanghx0991 changed the title New Resource: alicloud_ddos_basic_antiddos New Resource: alicloud_ddos_basic_defense_threshold May 19, 2022
@Wanghx0991 Wanghx0991 force-pushed the antiddos branch 2 times, most recently from a45fec6 to 071a3d9 Compare May 19, 2022 12:02
`, name)
}

func TestAccAlicloudDdosBasicDefenseThreshold_unit(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

单元测试的标题都改为 TestUnitAlicloudxxx 了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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