@@ -25,20 +25,13 @@ func TestAccTencentCloudGaapCertificate_basic(t *testing.T) {
2525 Check : resource .ComposeTestCheckFunc (
2626 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
2727 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "BASIC" ),
28- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , "test:tx2KGdo3zJg/." ),
29- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , "" ),
3028 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
3129 resource .TestCheckNoResourceAttr ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
3230 resource .TestCheckNoResourceAttr ("tencentcloud_gaap_certificate.foo" , "end_time" ),
3331 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "issuer_cn" , "" ),
3432 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "subject_cn" , "" ),
3533 ),
3634 },
37- {
38- ResourceName : "tencentcloud_gaap_certificate.foo" ,
39- ImportState : true ,
40- ImportStateVerify : true ,
41- },
4235 },
4336 })
4437}
@@ -58,8 +51,6 @@ func TestAccTencentCloudGaapCertificate_clientCA(t *testing.T) {
5851 Check : resource .ComposeTestCheckFunc (
5952 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
6053 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "CLIENT" ),
61- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , testAccGaapCertificateClientCA ),
62- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , testAccGaapCertificateClientCAKey ),
6354 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
6455 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
6556 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "end_time" ),
@@ -86,8 +77,6 @@ func TestAccTencentCloudGaapCertificate_ServerSSL(t *testing.T) {
8677 Check : resource .ComposeTestCheckFunc (
8778 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
8879 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "SERVER" ),
89- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , testAccGaapCertificateServerCert ),
90- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , testAccGaapCertificateServerKey ),
9180 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
9281 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
9382 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "end_time" ),
@@ -114,8 +103,6 @@ func TestAccTencentCloudGaapCertificate_realserverCA(t *testing.T) {
114103 Check : resource .ComposeTestCheckFunc (
115104 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
116105 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "REALSERVER" ),
117- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , testAccGaapCertificateClientCA ),
118- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , testAccGaapCertificateClientCAKey ),
119106 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
120107 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
121108 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "end_time" ),
@@ -142,8 +129,6 @@ func TestAccTencentCloudGaapCertificate_ProxySSL(t *testing.T) {
142129 Check : resource .ComposeTestCheckFunc (
143130 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
144131 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "PROXY" ),
145- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , testAccGaapCertificateServerCert ),
146- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , testAccGaapCertificateServerKey ),
147132 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
148133 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
149134 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "end_time" ),
@@ -170,8 +155,6 @@ func TestAccTencentCloudGaapCertificate_updateName(t *testing.T) {
170155 Check : resource .ComposeTestCheckFunc (
171156 testAccCheckGaapCertificateExists ("tencentcloud_gaap_certificate.foo" , id ),
172157 resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "type" , "BASIC" ),
173- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "content" , "test:tx2KGdo3zJg/." ),
174- resource .TestCheckResourceAttr ("tencentcloud_gaap_certificate.foo" , "key" , "" ),
175158 resource .TestCheckResourceAttrSet ("tencentcloud_gaap_certificate.foo" , "create_time" ),
176159 resource .TestCheckNoResourceAttr ("tencentcloud_gaap_certificate.foo" , "begin_time" ),
177160 resource .TestCheckNoResourceAttr ("tencentcloud_gaap_certificate.foo" , "end_time" ),
0 commit comments