From 5fc55a905ee8ab2d0454da46f299dd5dd43d36fe Mon Sep 17 00:00:00 2001 From: WeiMengXS Date: Sun, 8 Oct 2023 17:16:45 +0800 Subject: [PATCH] feat: e2e --- .changelog/2174.txt | 12 ++++++------ ...ource_tc_ssl_check_certificate_chain_operation.go | 10 +++++----- ..._tc_ssl_check_certificate_chain_operation_test.go | 6 +++--- ...resource_tc_ssl_complete_certificate_operation.go | 10 +++++----- ...rce_tc_ssl_complete_certificate_operation_test.go | 6 +++--- ...e_tc_ssl_deploy_certificate_instance_operation.go | 10 +++++----- ...ssl_deploy_certificate_instance_operation_test.go | 10 +++++----- ..._ssl_deploy_certificate_record_retry_operation.go | 10 +++++----- ...deploy_certificate_record_retry_operation_test.go | 8 ++++---- ...l_deploy_certificate_record_rollback_operation.go | 10 +++++----- ...loy_certificate_record_rollback_operation_test.go | 6 +++--- ...resource_tc_ssl_download_certificate_operation.go | 10 +++++----- ...rce_tc_ssl_download_certificate_operation_test.go | 8 ++++---- ...l_check_certificate_chain_operation.html.markdown | 4 ++-- .../ssl_complete_certificate_operation.html.markdown | 4 ++-- ...ploy_certificate_instance_operation.html.markdown | 4 ++-- ..._certificate_record_retry_operation.html.markdown | 4 ++-- ...rtificate_record_rollback_operation.html.markdown | 4 ++-- .../ssl_download_certificate_operation.html.markdown | 4 ++-- 19 files changed, 70 insertions(+), 70 deletions(-) diff --git a/.changelog/2174.txt b/.changelog/2174.txt index d4c886044c..5094b95105 100644 --- a/.changelog/2174.txt +++ b/.changelog/2174.txt @@ -1,23 +1,23 @@ ```release-note:new-resource -tencentcloud_ssl_check_certificate_chain +tencentcloud_ssl_check_certificate_chain_operation ``` ```release-note:new-resource -tencentcloud_ssl_complete_certificate +tencentcloud_ssl_complete_certificate_operation ``` ```release-note:new-resource -tencentcloud_ssl_deploy_certificate_instance +tencentcloud_ssl_deploy_certificate_instance_operation ``` ```release-note:new-resource -tencentcloud_ssl_deploy_certificate_record_retry +tencentcloud_ssl_deploy_certificate_record_retry_operation ``` ```release-note:new-resource -tencentcloud_ssl_deploy_certificate_record_rollback +tencentcloud_ssl_deploy_certificate_record_rollback_operation ``` ```release-note:new-resource -tencentcloud_ssl_download_certificate +tencentcloud_ssl_download_certificate_operation ``` \ No newline at end of file diff --git a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go index 07a60f3b0f..8b27286370 100644 --- a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go +++ b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation.go @@ -4,7 +4,7 @@ Provides a resource to create a ssl check_certificate_chain Example Usage ```hcl -resource "tencentcloud_ssl_check_certificate_chain" "check_certificate_chain" { +resource "tencentcloud_ssl_check_certificate_chain_operation" "check_certificate_chain" { certificate_chain = "-----BEGIN CERTIFICATE--·····---END CERTIFICATE-----" } ``` @@ -14,7 +14,7 @@ Import ssl check_certificate_chain can be imported using the id, e.g. ``` -terraform import tencentcloud_ssl_check_certificate_chain.check_certificate_chain check_certificate_chain_id +terraform import tencentcloud_ssl_check_certificate_chain_operation.check_certificate_chain check_certificate_chain_id ``` */ package tencentcloud @@ -50,7 +50,7 @@ func resourceTencentCloudSslCheckCertificateChainOperation() *schema.Resource { } func resourceTencentCloudSslCheckCertificateChainCreate(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain.create")() + defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain_operation.create")() defer inconsistentCheck(d, meta)() logId := getLogId(contextNil) @@ -87,14 +87,14 @@ func resourceTencentCloudSslCheckCertificateChainCreate(d *schema.ResourceData, } func resourceTencentCloudSslCheckCertificateChainRead(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain.read")() + defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain_operation.read")() defer inconsistentCheck(d, meta)() return nil } func resourceTencentCloudSslCheckCertificateChainDelete(d *schema.ResourceData, meta interface{}) error { - defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain.delete")() + defer logElapsed("resource.tencentcloud_ssl_check_certificate_chain_operation.delete")() defer inconsistentCheck(d, meta)() return nil diff --git a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation_test.go b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation_test.go index 8a81a22857..0c403853db 100644 --- a/tencentcloud/resource_tc_ssl_check_certificate_chain_operation_test.go +++ b/tencentcloud/resource_tc_ssl_check_certificate_chain_operation_test.go @@ -16,8 +16,8 @@ func TestAccTencentCloudSslCheckCertificateChainResource_basic(t *testing.T) { Steps: []resource.TestStep{ { Config: testAccSslCheckCertificateChain, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_check_certificate_chain.check_certificate_chain", "id"), - resource.TestCheckResourceAttrSet("tencentcloud_ssl_check_certificate_chain.check_certificate_chain", "certificate_chain"), + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_ssl_check_certificate_chain_operation.check_certificate_chain", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_ssl_check_certificate_chain_operation.check_certificate_chain", "certificate_chain"), ), }, }, @@ -26,7 +26,7 @@ func TestAccTencentCloudSslCheckCertificateChainResource_basic(t *testing.T) { const testAccSslCheckCertificateChain = ` -resource "tencentcloud_ssl_check_certificate_chain" "check_certificate_chain" { +resource "tencentcloud_ssl_check_certificate_chain_operation" "check_certificate_chain" { certificate_chain = <