Skip to content

Commit 8470b8f

Browse files
tongyimingmikatong
andauthored
fix cbs unit test (#1331)
Co-authored-by: mikatong <mikatong@tencent.com>
1 parent 0ae4cb6 commit 8470b8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tencentcloud/resource_tc_cbs_storage_attachment_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ func testAccCheckCbsStorageAttachmentExists(n string) resource.TestCheckFunc {
8787
}
8888
}
8989

90-
const testAccCbsStorageAttachmentConfig = defaultAzVariable + defaultImages + `
90+
const testAccCbsStorageAttachmentConfig = defaultInstanceVariable + defaultAzVariable + `
9191
resource "tencentcloud_instance" "test_cbs_attach" {
9292
instance_name = "test-cbs-attach-cvm"
9393
availability_zone = var.default_az
94-
image_id = var.default_img_id
94+
image_id = data.tencentcloud_images.default.images.0.image_id
9595
system_disk_type = "CLOUD_PREMIUM"
96+
instance_type = data.tencentcloud_instance_types.default.instance_types.0.instance_type
9697
}
9798
9899
resource "tencentcloud_cbs_storage" "foo" {

0 commit comments

Comments
 (0)