@@ -76,7 +76,7 @@ func init() {
76
76
})
77
77
}
78
78
79
- func TestAccTencentCloudAsScalingConfig_basic (t * testing.T ) {
79
+ func TestAccTencentCloudAsScalingConfigResource_basic (t * testing.T ) {
80
80
resource .Test (t , resource.TestCase {
81
81
PreCheck : func () { tcacctest .AccPreCheck (t ) },
82
82
Providers : tcacctest .AccProviders ,
@@ -89,7 +89,7 @@ func TestAccTencentCloudAsScalingConfig_basic(t *testing.T) {
89
89
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "configuration_name" , "tf-as-basic" ),
90
90
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "image_id" , "img-2lr9q49h" ),
91
91
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 " ),
93
93
),
94
94
},
95
95
{
@@ -102,7 +102,7 @@ func TestAccTencentCloudAsScalingConfig_basic(t *testing.T) {
102
102
})
103
103
}
104
104
105
- func TestAccTencentCloudAsScalingConfig_loginSettings (t * testing.T ) {
105
+ func TestAccTencentCloudAsScalingConfigResource_loginSettings (t * testing.T ) {
106
106
resource .Test (t , resource.TestCase {
107
107
PreCheck : func () { tcacctest .AccPreCheck (t ) },
108
108
Providers : tcacctest .AccProviders ,
@@ -126,7 +126,7 @@ func TestAccTencentCloudAsScalingConfig_loginSettings(t *testing.T) {
126
126
})
127
127
}
128
128
129
- func TestAccTencentCloudAsScalingConfig_full (t * testing.T ) {
129
+ func TestAccTencentCloudAsScalingConfigResource_full (t * testing.T ) {
130
130
t .Parallel ()
131
131
resource .Test (t , resource.TestCase {
132
132
PreCheck : func () { tcacctest .AccPreCheck (t ) },
@@ -140,7 +140,7 @@ func TestAccTencentCloudAsScalingConfig_full(t *testing.T) {
140
140
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "configuration_name" , "tf-as-full" ),
141
141
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "image_id" , "img-2lr9q49h" ),
142
142
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 " ),
144
144
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "project_id" , "0" ),
145
145
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "system_disk_type" , "CLOUD_PREMIUM" ),
146
146
resource .TestCheckResourceAttr ("tencentcloud_as_scaling_config.launch_configuration" , "system_disk_size" , "50" ),
@@ -188,7 +188,7 @@ func TestAccTencentCloudAsScalingConfig_full(t *testing.T) {
188
188
})
189
189
}
190
190
191
- func TestAccTencentCloudAsScalingConfig_charge (t * testing.T ) {
191
+ func TestAccTencentCloudAsScalingConfigResource_charge (t * testing.T ) {
192
192
t .Parallel ()
193
193
resource .Test (t , resource.TestCase {
194
194
PreCheck : func () { tcacctest .AccPreCheck (t ) },
@@ -274,7 +274,7 @@ func testAccAsScalingConfig_basic() string {
274
274
resource "tencentcloud_as_scaling_config" "launch_configuration" {
275
275
configuration_name = "tf-as-basic"
276
276
image_id = "img-2lr9q49h"
277
- instance_types = ["SA1.SMALL1 "]
277
+ instance_types = ["SA5.MEDIUM2 "]
278
278
}
279
279
`
280
280
}
@@ -284,7 +284,7 @@ func testAccAsScalingConfig_full() string {
284
284
resource "tencentcloud_as_scaling_config" "launch_configuration" {
285
285
configuration_name = "tf-as-full"
286
286
image_id = "img-2lr9q49h"
287
- instance_types = ["SA1.SMALL1 "]
287
+ instance_types = ["SA5.MEDIUM2 "]
288
288
project_id = 0
289
289
system_disk_type = "CLOUD_PREMIUM"
290
290
system_disk_size = "50"
@@ -357,7 +357,7 @@ func testAccAsScalingConfig_charge() string {
357
357
resource "tencentcloud_as_scaling_config" "launch_configuration" {
358
358
configuration_name = "tf-as-basic-charge"
359
359
image_id = "img-2lr9q49h"
360
- instance_types = ["SA1.SMALL1 "]
360
+ instance_types = ["SA5.MEDIUM2 "]
361
361
instance_charge_type = "POSTPAID_BY_HOUR"
362
362
}
363
363
`
@@ -368,7 +368,7 @@ func testAccAsScalingConfig_charge_spot() string {
368
368
resource "tencentcloud_as_scaling_config" "launch_configuration" {
369
369
configuration_name = "tf-as-basic-charge-spot"
370
370
image_id = "img-2lr9q49h"
371
- instance_types = ["SA1.SMALL1 "]
371
+ instance_types = ["SA5.MEDIUM2 "]
372
372
instance_charge_type = "SPOTPAID"
373
373
spot_instance_type = "one-time"
374
374
spot_max_price = "1000"
@@ -381,7 +381,7 @@ func testAccAsScalingConfig_charge_prepaid() string {
381
381
resource "tencentcloud_as_scaling_config" "launch_configuration" {
382
382
configuration_name = "tf-as-basic-charge-prepaid"
383
383
image_id = "img-2lr9q49h"
384
- instance_types = ["SA1.SMALL1 "]
384
+ instance_types = ["SA5.MEDIUM2 "]
385
385
instance_charge_type = "PREPAID"
386
386
instance_charge_type_prepaid_period = 1
387
387
instance_charge_type_prepaid_renew_flag = "NOTIFY_AND_MANUAL_RENEW"
0 commit comments