Skip to content

Commit 1e0a5e6

Browse files
authored
adjust the account type to common for the cos_bucket_domain_certificate_attachment_test (#1266)
Co-authored-by: nickyinluo <nickyinluo@tencent.com>
1 parent c064c05 commit 1e0a5e6

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

tencentcloud/basic_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ data "tencentcloud_vpn_connections" "conns" {
4343
}
4444
`
4545

46-
//cos
46+
// cos
4747
const (
4848
defaultCosCertificateName = "keep-cos-domain-cert"
4949
defaultCosCertificateBucketPrefix = "keep-cert-test"
50+
defaultCosCertDomainName = "mikatong.com"
5051
)
5152

5253
// clb
@@ -127,7 +128,7 @@ variable "sg_id" {
127128
}
128129
`
129130

130-
//cvm-image
131+
// cvm-image
131132
const (
132133
defaultCvmId = "ins-8oqqya08"
133134
defaultDiskId = "disk-5jjrs2lm"
@@ -162,7 +163,7 @@ data "tencentcloud_instance_types" "default" {
162163
}
163164
`
164165

165-
//ckafka
166+
// ckafka
166167
const (
167168
defaultKafkaInstanceId = "ckafka-vv7wpvae"
168169
defaultKafkaVpcId = "vpc-68vi2d3h"

tencentcloud/resource_tc_cos_bucket_domain_certificate_attachment_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestAccTencentCloudCosBucketDomainCertificate_basic(t *testing.T) {
1515
id := new(string)
1616

1717
resource.Test(t, resource.TestCase{
18-
PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) },
18+
PreCheck: func() { testAccPreCheck(t) },
1919
Providers: testAccProviders,
2020
CheckDestroy: testAccCheckCosBucketDoaminCertificateDestroy(id),
2121
Steps: []resource.TestStep{
@@ -106,12 +106,6 @@ provider "tencentcloud" {
106106
region = "ap-singapore"
107107
}
108108
109-
data "tencentcloud_domains" "domains" {}
110-
111-
locals {
112-
domain = data.tencentcloud_domains.domains.list.0.domain_name
113-
domainKeep = "keep.${local.domain}"
114-
}
115109
`
116110

117111
const testAccCosBucketRes = `
@@ -141,7 +135,7 @@ const testAccCosBucketDomainCertificate_basic = userInfoData + testAccCosDomain
141135
resource "tencentcloud_cos_bucket_domain_certificate_attachment" "basic" {
142136
bucket = "` + defaultCosCertificateBucketPrefix + `-${local.app_id}"
143137
domain_certificate {
144-
domain = "${local.domainKeep}"
138+
domain = "` + defaultCosCertDomainName + `"
145139
certificate {
146140
cert_type = "CustomCert"
147141
custom_cert {

0 commit comments

Comments
 (0)