Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tencentcloud/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ locals {

const defaultScfNamespace = "preset-scf-namespace"

const defaultFileSystemName = "preset_cfs"
const defaultFileSystemName = "keep_preset_cfs"

const defaultFileSystem = `
data "tencentcloud_cfs_file_systems" "fs" {
Expand All @@ -401,7 +401,6 @@ variable "mount_id" {
locals {
cfs = data.tencentcloud_cfs_file_systems.fs.file_system_list.0
cfs_id = local.cfs.file_system_id
access_group_id = local.cfs.access_group_id
}`

const defaultCamVariables = `
Expand Down
4 changes: 2 additions & 2 deletions tencentcloud/resource_tc_cfs_access_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ func testAccCheckCfsAccessRuleExists(n string) resource.TestCheckFunc {
}
}

const testAccCfsAccessRule = `
const testAccCfsAccessRule = defaultCfsAccessGroup + `

resource "tencentcloud_cfs_access_rule" "foo" {
access_group_id = "` + BasicCfsAccessGroup + `"
access_group_id = local.cfs_access_group_id
auth_client_ip = "10.10.1.0/24"
priority = 1
}
Expand Down
8 changes: 2 additions & 6 deletions tencentcloud/resource_tc_cfs_file_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,12 @@ func testAccCheckCfsFileSystemExists(n string) resource.TestCheckFunc {
}
}

const testAccCfsFileSystem = `
const testAccCfsFileSystem = defaultCfsAccessGroup + `
resource "tencentcloud_vpc" "vpc" {
name = "test-cfs-vpc"
cidr_block = "10.2.0.0/16"
}

resource "tencentcloud_cfs_access_group" "foo" {
name = "test_cfs_access_rule"
}

resource "tencentcloud_subnet" "subnet" {
vpc_id = tencentcloud_vpc.vpc.id
name = "test-cfs-subnet"
Expand All @@ -140,7 +136,7 @@ resource "tencentcloud_subnet" "subnet" {
resource "tencentcloud_cfs_file_system" "foo" {
name = "test_cfs_file_system"
availability_zone = "ap-guangzhou-3"
access_group_id = tencentcloud_cfs_access_group.foo.id
access_group_id = local.cfs_access_group_id
protocol = "NFS"
vpc_id = tencentcloud_vpc.vpc.id
subnet_id = tencentcloud_subnet.subnet.id
Expand Down