@@ -76,7 +76,7 @@ func init() {
7676 })
7777}
7878
79- func TestAccTencentCloudAsScalingConfig_basic (t * testing.T ) {
79+ func TestAccTencentCloudAsScalingConfigResource_basic (t * testing.T ) {
8080 resource .Test (t , resource.TestCase {
8181 PreCheck : func () { tcacctest .AccPreCheck (t ) },
8282 Providers : tcacctest .AccProviders ,
@@ -89,7 +89,7 @@ func TestAccTencentCloudAsScalingConfig_basic(t *testing.T) {
8989 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "configuration_name" , "tf-as-basic" ),
9090 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "image_id" , "img-2lr9q49h" ),
9191 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.#" , "1" ),
92- resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.0" , "SA1.SMALL1 " ),
92+ resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.0" , "SA5.MEDIUM2 " ),
9393 ),
9494 },
9595 {
@@ -102,7 +102,7 @@ func TestAccTencentCloudAsScalingConfig_basic(t *testing.T) {
102102 })
103103}
104104
105- func TestAccTencentCloudAsScalingConfig_loginSettings (t * testing.T ) {
105+ func TestAccTencentCloudAsScalingConfigResource_loginSettings (t * testing.T ) {
106106 resource .Test (t , resource.TestCase {
107107 PreCheck : func () { tcacctest .AccPreCheck (t ) },
108108 Providers : tcacctest .AccProviders ,
@@ -126,7 +126,7 @@ func TestAccTencentCloudAsScalingConfig_loginSettings(t *testing.T) {
126126 })
127127}
128128
129- func TestAccTencentCloudAsScalingConfig_full (t * testing.T ) {
129+ func TestAccTencentCloudAsScalingConfigResource_full (t * testing.T ) {
130130 t .Parallel ()
131131 resource .Test (t , resource.TestCase {
132132 PreCheck : func () { tcacctest .AccPreCheck (t ) },
@@ -140,7 +140,7 @@ func TestAccTencentCloudAsScalingConfig_full(t *testing.T) {
140140 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "configuration_name" , "tf-as-full" ),
141141 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "image_id" , "img-2lr9q49h" ),
142142 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.#" , "1" ),
143- resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.0" , "SA1.SMALL1 " ),
143+ resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "instance_types.0" , "SA5.MEDIUM2 " ),
144144 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "project_id" , "0" ),
145145 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "system_disk_type" , "CLOUD_PREMIUM" ),
146146 resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "system_disk_size" , "50" ),
@@ -188,7 +188,7 @@ func TestAccTencentCloudAsScalingConfig_full(t *testing.T) {
188188 })
189189}
190190
191- func TestAccTencentCloudAsScalingConfig_charge (t * testing.T ) {
191+ func TestAccTencentCloudAsScalingConfigResource_charge (t * testing.T ) {
192192 t .Parallel ()
193193 resource .Test (t , resource.TestCase {
194194 PreCheck : func () { tcacctest .AccPreCheck (t ) },
@@ -274,7 +274,7 @@ func testAccAsScalingConfig_basic() string {
274274resource "tencentcloud_as_scaling_config" "launch_configuration" {
275275 configuration_name = "tf-as-basic"
276276 image_id = "img-2lr9q49h"
277- instance_types = ["SA1.SMALL1 "]
277+ instance_types = ["SA5.MEDIUM2 "]
278278}
279279 `
280280}
@@ -284,7 +284,7 @@ func testAccAsScalingConfig_full() string {
284284resource "tencentcloud_as_scaling_config" "launch_configuration" {
285285 configuration_name = "tf-as-full"
286286 image_id = "img-2lr9q49h"
287- instance_types = ["SA1.SMALL1 "]
287+ instance_types = ["SA5.MEDIUM2 "]
288288 project_id = 0
289289 system_disk_type = "CLOUD_PREMIUM"
290290 system_disk_size = "50"
@@ -357,7 +357,7 @@ func testAccAsScalingConfig_charge() string {
357357resource "tencentcloud_as_scaling_config" "launch_configuration" {
358358 configuration_name = "tf-as-basic-charge"
359359 image_id = "img-2lr9q49h"
360- instance_types = ["SA1.SMALL1 "]
360+ instance_types = ["SA5.MEDIUM2 "]
361361 instance_charge_type = "POSTPAID_BY_HOUR"
362362}
363363 `
@@ -368,7 +368,7 @@ func testAccAsScalingConfig_charge_spot() string {
368368resource "tencentcloud_as_scaling_config" "launch_configuration" {
369369 configuration_name = "tf-as-basic-charge-spot"
370370 image_id = "img-2lr9q49h"
371- instance_types = ["SA1.SMALL1 "]
371+ instance_types = ["SA5.MEDIUM2 "]
372372 instance_charge_type = "SPOTPAID"
373373 spot_instance_type = "one-time"
374374 spot_max_price = "1000"
@@ -381,7 +381,7 @@ func testAccAsScalingConfig_charge_prepaid() string {
381381resource "tencentcloud_as_scaling_config" "launch_configuration" {
382382 configuration_name = "tf-as-basic-charge-prepaid"
383383 image_id = "img-2lr9q49h"
384- instance_types = ["SA1.SMALL1 "]
384+ instance_types = ["SA5.MEDIUM2 "]
385385 instance_charge_type = "PREPAID"
386386 instance_charge_type_prepaid_period = 1
387387 instance_charge_type_prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW"
0 commit comments