diff --git a/pkg/core/certmgr/providers-tester/1panel/1panel_test.go b/pkg/core/certmgr/providers-tester/1panel/1panel_test.go index 5468484ef..9e2b32ddb 100644 --- a/pkg/core/certmgr/providers-tester/1panel/1panel_test.go +++ b/pkg/core/certmgr/providers-tester/1panel/1panel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package onepanelssl_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./1panel_test.go -args \ + go test -tags=tester -v ./1panel_test.go -args \ --1PANEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --1PANEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --1PANEL_SERVERURL="http://127.0.0.1:20410" \ diff --git a/pkg/core/certmgr/providers-tester/aliyun-cas/aliyun_cas_test.go b/pkg/core/certmgr/providers-tester/aliyun-cas/aliyun_cas_test.go index 834ca9d38..7d268a19c 100644 --- a/pkg/core/certmgr/providers-tester/aliyun-cas/aliyun_cas_test.go +++ b/pkg/core/certmgr/providers-tester/aliyun-cas/aliyun_cas_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyuncas_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_cas_test.go -args \ + go test -tags=tester -v ./aliyun_cas_test.go -args \ --ALIYUNCAS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNCAS_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNCAS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/aliyun-slb/aliyun_slb_test.go b/pkg/core/certmgr/providers-tester/aliyun-slb/aliyun_slb_test.go index 98755dd93..aad80d4ab 100644 --- a/pkg/core/certmgr/providers-tester/aliyun-slb/aliyun_slb_test.go +++ b/pkg/core/certmgr/providers-tester/aliyun-slb/aliyun_slb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunslb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_slb_test.go -args \ + go test -tags=tester -v ./aliyun_slb_test.go -args \ --ALIYUNSLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNSLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNSLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/aws-acm/aws_acm_test.go b/pkg/core/certmgr/providers-tester/aws-acm/aws_acm_test.go index 283d37c33..77b0f5125 100644 --- a/pkg/core/certmgr/providers-tester/aws-acm/aws_acm_test.go +++ b/pkg/core/certmgr/providers-tester/aws-acm/aws_acm_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsacm_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_acm_test.go -args \ + go test -tags=tester -v ./aws_acm_test.go -args \ --AWSACM_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSACM_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSACM_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/aws-iam/aws_iam_test.go b/pkg/core/certmgr/providers-tester/aws-iam/aws_iam_test.go index e89a44aba..82a1557fa 100644 --- a/pkg/core/certmgr/providers-tester/aws-iam/aws_iam_test.go +++ b/pkg/core/certmgr/providers-tester/aws-iam/aws_iam_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsiam_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_iam_test.go -args \ + go test -tags=tester -v ./aws_iam_test.go -args \ --AWSIAM_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSIAM_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSIAM_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/axisnow/axisnow_test.go b/pkg/core/certmgr/providers-tester/axisnow/axisnow_test.go index 098f7bc21..36ed51108 100644 --- a/pkg/core/certmgr/providers-tester/axisnow/axisnow_test.go +++ b/pkg/core/certmgr/providers-tester/axisnow/axisnow_test.go @@ -1,3 +1,5 @@ +//go:build tester + package axisnow_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./axisnow_test.go -args \ + go test -tags=tester -v ./axisnow_test.go -args \ --AXISNOW_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AXISNOW_TESTKEYPATH="/path/to/your-test-key.pem" \ --AXISNOW_APITOKEN="your-api-token" diff --git a/pkg/core/certmgr/providers-tester/azure-keyvault/azure_keyvault_test.go b/pkg/core/certmgr/providers-tester/azure-keyvault/azure_keyvault_test.go index 9977a0be0..1a94b414b 100644 --- a/pkg/core/certmgr/providers-tester/azure-keyvault/azure_keyvault_test.go +++ b/pkg/core/certmgr/providers-tester/azure-keyvault/azure_keyvault_test.go @@ -1,3 +1,5 @@ +//go:build tester + package azurekeyvault_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./azure_keyvault_test.go -args \ + go test -tags=tester -v ./azure_keyvault_test.go -args \ --AZUREKEYVAULT_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AZUREKEYVAULT_TESTKEYPATH="/path/to/your-test-key.pem" \ --AZUREKEYVAULT_TENANTID="your-tenant-id" \ diff --git a/pkg/core/certmgr/providers-tester/baiducloud-cert/baiducloud_cert_test.go b/pkg/core/certmgr/providers-tester/baiducloud-cert/baiducloud_cert_test.go index 6be385909..9ae067b0c 100644 --- a/pkg/core/certmgr/providers-tester/baiducloud-cert/baiducloud_cert_test.go +++ b/pkg/core/certmgr/providers-tester/baiducloud-cert/baiducloud_cert_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baiducloudcert_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./baiducloud_cert_test.go -args \ + go test -tags=tester -v ./baiducloud_cert_test.go -args \ --BAIDUCLOUDCERT_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAIDUCLOUDCERT_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAIDUCLOUDCERT_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/baishan-cdn/baishan_cdn_test.go b/pkg/core/certmgr/providers-tester/baishan-cdn/baishan_cdn_test.go index a9906a1d0..ffd129c59 100644 --- a/pkg/core/certmgr/providers-tester/baishan-cdn/baishan_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/baishan-cdn/baishan_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baishancdn_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./baishan_cdn_test.go -args \ + go test -tags=tester -v ./baishan_cdn_test.go -args \ --BAISHANCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAISHANCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAISHANCDN_APITOKEN="your-api-token" diff --git a/pkg/core/certmgr/providers-tester/byteplus-cdn/byteplus_cdn_test.go b/pkg/core/certmgr/providers-tester/byteplus-cdn/byteplus_cdn_test.go index 8473f2dcf..76a60e180 100644 --- a/pkg/core/certmgr/providers-tester/byteplus-cdn/byteplus_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/byteplus-cdn/byteplus_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package bytepluscdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_cdn_test.go -args \ + go test -tags=tester -v ./byteplus_cdn_test.go -args \ --BYTEPLUSCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/byteplus-certcenter/byteplus_certcenter_test.go b/pkg/core/certmgr/providers-tester/byteplus-certcenter/byteplus_certcenter_test.go index 95d5abead..7b8e7cfe0 100644 --- a/pkg/core/certmgr/providers-tester/byteplus-certcenter/byteplus_certcenter_test.go +++ b/pkg/core/certmgr/providers-tester/byteplus-certcenter/byteplus_certcenter_test.go @@ -1,3 +1,5 @@ +//go:build tester + package bytepluscertcenter_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_certcenter_test.go -args \ + go test -tags=tester -v ./byteplus_certcenter_test.go -args \ --BYTEPLUSCERTCENTER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSCERTCENTER_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSCERTCENTER_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/byteplus-medialive/byteplus_medialive_test.go b/pkg/core/certmgr/providers-tester/byteplus-medialive/byteplus_medialive_test.go index fdfdcf178..fb4acca41 100644 --- a/pkg/core/certmgr/providers-tester/byteplus-medialive/byteplus_medialive_test.go +++ b/pkg/core/certmgr/providers-tester/byteplus-medialive/byteplus_medialive_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplusmedialive_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_medialive_test.go -args \ + go test -tags=tester -v ./byteplus_medialive_test.go -args \ --BYTEPLUSMEDIALIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSMEDIALIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSMEDIALIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go b/pkg/core/certmgr/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go index 68e8d5055..d3b40604e 100644 --- a/pkg/core/certmgr/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go +++ b/pkg/core/certmgr/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cmcccloudvlb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./cmcccloud_vlb_test.go -args \ + go test -tags=tester -v ./cmcccloud_vlb_test.go -args \ --CMCCCLOUDVLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CMCCCLOUDVLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --CMCCCLOUDVLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go index 4c2138913..93220f278 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudao_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_ao_test.go -args \ + go test -tags=tester -v ./ctcccloud_ao_test.go -args \ --CTCCCLOUDAO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDAO_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDAO_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go index 4c18c98e3..cbdb451d7 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudcdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_cdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_cdn_test.go -args \ --CTCCCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go index f92e9eab0..d6b420265 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudcms_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_cms_test.go -args \ + go test -tags=tester -v ./ctcccloud_cms_test.go -args \ --CTCCCLOUDCMS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDCMS_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDCMS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go index 03f136254..87b98e93f 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudelb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_elb_test.go -args \ + go test -tags=tester -v ./ctcccloud_elb_test.go -args \ --CTCCCLOUDELB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDELB_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDELB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go index da9c63e62..7e2d64898 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudicdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_icdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_icdn_test.go -args \ --CTCCCLOUDICDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDICDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDICDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go b/pkg/core/certmgr/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go index fb4c33cff..3774e37b4 100644 --- a/pkg/core/certmgr/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go +++ b/pkg/core/certmgr/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudlvdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_lvdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_lvdn_test.go -args \ --CTCCCLOUDLVDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDLVDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDLVDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/digitalocean-certificate/digitalocean_certificate_test.go b/pkg/core/certmgr/providers-tester/digitalocean-certificate/digitalocean_certificate_test.go index 4a2a3ea63..bb3c4d7e9 100644 --- a/pkg/core/certmgr/providers-tester/digitalocean-certificate/digitalocean_certificate_test.go +++ b/pkg/core/certmgr/providers-tester/digitalocean-certificate/digitalocean_certificate_test.go @@ -1,3 +1,5 @@ +//go:build tester + package digitaloceancertificate_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./digitalocean_certificate_test.go -args \ + go test -tags=tester -v ./digitalocean_certificate_test.go -args \ --DIGITALOCEANCERTIFICATE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --DIGITALOCEANCERTIFICATE_TESTKEYPATH="/path/to/your-test-key.pem" \ --DIGITALOCEANCERTIFICATE_ACCESSTOKEN="your-access-token" diff --git a/pkg/core/certmgr/providers-tester/dogecloud/dogecloud_test.go b/pkg/core/certmgr/providers-tester/dogecloud/dogecloud_test.go index 6add97d97..550dcc817 100644 --- a/pkg/core/certmgr/providers-tester/dogecloud/dogecloud_test.go +++ b/pkg/core/certmgr/providers-tester/dogecloud/dogecloud_test.go @@ -1,3 +1,5 @@ +//go:build tester + package dogecloud_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./dogecloud_test.go -args \ + go test -tags=tester -v ./dogecloud_test.go -args \ --DOGECLOUD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --DOGECLOUD_TESTKEYPATH="/path/to/your-test-key.pem" \ --DOGECLOUD_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/certmgr/providers-tester/dokploy/dokploy_test.go b/pkg/core/certmgr/providers-tester/dokploy/dokploy_test.go index cbbefcca0..df84a8765 100644 --- a/pkg/core/certmgr/providers-tester/dokploy/dokploy_test.go +++ b/pkg/core/certmgr/providers-tester/dokploy/dokploy_test.go @@ -1,3 +1,5 @@ +//go:build tester + package dokploy_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./dokploy_test.go -args \ + go test -tags=tester -v ./dokploy_test.go -args \ --DOKPLOY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --DOKPLOY_TESTKEYPATH="/path/to/your-test-key.pem" \ --DOKPLOY_SERVERURL="http://127.0.0.1:3000" \ diff --git a/pkg/core/certmgr/providers-tester/gcore-cdn/gcore_cdn_test.go b/pkg/core/certmgr/providers-tester/gcore-cdn/gcore_cdn_test.go index dd947c541..750904ccb 100644 --- a/pkg/core/certmgr/providers-tester/gcore-cdn/gcore_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/gcore-cdn/gcore_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package gcorecdn_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./gcore_cdn_test.go -args \ + go test -tags=tester -v ./gcore_cdn_test.go -args \ --GCORECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --GCORECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --GCORECDN_APITOKEN="your-api-token" diff --git a/pkg/core/certmgr/providers-tester/googlecloud-certificatemanager/googlecloud_certificatemanager_test.go b/pkg/core/certmgr/providers-tester/googlecloud-certificatemanager/googlecloud_certificatemanager_test.go index a59faca56..41da54d36 100644 --- a/pkg/core/certmgr/providers-tester/googlecloud-certificatemanager/googlecloud_certificatemanager_test.go +++ b/pkg/core/certmgr/providers-tester/googlecloud-certificatemanager/googlecloud_certificatemanager_test.go @@ -1,3 +1,5 @@ +//go:build tester + package googlecloudcertificatemanager_test import ( @@ -28,7 +30,7 @@ func init() { /* Shell command to run this test: - go test -v ./googlecloud_certificatemanager_test.go -args \ + go test -tags=tester -v ./googlecloud_certificatemanager_test.go -args \ --GOOGLECLOUDCERTIFICATEMANAGER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --GOOGLECLOUDCERTIFICATEMANAGER_TESTKEYPATH="/path/to/your-test-key.pem" \ --GOOGLECLOUDCERTIFICATEMANAGER_PROJECTID="your-project-id" \ diff --git a/pkg/core/certmgr/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go b/pkg/core/certmgr/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go index 181fd2fd2..9cbb4f642 100644 --- a/pkg/core/certmgr/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go +++ b/pkg/core/certmgr/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudelb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_elb_test.go -args \ + go test -tags=tester -v ./huaweicloud_elb_test.go -args \ --HUAWEICLOUDELB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDELB_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDELB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/huaweicloud-scm/huaweicloud_scm_test.go b/pkg/core/certmgr/providers-tester/huaweicloud-scm/huaweicloud_scm_test.go index 536f1a8de..b42eaead9 100644 --- a/pkg/core/certmgr/providers-tester/huaweicloud-scm/huaweicloud_scm_test.go +++ b/pkg/core/certmgr/providers-tester/huaweicloud-scm/huaweicloud_scm_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudscm_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_scm_test.go -args \ + go test -tags=tester -v ./huaweicloud_scm_test.go -args \ --HUAWEICLOUDSCM_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDSCM_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDSCM_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go b/pkg/core/certmgr/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go index bc39ea2f9..028aa261d 100644 --- a/pkg/core/certmgr/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go +++ b/pkg/core/certmgr/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudwaf_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_waf_test.go -args \ + go test -tags=tester -v ./huaweicloud_waf_test.go -args \ --HUAWEICLOUDWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDWAF_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/jdcloud-ssl/jdcloud_ssl_test.go b/pkg/core/certmgr/providers-tester/jdcloud-ssl/jdcloud_ssl_test.go index 5425c72b9..d4705f175 100644 --- a/pkg/core/certmgr/providers-tester/jdcloud-ssl/jdcloud_ssl_test.go +++ b/pkg/core/certmgr/providers-tester/jdcloud-ssl/jdcloud_ssl_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudssl_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_ssl_test.go -args \ + go test -tags=tester -v ./jdcloud_ssl_test.go -args \ --JDCLOUDSSL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDSSL_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDSSL_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ksyun-kcm/ksyun_kcm_test.go b/pkg/core/certmgr/providers-tester/ksyun-kcm/ksyun_kcm_test.go index ef9cd4de6..b6b937b1b 100644 --- a/pkg/core/certmgr/providers-tester/ksyun-kcm/ksyun_kcm_test.go +++ b/pkg/core/certmgr/providers-tester/ksyun-kcm/ksyun_kcm_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ksyunkcm_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ksyun_kcm_test.go -args \ + go test -tags=tester -v ./ksyun_kcm_test.go -args \ --KSYUNKCM_TESTCERTPATH="/path/to/your-test-cert.pem" \ --KSYUNKCM_TESTKEYPATH="/path/to/your-test-key.pem" \ --KSYUNKCM_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/ksyun-slb/ksyun_slb_test.go b/pkg/core/certmgr/providers-tester/ksyun-slb/ksyun_slb_test.go index cd85eb222..56de89645 100644 --- a/pkg/core/certmgr/providers-tester/ksyun-slb/ksyun_slb_test.go +++ b/pkg/core/certmgr/providers-tester/ksyun-slb/ksyun_slb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ksyunslb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ksyun_slb_test.go -args \ + go test -tags=tester -v ./ksyun_slb_test.go -args \ --KSYUNSLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --KSYUNSLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --KSYUNSLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/nginxproxymanager/nginxproxymanager_test.go b/pkg/core/certmgr/providers-tester/nginxproxymanager/nginxproxymanager_test.go index 93b16ed08..04d435bad 100644 --- a/pkg/core/certmgr/providers-tester/nginxproxymanager/nginxproxymanager_test.go +++ b/pkg/core/certmgr/providers-tester/nginxproxymanager/nginxproxymanager_test.go @@ -1,3 +1,5 @@ +//go:build tester + package nginxproxymanager_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./nginxproxymanager_test.go -args \ + go test -tags=tester -v ./nginxproxymanager_test.go -args \ --NGINXPROXYMANAGER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --NGINXPROXYMANAGER_TESTKEYPATH="/path/to/your-test-key.pem" \ --NGINXPROXYMANAGER_SERVERURL="http://127.0.0.1:81" \ diff --git a/pkg/core/certmgr/providers-tester/oraclecloud-certificatesmgmt/oraclecloud_certificatesmgmt_test.go b/pkg/core/certmgr/providers-tester/oraclecloud-certificatesmgmt/oraclecloud_certificatesmgmt_test.go index af00ef6ac..eecc8d270 100644 --- a/pkg/core/certmgr/providers-tester/oraclecloud-certificatesmgmt/oraclecloud_certificatesmgmt_test.go +++ b/pkg/core/certmgr/providers-tester/oraclecloud-certificatesmgmt/oraclecloud_certificatesmgmt_test.go @@ -1,3 +1,5 @@ +//go:build tester + package oraclecloudcertificatesmgmt_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./oraclecloud_certificatesmgmt_test.go -args \ + go test -tags=tester -v ./oraclecloud_certificatesmgmt_test.go -args \ --ORACLECLOUDCERTIFICATESMGMT_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ORACLECLOUDCERTIFICATESMGMT_TESTKEYPATH="/path/to/your-test-key.pem" \ --ORACLECLOUDCERTIFICATESMGMT_PRIVATEKEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----" \ diff --git a/pkg/core/certmgr/providers-tester/qingcloud-lb/qingcloud_lb_test.go b/pkg/core/certmgr/providers-tester/qingcloud-lb/qingcloud_lb_test.go index ab24233f2..6008c5a7a 100644 --- a/pkg/core/certmgr/providers-tester/qingcloud-lb/qingcloud_lb_test.go +++ b/pkg/core/certmgr/providers-tester/qingcloud-lb/qingcloud_lb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qingcloudlb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./qingcloud_lb_test.go -args \ + go test -tags=tester -v ./qingcloud_lb_test.go -args \ --QINGCLOUDLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINGCLOUDLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINGCLOUDLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/qiniu-sslcert/qiniu_sslcert_test.go b/pkg/core/certmgr/providers-tester/qiniu-sslcert/qiniu_sslcert_test.go index 3940cd552..f6355ba71 100644 --- a/pkg/core/certmgr/providers-tester/qiniu-sslcert/qiniu_sslcert_test.go +++ b/pkg/core/certmgr/providers-tester/qiniu-sslcert/qiniu_sslcert_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qiniusslcert_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./qiniu_sslcert_test.go -args \ + go test -tags=tester -v ./qiniu_sslcert_test.go -args \ --QINIUSSLCERT_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINIUSSLCERT_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINIUSSLCERT_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/certmgr/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go b/pkg/core/certmgr/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go index db70319d2..ef3073f35 100644 --- a/pkg/core/certmgr/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go +++ b/pkg/core/certmgr/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go @@ -1,3 +1,5 @@ +//go:build tester + package rainyunsslcenter_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./rainyun_sslcenter_test.go -args \ + go test -tags=tester -v ./rainyun_sslcenter_test.go -args \ --RAINYUNSSLCENTER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --RAINYUNSSLCENTER_TESTKEYPATH="/path/to/your-test-key.pem" \ --RAINYUNSSLCENTER_APIKEY="your-api-key" diff --git a/pkg/core/certmgr/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go b/pkg/core/certmgr/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go index 83a02a8d3..da09babef 100644 --- a/pkg/core/certmgr/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go +++ b/pkg/core/certmgr/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudgaap_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_gaap_test.go -args \ + go test -tags=tester -v ./tencentcloud_gaap_test.go -args \ --TENCENTCLOUDGAAP_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDGAAP_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDGAAP_SECRETID="your-secret-id" \ diff --git a/pkg/core/certmgr/providers-tester/tencentcloud-ssl/tencentcloud_ssl_test.go b/pkg/core/certmgr/providers-tester/tencentcloud-ssl/tencentcloud_ssl_test.go index 72378be59..cf32955ca 100644 --- a/pkg/core/certmgr/providers-tester/tencentcloud-ssl/tencentcloud_ssl_test.go +++ b/pkg/core/certmgr/providers-tester/tencentcloud-ssl/tencentcloud_ssl_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudssl_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_ssl_test.go -args \ + go test -tags=tester -v ./tencentcloud_ssl_test.go -args \ --TENCENTCLOUDSSL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDSSL_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDSSL_SECRETID="your-secret-id" \ diff --git a/pkg/core/certmgr/providers-tester/tencentcloud-tse/tencentcloud_tse_test.go b/pkg/core/certmgr/providers-tester/tencentcloud-tse/tencentcloud_tse_test.go index 20859dc59..8af8bb2f2 100644 --- a/pkg/core/certmgr/providers-tester/tencentcloud-tse/tencentcloud_tse_test.go +++ b/pkg/core/certmgr/providers-tester/tencentcloud-tse/tencentcloud_tse_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudtse_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_tse_test.go -args \ + go test -tags=tester -v ./tencentcloud_tse_test.go -args \ --TENCENTCLOUDTSE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDTSE_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDTSE_SECRETID="your-secret-id" \ diff --git a/pkg/core/certmgr/providers-tester/tester.go b/pkg/core/certmgr/providers-tester/tester.go index f43681319..04488ec0d 100644 --- a/pkg/core/certmgr/providers-tester/tester.go +++ b/pkg/core/certmgr/providers-tester/tester.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/certmgr/providers-tester/tester_args.go b/pkg/core/certmgr/providers-tester/tester_args.go index adcdc3dba..110391f3d 100644 --- a/pkg/core/certmgr/providers-tester/tester_args.go +++ b/pkg/core/certmgr/providers-tester/tester_args.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/certmgr/providers-tester/ucloud-ulb/ucloud_ulb_test.go b/pkg/core/certmgr/providers-tester/ucloud-ulb/ucloud_ulb_test.go index b7dc8cb64..c4c4da7a5 100644 --- a/pkg/core/certmgr/providers-tester/ucloud-ulb/ucloud_ulb_test.go +++ b/pkg/core/certmgr/providers-tester/ucloud-ulb/ucloud_ulb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudulb_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_ulb_test.go -args \ + go test -tags=tester -v ./ucloud_ulb_test.go -args \ --UCLOUDULB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDULB_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDULB_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/certmgr/providers-tester/ucloud-upathx/ucloud_upathx_test.go b/pkg/core/certmgr/providers-tester/ucloud-upathx/ucloud_upathx_test.go index 14bfe7bc7..75526d5d1 100644 --- a/pkg/core/certmgr/providers-tester/ucloud-upathx/ucloud_upathx_test.go +++ b/pkg/core/certmgr/providers-tester/ucloud-upathx/ucloud_upathx_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudulb_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_upathx_test.go -args \ + go test -tags=tester -v ./ucloud_upathx_test.go -args \ --UCLOUDUPATHX_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUPATHX_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUPATHX_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/certmgr/providers-tester/ucloud-ussl/ucloud_ussl_test.go b/pkg/core/certmgr/providers-tester/ucloud-ussl/ucloud_ussl_test.go index 8d529b818..7baeb6b8c 100644 --- a/pkg/core/certmgr/providers-tester/ucloud-ussl/ucloud_ussl_test.go +++ b/pkg/core/certmgr/providers-tester/ucloud-ussl/ucloud_ussl_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudussl_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_ussl_test.go -args \ + go test -tags=tester -v ./ucloud_ussl_test.go -args \ --UCLOUDUSSL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUSSL_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUSSL_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/certmgr/providers-tester/upyun-ssl/upyun_ssl_test.go b/pkg/core/certmgr/providers-tester/upyun-ssl/upyun_ssl_test.go index 9301ba1fa..f865563e5 100644 --- a/pkg/core/certmgr/providers-tester/upyun-ssl/upyun_ssl_test.go +++ b/pkg/core/certmgr/providers-tester/upyun-ssl/upyun_ssl_test.go @@ -1,3 +1,5 @@ +//go:build tester + package upyunssl_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./upyun_ssl_test.go -args \ + go test -tags=tester -v ./upyun_ssl_test.go -args \ --UPYUNSSL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UPYUNSSL_TESTKEYPATH="/path/to/your-test-key.pem" \ --UPYUNSSL_USERNAME="your-username" \ diff --git a/pkg/core/certmgr/providers-tester/volcengine-cdn/volcengine_cdn_test.go b/pkg/core/certmgr/providers-tester/volcengine-cdn/volcengine_cdn_test.go index 97a434adf..41c264664 100644 --- a/pkg/core/certmgr/providers-tester/volcengine-cdn/volcengine_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/volcengine-cdn/volcengine_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginecdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_cdn_test.go -args \ + go test -tags=tester -v ./volcengine_cdn_test.go -args \ --VOLCENGINECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINECDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/volcengine-certcenter/volcengine_certcenter_test.go b/pkg/core/certmgr/providers-tester/volcengine-certcenter/volcengine_certcenter_test.go index 35f5dc490..8812265a8 100644 --- a/pkg/core/certmgr/providers-tester/volcengine-certcenter/volcengine_certcenter_test.go +++ b/pkg/core/certmgr/providers-tester/volcengine-certcenter/volcengine_certcenter_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginecertcenter_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_certcenter_test.go -args \ + go test -tags=tester -v ./volcengine_certcenter_test.go -args \ --VOLCENGINECERTCENTER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINECERTCENTER_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINECERTCENTER_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/volcengine-live/volcengine_live_test.go b/pkg/core/certmgr/providers-tester/volcengine-live/volcengine_live_test.go index c8c35df29..2e9e2030f 100644 --- a/pkg/core/certmgr/providers-tester/volcengine-live/volcengine_live_test.go +++ b/pkg/core/certmgr/providers-tester/volcengine-live/volcengine_live_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginelive_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_live_test.go -args \ + go test -tags=tester -v ./volcengine_live_test.go -args \ --VOLCENGINELIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINELIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINELIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/wangsu-certificate/wangsu_certificate_test.go b/pkg/core/certmgr/providers-tester/wangsu-certificate/wangsu_certificate_test.go index cc994eaaf..ff4d74c75 100644 --- a/pkg/core/certmgr/providers-tester/wangsu-certificate/wangsu_certificate_test.go +++ b/pkg/core/certmgr/providers-tester/wangsu-certificate/wangsu_certificate_test.go @@ -1,3 +1,5 @@ +//go:build tester + package wangsucertificate_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./wangsu_certificate_test.go -args \ + go test -tags=tester -v ./wangsu_certificate_test.go -args \ --WANGSUCERTIFICATE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --WANGSUCERTIFICATE_TESTKEYPATH="/path/to/your-test-key.pem" \ --WANGSUCERTIFICATE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/yandexcloud-certificatemanager/yandexcloud_certificatemanager_test.go b/pkg/core/certmgr/providers-tester/yandexcloud-certificatemanager/yandexcloud_certificatemanager_test.go index c8583e9ee..70f59c46f 100644 --- a/pkg/core/certmgr/providers-tester/yandexcloud-certificatemanager/yandexcloud_certificatemanager_test.go +++ b/pkg/core/certmgr/providers-tester/yandexcloud-certificatemanager/yandexcloud_certificatemanager_test.go @@ -1,3 +1,5 @@ +//go:build tester + package yandexcloudcertificatemanager_test import ( @@ -28,7 +30,7 @@ func init() { /* Shell command to run this test: - go test -v ./yandexcloud_certificatemanager_test.go -args \ + go test -tags=tester -v ./yandexcloud_certificatemanager_test.go -args \ --YANDEXCLOUDCERTIFICATEMANAGER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --YANDEXCLOUDCERTIFICATEMANAGER_TESTKEYPATH="/path/to/your-test-key.pem" \ --YANDEXCLOUDCERTIFICATEMANAGER_FOLDERID="your-folder-id" \ diff --git a/pkg/core/certmgr/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go b/pkg/core/certmgr/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go index 027916570..c9a5fd936 100644 --- a/pkg/core/certmgr/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go +++ b/pkg/core/certmgr/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package zenlayercdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./zenlayer_cdn_test.go -args \ + go test -tags=tester -v ./zenlayer_cdn_test.go -args \ --ZENLAYERCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ZENLAYERCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --ZENLAYERCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/certmgr/providers-tester/zenlayer-ga/zenlayer_ga_test.go b/pkg/core/certmgr/providers-tester/zenlayer-ga/zenlayer_ga_test.go index b65455156..7d5997059 100644 --- a/pkg/core/certmgr/providers-tester/zenlayer-ga/zenlayer_ga_test.go +++ b/pkg/core/certmgr/providers-tester/zenlayer-ga/zenlayer_ga_test.go @@ -1,3 +1,5 @@ +//go:build tester + package zenlayerga_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./zenlayer_ga_test.go -args \ + go test -tags=tester -v ./zenlayer_ga_test.go -args \ --ZENLAYERGA_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ZENLAYERGA_TESTKEYPATH="/path/to/your-test-key.pem" \ --ZENLAYERGA_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/1panel-console/1panel_console_test.go b/pkg/core/deployer/providers-tester/1panel-console/1panel_console_test.go index 199a12efa..ccd217b74 100644 --- a/pkg/core/deployer/providers-tester/1panel-console/1panel_console_test.go +++ b/pkg/core/deployer/providers-tester/1panel-console/1panel_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package onepanelconsole_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./1panel_console_test.go -args \ + go test -tags=tester -v ./1panel_console_test.go -args \ --1PANELCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --1PANELCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --1PANELCONSOLE_SERVERURL="http://127.0.0.1:20410" \ diff --git a/pkg/core/deployer/providers-tester/1panel/1panel_test.go b/pkg/core/deployer/providers-tester/1panel/1panel_test.go index eef81a942..b4da2b683 100644 --- a/pkg/core/deployer/providers-tester/1panel/1panel_test.go +++ b/pkg/core/deployer/providers-tester/1panel/1panel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package onepanel_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./1panel_test.go -args \ + go test -tags=tester -v ./1panel_test.go -args \ --1PANEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --1PANEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --1PANEL_SERVERURL="http://127.0.0.1:20410" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-alb/aliyun_alb_test.go b/pkg/core/deployer/providers-tester/aliyun-alb/aliyun_alb_test.go index d29ffc7b2..c7579fbd4 100644 --- a/pkg/core/deployer/providers-tester/aliyun-alb/aliyun_alb_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-alb/aliyun_alb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunalb_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_alb_test.go -args \ + go test -tags=tester -v ./aliyun_alb_test.go -args \ --ALIYUNALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNALB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-apigw/aliyun_apigw_test.go b/pkg/core/deployer/providers-tester/aliyun-apigw/aliyun_apigw_test.go index 7d6ea9f0e..41283e607 100644 --- a/pkg/core/deployer/providers-tester/aliyun-apigw/aliyun_apigw_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-apigw/aliyun_apigw_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunapigw_test import ( @@ -37,7 +39,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_apigw_test.go -args \ + go test -tags=tester -v ./aliyun_apigw_test.go -args \ --ALIYUNAPIGW_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNAPIGW_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNAPIGW_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-cdn/aliyun_cdn_test.go b/pkg/core/deployer/providers-tester/aliyun-cdn/aliyun_cdn_test.go index 48b86549b..249a70594 100644 --- a/pkg/core/deployer/providers-tester/aliyun-cdn/aliyun_cdn_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-cdn/aliyun_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyuncdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_cdn_test.go -args \ + go test -tags=tester -v ./aliyun_cdn_test.go -args \ --ALIYUNCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-clb/aliyun_clb_test.go b/pkg/core/deployer/providers-tester/aliyun-clb/aliyun_clb_test.go index 7c7966b31..719c8cbfa 100644 --- a/pkg/core/deployer/providers-tester/aliyun-clb/aliyun_clb_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-clb/aliyun_clb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunclb_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_clb_test.go -args \ + go test -tags=tester -v ./aliyun_clb_test.go -args \ --ALIYUNCLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNCLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNCLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-dcdn/aliyun_dcdn_test.go b/pkg/core/deployer/providers-tester/aliyun-dcdn/aliyun_dcdn_test.go index 710354346..fbe6d6c9e 100644 --- a/pkg/core/deployer/providers-tester/aliyun-dcdn/aliyun_dcdn_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-dcdn/aliyun_dcdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyundcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_dcdn_test.go -args \ + go test -tags=tester -v ./aliyun_dcdn_test.go -args \ --ALIYUNDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-ddospro/aliyun_ddospro_test.go b/pkg/core/deployer/providers-tester/aliyun-ddospro/aliyun_ddospro_test.go index c871c3713..a1e39b414 100644 --- a/pkg/core/deployer/providers-tester/aliyun-ddospro/aliyun_ddospro_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-ddospro/aliyun_ddospro_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunddospro_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_ddospro_test.go -args \ + go test -tags=tester -v ./aliyun_ddospro_test.go -args \ --ALIYUNDDOSPRO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNDDOSPRO_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNDDOSPRO_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-esa-saas/aliyun_esasaas_test.go b/pkg/core/deployer/providers-tester/aliyun-esa-saas/aliyun_esasaas_test.go index 7db56008e..62f54cd54 100644 --- a/pkg/core/deployer/providers-tester/aliyun-esa-saas/aliyun_esasaas_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-esa-saas/aliyun_esasaas_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunesasaas_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_esasaas_test.go -args \ + go test -tags=tester -v ./aliyun_esasaas_test.go -args \ --ALIYUNESASAAS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNESASAAS_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNESASAAS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-esa/aliyun_esa_test.go b/pkg/core/deployer/providers-tester/aliyun-esa/aliyun_esa_test.go index c2b4d4041..6b23270fe 100644 --- a/pkg/core/deployer/providers-tester/aliyun-esa/aliyun_esa_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-esa/aliyun_esa_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunesa_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_esa_test.go -args \ + go test -tags=tester -v ./aliyun_esa_test.go -args \ --ALIYUNESA_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNESA_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNESA_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-fc/aliyun_fc_test.go b/pkg/core/deployer/providers-tester/aliyun-fc/aliyun_fc_test.go index 2f022f040..56f3cf2c5 100644 --- a/pkg/core/deployer/providers-tester/aliyun-fc/aliyun_fc_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-fc/aliyun_fc_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunfc_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_fc_test.go -args \ + go test -tags=tester -v ./aliyun_fc_test.go -args \ --ALIYUNFC_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNFC_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNFC_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-ga/aliyun_ga_test.go b/pkg/core/deployer/providers-tester/aliyun-ga/aliyun_ga_test.go index 6dc3be170..7f91bfbeb 100644 --- a/pkg/core/deployer/providers-tester/aliyun-ga/aliyun_ga_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-ga/aliyun_ga_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunga_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_ga_test.go -args \ + go test -tags=tester -v ./aliyun_ga_test.go -args \ --ALIYUNGA_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNGA_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNGA_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-live/aliyun_live_test.go b/pkg/core/deployer/providers-tester/aliyun-live/aliyun_live_test.go index 494f070e1..2a72b2d7b 100644 --- a/pkg/core/deployer/providers-tester/aliyun-live/aliyun_live_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-live/aliyun_live_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunlive_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_live_test.go -args \ + go test -tags=tester -v ./aliyun_live_test.go -args \ --ALIYUNLIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNLIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNLIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-nlb/aliyun_nlb_test.go b/pkg/core/deployer/providers-tester/aliyun-nlb/aliyun_nlb_test.go index baa401edb..d7e6d63d8 100644 --- a/pkg/core/deployer/providers-tester/aliyun-nlb/aliyun_nlb_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-nlb/aliyun_nlb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunnlb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_nlb_test.go -args \ + go test -tags=tester -v ./aliyun_nlb_test.go -args \ --ALIYUNNLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNNLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNNLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-oss/aliyun_oss_test.go b/pkg/core/deployer/providers-tester/aliyun-oss/aliyun_oss_test.go index 4f7c00691..9992fe5a5 100644 --- a/pkg/core/deployer/providers-tester/aliyun-oss/aliyun_oss_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-oss/aliyun_oss_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunoss_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_oss_test.go -args \ + go test -tags=tester -v ./aliyun_oss_test.go -args \ --ALIYUNOSS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNOSS_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNOSS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-vod/aliyun_vod_test.go b/pkg/core/deployer/providers-tester/aliyun-vod/aliyun_vod_test.go index ce9f78f19..28a53cbcd 100644 --- a/pkg/core/deployer/providers-tester/aliyun-vod/aliyun_vod_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-vod/aliyun_vod_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunvod_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_vod_test.go -args \ + go test -tags=tester -v ./aliyun_vod_test.go -args \ --ALIYUNVOD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNVOD_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNVOD_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aliyun-waf/aliyun_waf_test.go b/pkg/core/deployer/providers-tester/aliyun-waf/aliyun_waf_test.go index 476df2402..5b72eb37d 100644 --- a/pkg/core/deployer/providers-tester/aliyun-waf/aliyun_waf_test.go +++ b/pkg/core/deployer/providers-tester/aliyun-waf/aliyun_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package aliyunwaf_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aliyun_waf_test.go -args \ + go test -tags=tester -v ./aliyun_waf_test.go -args \ --ALIYUNWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ALIYUNWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --ALIYUNWAF_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/apisix/apisix_test.go b/pkg/core/deployer/providers-tester/apisix/apisix_test.go index bea192204..beafd51d0 100644 --- a/pkg/core/deployer/providers-tester/apisix/apisix_test.go +++ b/pkg/core/deployer/providers-tester/apisix/apisix_test.go @@ -1,3 +1,5 @@ +//go:build tester + package apisix_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./apisix_test.go -args \ + go test -tags=tester -v ./apisix_test.go -args \ --APISIX_TESTCERTPATH="/path/to/your-test-cert.pem" \ --APISIX_TESTKEYPATH="/path/to/your-test-key.pem" \ --APISIX_SERVERURL="http://127.0.0.1:9080" \ diff --git a/pkg/core/deployer/providers-tester/aws-alb/aws_alb_test.go b/pkg/core/deployer/providers-tester/aws-alb/aws_alb_test.go index 7ca45564c..25963208b 100644 --- a/pkg/core/deployer/providers-tester/aws-alb/aws_alb_test.go +++ b/pkg/core/deployer/providers-tester/aws-alb/aws_alb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsalb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_alb_test.go -args \ + go test -tags=tester -v ./aws_alb_test.go -args \ --AWSALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSALB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aws-amplify/aws_amplify_test.go b/pkg/core/deployer/providers-tester/aws-amplify/aws_amplify_test.go index 38f5dcdc5..e4d1041da 100644 --- a/pkg/core/deployer/providers-tester/aws-amplify/aws_amplify_test.go +++ b/pkg/core/deployer/providers-tester/aws-amplify/aws_amplify_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsamplify_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_amplify_test.go -args \ + go test -tags=tester -v ./aws_amplify_test.go -args \ --AWSAMPLIFY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSAMPLIFY_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSAMPLIFY_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aws-apigateway/aws_apigateway_test.go b/pkg/core/deployer/providers-tester/aws-apigateway/aws_apigateway_test.go index 901d40f8c..a8e87ec28 100644 --- a/pkg/core/deployer/providers-tester/aws-apigateway/aws_apigateway_test.go +++ b/pkg/core/deployer/providers-tester/aws-apigateway/aws_apigateway_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsapigateway_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_apigateway_test.go -args \ + go test -tags=tester -v ./aws_apigateway_test.go -args \ --AWSAPIGATEWAY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSAPIGATEWAY_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSAPIGATEWAY_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aws-clb/aws_clb_test.go b/pkg/core/deployer/providers-tester/aws-clb/aws_clb_test.go index 5ee509172..4eb72ad7c 100644 --- a/pkg/core/deployer/providers-tester/aws-clb/aws_clb_test.go +++ b/pkg/core/deployer/providers-tester/aws-clb/aws_clb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsclb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_clb_test.go -args \ + go test -tags=tester -v ./aws_clb_test.go -args \ --AWSCLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSCLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSCLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aws-cloudfront/aws_cloudfront_test.go b/pkg/core/deployer/providers-tester/aws-cloudfront/aws_cloudfront_test.go index f38f3e581..6a10ca8c6 100644 --- a/pkg/core/deployer/providers-tester/aws-cloudfront/aws_cloudfront_test.go +++ b/pkg/core/deployer/providers-tester/aws-cloudfront/aws_cloudfront_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awscloudfront_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_cloudfront_test.go -args \ + go test -tags=tester -v ./aws_cloudfront_test.go -args \ --AWSCLOUDFRONT_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSCLOUDFRONT_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSCLOUDFRONT_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/aws-nlb/aws_nlb_test.go b/pkg/core/deployer/providers-tester/aws-nlb/aws_nlb_test.go index fb5284ec6..39a0182f6 100644 --- a/pkg/core/deployer/providers-tester/aws-nlb/aws_nlb_test.go +++ b/pkg/core/deployer/providers-tester/aws-nlb/aws_nlb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package awsnlb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./aws_nlb_test.go -args \ + go test -tags=tester -v ./aws_nlb_test.go -args \ --AWSNLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --AWSNLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --AWSNLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/baiducloud-appblb/baiducloud_appblb_test.go b/pkg/core/deployer/providers-tester/baiducloud-appblb/baiducloud_appblb_test.go index 271a2d2f1..804cad0df 100644 --- a/pkg/core/deployer/providers-tester/baiducloud-appblb/baiducloud_appblb_test.go +++ b/pkg/core/deployer/providers-tester/baiducloud-appblb/baiducloud_appblb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baiducloudappblb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./baiducloud_appblb_test.go -args \ + go test -tags=tester -v ./baiducloud_appblb_test.go -args \ --BAIDUCLOUDAPPBLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAIDUCLOUDAPPBLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAIDUCLOUDAPPBLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/baiducloud-blb/baiducloud_blb_test.go b/pkg/core/deployer/providers-tester/baiducloud-blb/baiducloud_blb_test.go index cb99efaac..c28df9016 100644 --- a/pkg/core/deployer/providers-tester/baiducloud-blb/baiducloud_blb_test.go +++ b/pkg/core/deployer/providers-tester/baiducloud-blb/baiducloud_blb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baiducloudblb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./baiducloud_blb_test.go -args \ + go test -tags=tester -v ./baiducloud_blb_test.go -args \ --BAIDUCLOUDBLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAIDUCLOUDBLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAIDUCLOUDBLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/baiducloud-cdn/baiducloud_cdn_test.go b/pkg/core/deployer/providers-tester/baiducloud-cdn/baiducloud_cdn_test.go index 7a4d8196e..ec44454d0 100644 --- a/pkg/core/deployer/providers-tester/baiducloud-cdn/baiducloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/baiducloud-cdn/baiducloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baiducloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./baiducloud_cdn_test.go -args \ + go test -tags=tester -v ./baiducloud_cdn_test.go -args \ --BAIDUCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAIDUCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAIDUCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/baishan-cdn/baishan_cdn_test.go b/pkg/core/deployer/providers-tester/baishan-cdn/baishan_cdn_test.go index 5648cad1a..7444c6228 100644 --- a/pkg/core/deployer/providers-tester/baishan-cdn/baishan_cdn_test.go +++ b/pkg/core/deployer/providers-tester/baishan-cdn/baishan_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baishancdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./baishan_cdn_test.go -args \ + go test -tags=tester -v ./baishan_cdn_test.go -args \ --BAISHANCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAISHANCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAISHANCDN_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/baotapanel-console/baotapanel_console_test.go b/pkg/core/deployer/providers-tester/baotapanel-console/baotapanel_console_test.go index 14c22b704..6290328c4 100644 --- a/pkg/core/deployer/providers-tester/baotapanel-console/baotapanel_console_test.go +++ b/pkg/core/deployer/providers-tester/baotapanel-console/baotapanel_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotapanelconsole_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotapanel_console_test.go -args \ + go test -tags=tester -v ./baotapanel_console_test.go -args \ --BAOTAPANELCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAPANELCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAPANELCONSOLE_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/baotapanel/baotapanel_test.go b/pkg/core/deployer/providers-tester/baotapanel/baotapanel_test.go index 161e4b292..91a008b0b 100644 --- a/pkg/core/deployer/providers-tester/baotapanel/baotapanel_test.go +++ b/pkg/core/deployer/providers-tester/baotapanel/baotapanel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotapanel_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotapanel_test.go -args \ + go test -tags=tester -v ./baotapanel_test.go -args \ --BAOTAPANEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAPANEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAPANEL_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/baotapanelgo-console/baotapanelgo_console_test.go b/pkg/core/deployer/providers-tester/baotapanelgo-console/baotapanelgo_console_test.go index d30e0ae7b..66f465109 100644 --- a/pkg/core/deployer/providers-tester/baotapanelgo-console/baotapanelgo_console_test.go +++ b/pkg/core/deployer/providers-tester/baotapanelgo-console/baotapanelgo_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotapanelgoconsole_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotapanelgo_console_test.go -args \ + go test -tags=tester -v ./baotapanelgo_console_test.go -args \ --BAOTAPANELGOCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAPANELGOCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAPANELGOCONSOLE_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/baotapanelgo/baotapanelgo_test.go b/pkg/core/deployer/providers-tester/baotapanelgo/baotapanelgo_test.go index 48f7b2faf..af01e8d2e 100644 --- a/pkg/core/deployer/providers-tester/baotapanelgo/baotapanelgo_test.go +++ b/pkg/core/deployer/providers-tester/baotapanelgo/baotapanelgo_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotapanelgo_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotapanelgo_test.go -args \ + go test -tags=tester -v ./baotapanelgo_test.go -args \ --BAOTAPANELGO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAPANELGO_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAPANELGO_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/baotawaf-console/baotawaf_console_test.go b/pkg/core/deployer/providers-tester/baotawaf-console/baotawaf_console_test.go index 28cb673b0..7c6252ea9 100644 --- a/pkg/core/deployer/providers-tester/baotawaf-console/baotawaf_console_test.go +++ b/pkg/core/deployer/providers-tester/baotawaf-console/baotawaf_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotapanelconsole_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotawaf_console_test.go -args \ + go test -tags=tester -v ./baotawaf_console_test.go -args \ --BAOTAWAFCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAWAFCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAWAFCONSOLE_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/baotawaf/baotawaf_test.go b/pkg/core/deployer/providers-tester/baotawaf/baotawaf_test.go index c9f1182ea..965fe7a2a 100644 --- a/pkg/core/deployer/providers-tester/baotawaf/baotawaf_test.go +++ b/pkg/core/deployer/providers-tester/baotawaf/baotawaf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package baotawaf_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./baotawaf_test.go -args \ + go test -tags=tester -v ./baotawaf_test.go -args \ --BAOTAWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BAOTAWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --BAOTAWAF_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/bunny-cdn/bunny_cdn_test.go b/pkg/core/deployer/providers-tester/bunny-cdn/bunny_cdn_test.go index b17d6d228..0d3e06f80 100644 --- a/pkg/core/deployer/providers-tester/bunny-cdn/bunny_cdn_test.go +++ b/pkg/core/deployer/providers-tester/bunny-cdn/bunny_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package bunnycdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./bunny_cdn_test.go -args \ + go test -tags=tester -v ./bunny_cdn_test.go -args \ --BUNNYCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BUNNYCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BUNNYCDN_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-alb/byteplus_alb_test.go b/pkg/core/deployer/providers-tester/byteplus-alb/byteplus_alb_test.go index 17b4dccca..10f5e7e64 100644 --- a/pkg/core/deployer/providers-tester/byteplus-alb/byteplus_alb_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-alb/byteplus_alb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplusalb_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_alb_test.go -args \ + go test -tags=tester -v ./byteplus_alb_test.go -args \ --BYTEPLUSALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSALB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-apig/byteplus_apig_test.go b/pkg/core/deployer/providers-tester/byteplus-apig/byteplus_apig_test.go index d5b1749f6..f0426b9aa 100644 --- a/pkg/core/deployer/providers-tester/byteplus-apig/byteplus_apig_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-apig/byteplus_apig_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplusapig_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_apig_test.go -args \ + go test -tags=tester -v ./byteplus_apig_test.go -args \ --BYTEPLUSAPIG_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSAPIG_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSAPIG_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-cdn/byteplus_cdn_test.go b/pkg/core/deployer/providers-tester/byteplus-cdn/byteplus_cdn_test.go index 94fd104ec..acb0fe9f1 100644 --- a/pkg/core/deployer/providers-tester/byteplus-cdn/byteplus_cdn_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-cdn/byteplus_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package bytepluscdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_cdn_test.go -args \ + go test -tags=tester -v ./byteplus_cdn_test.go -args \ --BYTEPLUSCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-clb/byteplus_clb_test.go b/pkg/core/deployer/providers-tester/byteplus-clb/byteplus_clb_test.go index 50648032d..1a9261f8c 100644 --- a/pkg/core/deployer/providers-tester/byteplus-clb/byteplus_clb_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-clb/byteplus_clb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplusclb_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_clb_test.go -args \ + go test -tags=tester -v ./byteplus_clb_test.go -args \ --BYTEPLUSCLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSCLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSCLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-medialive/byteplus_medialive_test.go b/pkg/core/deployer/providers-tester/byteplus-medialive/byteplus_medialive_test.go index 372840b5f..529b88848 100644 --- a/pkg/core/deployer/providers-tester/byteplus-medialive/byteplus_medialive_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-medialive/byteplus_medialive_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplusmedialive_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_medialive_test.go -args \ + go test -tags=tester -v ./byteplus_medialive_test.go -args \ --BYTEPLUSMEDIALIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSMEDIALIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSMEDIALIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/byteplus-tos/byteplus_tos_test.go b/pkg/core/deployer/providers-tester/byteplus-tos/byteplus_tos_test.go index 4164332e7..56ed43a3e 100644 --- a/pkg/core/deployer/providers-tester/byteplus-tos/byteplus_tos_test.go +++ b/pkg/core/deployer/providers-tester/byteplus-tos/byteplus_tos_test.go @@ -1,3 +1,5 @@ +//go:build tester + package byteplustos_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./byteplus_tos_test.go -args \ + go test -tags=tester -v ./byteplus_tos_test.go -args \ --BYTEPLUSTOS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --BYTEPLUSTOS_TESTKEYPATH="/path/to/your-test-key.pem" \ --BYTEPLUSTOS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/cachefly/cachefly_test.go b/pkg/core/deployer/providers-tester/cachefly/cachefly_test.go index e91c7e7d0..5b189a4da 100644 --- a/pkg/core/deployer/providers-tester/cachefly/cachefly_test.go +++ b/pkg/core/deployer/providers-tester/cachefly/cachefly_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cachefly_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./cachefly_test.go -args \ + go test -tags=tester -v ./cachefly_test.go -args \ --CACHEFLY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CACHEFLY_TESTKEYPATH="/path/to/your-test-key.pem" \ --CACHEFLY_APITOKEN="your-api-token" diff --git a/pkg/core/deployer/providers-tester/cdnfly/cdnfly_test.go b/pkg/core/deployer/providers-tester/cdnfly/cdnfly_test.go index 95eb80635..b5b2fb583 100644 --- a/pkg/core/deployer/providers-tester/cdnfly/cdnfly_test.go +++ b/pkg/core/deployer/providers-tester/cdnfly/cdnfly_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cdnfly_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./cdnfly_test.go -args \ + go test -tags=tester -v ./cdnfly_test.go -args \ --CDNFLY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CDNFLY_TESTKEYPATH="/path/to/your-test-key.pem" \ --CDNFLY_SERVERURL="http://127.0.0.1:88" \ diff --git a/pkg/core/deployer/providers-tester/cloudflare-ssl/cloudflare_ssl_test.go b/pkg/core/deployer/providers-tester/cloudflare-ssl/cloudflare_ssl_test.go index d48ab53e3..0554a7195 100644 --- a/pkg/core/deployer/providers-tester/cloudflare-ssl/cloudflare_ssl_test.go +++ b/pkg/core/deployer/providers-tester/cloudflare-ssl/cloudflare_ssl_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cloudflaressl_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./cloudflare_ssl_test.go -args \ + go test -tags=tester -v ./cloudflare_ssl_test.go -args \ --CLOUDFLARESSL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CLOUDFLARESSL_TESTKEYPATH="/path/to/your-test-key.pem" \ --CLOUDFLARESSL_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/cmcccloud-cdn/cmcccloud_cdn_test.go b/pkg/core/deployer/providers-tester/cmcccloud-cdn/cmcccloud_cdn_test.go index 4528d258f..5ca4dc2f8 100644 --- a/pkg/core/deployer/providers-tester/cmcccloud-cdn/cmcccloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/cmcccloud-cdn/cmcccloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cmcccloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./cmcccloud_cdn_test.go -args \ + go test -tags=tester -v ./cmcccloud_cdn_test.go -args \ --CMCCCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CMCCCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CMCCCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go b/pkg/core/deployer/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go index f8ded6f21..7058dfcd2 100644 --- a/pkg/core/deployer/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go +++ b/pkg/core/deployer/providers-tester/cmcccloud-vlb/cmcccloud_vlb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cmcccloudvlb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./cmcccloud_vlb_test.go -args \ + go test -tags=tester -v ./cmcccloud_vlb_test.go -args \ --CMCCCLOUDVLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CMCCCLOUDVLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --CMCCCLOUDVLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/cpanel/cpanel_test.go b/pkg/core/deployer/providers-tester/cpanel/cpanel_test.go index 90e65e1f8..35a48bd34 100644 --- a/pkg/core/deployer/providers-tester/cpanel/cpanel_test.go +++ b/pkg/core/deployer/providers-tester/cpanel/cpanel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package cpanel_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./cpanel_test.go -args \ + go test -tags=tester -v ./cpanel_test.go -args \ --CPANEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CPANEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --CPANEL_SERVERURL="http://127.0.0.1:2082" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go b/pkg/core/deployer/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go index a1eb74c81..0225a951e 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-ao/ctcccloud_ao_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudao_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_ao_test.go -args \ + go test -tags=tester -v ./ctcccloud_ao_test.go -args \ --CTCCCLOUDAO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDAO_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDAO_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go b/pkg/core/deployer/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go index 24d024479..a12bd72eb 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-cdn/ctcccloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_cdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_cdn_test.go -args \ --CTCCCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go b/pkg/core/deployer/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go index 911352872..3d910bcc5 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-cms/ctcccloud_cms_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudcms_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_cms_test.go -args \ + go test -tags=tester -v ./ctcccloud_cms_test.go -args \ --CTCCCLOUDCMS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDCMS_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDCMS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go b/pkg/core/deployer/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go index 6e830454e..fcad43d02 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-elb/ctcccloud_elb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudelb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_elb_test.go -args \ + go test -tags=tester -v ./ctcccloud_elb_test.go -args \ --CTCCCLOUDELB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDELB_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDELB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-faas/ctcccloud_faas_test.go b/pkg/core/deployer/providers-tester/ctcccloud-faas/ctcccloud_faas_test.go index cfa0a1a6f..83212d377 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-faas/ctcccloud_faas_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-faas/ctcccloud_faas_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudfaas_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_faas_test.go -args \ + go test -tags=tester -v ./ctcccloud_faas_test.go -args \ --CTCCCLOUDFAAS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDFAAS_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDFAAS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go b/pkg/core/deployer/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go index 42887ad23..5b7fbbe91 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-icdn/ctcccloud_icdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudicdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_cdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_cdn_test.go -args \ --CTCCCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go b/pkg/core/deployer/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go index 5ef8517bc..be0051569 100644 --- a/pkg/core/deployer/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go +++ b/pkg/core/deployer/providers-tester/ctcccloud-lvdn/ctcccloud_lvdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ctcccloudlvdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ctcccloud_lvdn_test.go -args \ + go test -tags=tester -v ./ctcccloud_lvdn_test.go -args \ --CTCCCLOUDLVDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --CTCCCLOUDLVDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --CTCCCLOUDLVDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/dogecloud-cdn/dogecloud_cdn_test.go b/pkg/core/deployer/providers-tester/dogecloud-cdn/dogecloud_cdn_test.go index 7bb2345f6..f6c41ac89 100644 --- a/pkg/core/deployer/providers-tester/dogecloud-cdn/dogecloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/dogecloud-cdn/dogecloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package dogecloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./dogecloud_cdn_test.go -args \ + go test -tags=tester -v ./dogecloud_cdn_test.go -args \ --DOGECLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --DOGECLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --DOGECLOUDCDN_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/deployer/providers-tester/flexcdn/flexcdn_test.go b/pkg/core/deployer/providers-tester/flexcdn/flexcdn_test.go index 84d8e5639..31fd9ef37 100644 --- a/pkg/core/deployer/providers-tester/flexcdn/flexcdn_test.go +++ b/pkg/core/deployer/providers-tester/flexcdn/flexcdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package flexcdn_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./flexcdn_test.go -args \ + go test -tags=tester -v ./flexcdn_test.go -args \ --FLEXCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --FLEXCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --FLEXCDN_SERVERURL="http://127.0.0.1:7788" \ diff --git a/pkg/core/deployer/providers-tester/flyio/flyio_test.go b/pkg/core/deployer/providers-tester/flyio/flyio_test.go index 2620c3fe1..952715b7a 100644 --- a/pkg/core/deployer/providers-tester/flyio/flyio_test.go +++ b/pkg/core/deployer/providers-tester/flyio/flyio_test.go @@ -1,3 +1,5 @@ +//go:build tester + package flyio_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./flyio_test.go -args \ + go test -tags=tester -v ./flyio_test.go -args \ --FLYIO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --FLYIO_TESTKEYPATH="/path/to/your-test-key.pem" \ --FLYIO_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/ftp/ftp_test.go b/pkg/core/deployer/providers-tester/ftp/ftp_test.go index c4b7437ed..cbace5f73 100644 --- a/pkg/core/deployer/providers-tester/ftp/ftp_test.go +++ b/pkg/core/deployer/providers-tester/ftp/ftp_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ftp_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./ftp_test.go -args \ + go test -tags=tester -v ./ftp_test.go -args \ --FTP_TESTCERTPATH="/path/to/your-test-cert.pem" \ --FTP_TESTKEYPATH="/path/to/your-test-key.pem" \ --FTP_FTPHOST="localhost" \ diff --git a/pkg/core/deployer/providers-tester/gcore-cdn/gcore_cdn_test.go b/pkg/core/deployer/providers-tester/gcore-cdn/gcore_cdn_test.go index a1337570a..6003f0c40 100644 --- a/pkg/core/deployer/providers-tester/gcore-cdn/gcore_cdn_test.go +++ b/pkg/core/deployer/providers-tester/gcore-cdn/gcore_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package gcorecdn_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./gcore_cdn_test.go -args \ + go test -tags=tester -v ./gcore_cdn_test.go -args \ --GCORECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --GCORECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --GCORECDN_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/goedge/goedge_test.go b/pkg/core/deployer/providers-tester/goedge/goedge_test.go index 0af7fced8..9369bf737 100644 --- a/pkg/core/deployer/providers-tester/goedge/goedge_test.go +++ b/pkg/core/deployer/providers-tester/goedge/goedge_test.go @@ -1,3 +1,5 @@ +//go:build tester + package goedge_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./goedge_test.go -args \ + go test -tags=tester -v ./goedge_test.go -args \ --GOEDGE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --GOEDGE_TESTKEYPATH="/path/to/your-test-key.pem" \ --GOEDGE_SERVERURL="http://127.0.0.1:7788" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-aad/huaweicloud_aad_test.go b/pkg/core/deployer/providers-tester/huaweicloud-aad/huaweicloud_aad_test.go index f04aa29db..e05877f0f 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-aad/huaweicloud_aad_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-aad/huaweicloud_aad_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudaad_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_aad_test.go -args \ + go test -tags=tester -v ./huaweicloud_aad_test.go -args \ --HUAWEICLOUDAAD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDAAD_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDAAD_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-apig/huaweicloud_apig_test.go b/pkg/core/deployer/providers-tester/huaweicloud-apig/huaweicloud_apig_test.go index 2c0f08437..5dc112abc 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-apig/huaweicloud_apig_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-apig/huaweicloud_apig_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudapig_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_apig_test.go -args \ + go test -tags=tester -v ./huaweicloud_apig_test.go -args \ --HUAWEICLOUDAPIG_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDAPIG_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDAPIG_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-cdn/huaweicloud_cdn_test.go b/pkg/core/deployer/providers-tester/huaweicloud-cdn/huaweicloud_cdn_test.go index dcff896b5..2deb2ae5f 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-cdn/huaweicloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-cdn/huaweicloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudcdn_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_cdn_test.go -args \ + go test -tags=tester -v ./huaweicloud_cdn_test.go -args \ --HUAWEICLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go b/pkg/core/deployer/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go index 36b6039df..fbf1fa449 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-elb/huaweicloud_elb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudelb_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_elb_test.go -args \ + go test -tags=tester -v ./huaweicloud_elb_test.go -args \ --HUAWEICLOUDELB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDELB_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDELB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-live/huaweicloud_live_test.go b/pkg/core/deployer/providers-tester/huaweicloud-live/huaweicloud_live_test.go index 253e0014d..996e4c150 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-live/huaweicloud_live_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-live/huaweicloud_live_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudlive_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_live_test.go -args \ + go test -tags=tester -v ./huaweicloud_live_test.go -args \ --HUAWEICLOUDLIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDLIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDLIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-obs/huaweicloud_obs_test.go b/pkg/core/deployer/providers-tester/huaweicloud-obs/huaweicloud_obs_test.go index a738acc73..05ce366c6 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-obs/huaweicloud_obs_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-obs/huaweicloud_obs_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudobs_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_obs_test.go -args \ + go test -tags=tester -v ./huaweicloud_obs_test.go -args \ --HUAWEICLOUDOBS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDOBS_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDOBS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-vod/huaweicloud_vod_test.go b/pkg/core/deployer/providers-tester/huaweicloud-vod/huaweicloud_vod_test.go index d6aa5e597..1d28836e9 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-vod/huaweicloud_vod_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-vod/huaweicloud_vod_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudvod_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_vod_test.go -args \ + go test -tags=tester -v ./huaweicloud_vod_test.go -args \ --HUAWEICLOUDVOD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDVOD_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDVOD_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go b/pkg/core/deployer/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go index 272a95115..dd04eba4d 100644 --- a/pkg/core/deployer/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go +++ b/pkg/core/deployer/providers-tester/huaweicloud-waf/huaweicloud_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweicloudwaf_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweicloud_waf_test.go -args \ + go test -tags=tester -v ./huaweicloud_waf_test.go -args \ --HUAWEICLOUDWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEICLOUDWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEICLOUDWAF_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/huaweiibmc/huaweiibmc_test.go b/pkg/core/deployer/providers-tester/huaweiibmc/huaweiibmc_test.go index 296277da0..3e50e9127 100644 --- a/pkg/core/deployer/providers-tester/huaweiibmc/huaweiibmc_test.go +++ b/pkg/core/deployer/providers-tester/huaweiibmc/huaweiibmc_test.go @@ -1,3 +1,5 @@ +//go:build tester + package huaweiibmc_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./huaweiibmc_test.go -args \ + go test -tags=tester -v ./huaweiibmc_test.go -args \ --HUAWEIIBMC_TESTCERTPATH="/path/to/your-test-cert.pem" \ --HUAWEIIBMC_TESTKEYPATH="/path/to/your-test-key.pem" \ --HUAWEIIBMC_HOST="localhost" \ diff --git a/pkg/core/deployer/providers-tester/jdcloud-alb/jdcloud_alb_test.go b/pkg/core/deployer/providers-tester/jdcloud-alb/jdcloud_alb_test.go index e593cc779..98668cdc2 100644 --- a/pkg/core/deployer/providers-tester/jdcloud-alb/jdcloud_alb_test.go +++ b/pkg/core/deployer/providers-tester/jdcloud-alb/jdcloud_alb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudalb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_alb_test.go -args \ + go test -tags=tester -v ./jdcloud_alb_test.go -args \ --JDCLOUDALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDALB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/jdcloud-cdn/jdcloud_cdn_test.go b/pkg/core/deployer/providers-tester/jdcloud-cdn/jdcloud_cdn_test.go index 2a09563fe..606451dae 100644 --- a/pkg/core/deployer/providers-tester/jdcloud-cdn/jdcloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/jdcloud-cdn/jdcloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_cdn_test.go -args \ + go test -tags=tester -v ./jdcloud_cdn_test.go -args \ --JDCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/jdcloud-live/jdcloud_live_test.go b/pkg/core/deployer/providers-tester/jdcloud-live/jdcloud_live_test.go index 0905c0b8e..9f11fbc70 100644 --- a/pkg/core/deployer/providers-tester/jdcloud-live/jdcloud_live_test.go +++ b/pkg/core/deployer/providers-tester/jdcloud-live/jdcloud_live_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudlive_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_live_test.go -args \ + go test -tags=tester -v ./jdcloud_live_test.go -args \ --JDCLOUDLIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDLIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDLIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/jdcloud-vod/jdcloud_vod_test.go b/pkg/core/deployer/providers-tester/jdcloud-vod/jdcloud_vod_test.go index 0fa0cb768..6405f525b 100644 --- a/pkg/core/deployer/providers-tester/jdcloud-vod/jdcloud_vod_test.go +++ b/pkg/core/deployer/providers-tester/jdcloud-vod/jdcloud_vod_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudvod_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_vod_test.go -args \ + go test -tags=tester -v ./jdcloud_vod_test.go -args \ --JDCLOUDVOD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDVOD_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDVOD_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/jdcloud-waf/jdcloud_waf_test.go b/pkg/core/deployer/providers-tester/jdcloud-waf/jdcloud_waf_test.go index 03cd21e27..08269897a 100644 --- a/pkg/core/deployer/providers-tester/jdcloud-waf/jdcloud_waf_test.go +++ b/pkg/core/deployer/providers-tester/jdcloud-waf/jdcloud_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package jdcloudwaf_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./jdcloud_waf_test.go -args \ + go test -tags=tester -v ./jdcloud_waf_test.go -args \ --JDCLOUDWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --JDCLOUDWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --JDCLOUDWAF_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/k8s-secret/k8s_secret_test.go b/pkg/core/deployer/providers-tester/k8s-secret/k8s_secret_test.go index 7b8b9f100..71f42b2e5 100644 --- a/pkg/core/deployer/providers-tester/k8s-secret/k8s_secret_test.go +++ b/pkg/core/deployer/providers-tester/k8s-secret/k8s_secret_test.go @@ -1,3 +1,5 @@ +//go:build tester + package k8ssecret_test import ( @@ -34,7 +36,7 @@ func init() { /* Shell command to run this test: - go test -v ./k8s_secret_test.go -args \ + go test -tags=tester -v ./k8s_secret_test.go -args \ --K8SSECRET_TESTCERTPATH="/path/to/your-test-cert.pem" \ --K8SSECRET_TESTKEYPATH="/path/to/your-test-key.pem" \ --K8SSECRET_KUBECONFIG="..." \ diff --git a/pkg/core/deployer/providers-tester/kong/kong_test.go b/pkg/core/deployer/providers-tester/kong/kong_test.go index 7ea1d34e0..db856d441 100644 --- a/pkg/core/deployer/providers-tester/kong/kong_test.go +++ b/pkg/core/deployer/providers-tester/kong/kong_test.go @@ -1,3 +1,5 @@ +//go:build tester + package kong_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./kong_test.go -args \ + go test -tags=tester -v ./kong_test.go -args \ --KONG_TESTCERTPATH="/path/to/your-test-cert.pem" \ --KONG_TESTKEYPATH="/path/to/your-test-key.pem" \ --KONG_SERVERURL="http://127.0.0.1:9080" \ diff --git a/pkg/core/deployer/providers-tester/ksyun-cdn/ksyun_cdn_test.go b/pkg/core/deployer/providers-tester/ksyun-cdn/ksyun_cdn_test.go index b1b7bf70c..1f988c872 100644 --- a/pkg/core/deployer/providers-tester/ksyun-cdn/ksyun_cdn_test.go +++ b/pkg/core/deployer/providers-tester/ksyun-cdn/ksyun_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ksyuncdn_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./ksyun_cdn_test.go -args \ + go test -tags=tester -v ./ksyun_cdn_test.go -args \ --KSYUNCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --KSYUNCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --KSYUNCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/ksyun-slb/ksyun_slb_test.go b/pkg/core/deployer/providers-tester/ksyun-slb/ksyun_slb_test.go index e33c42206..e93745b81 100644 --- a/pkg/core/deployer/providers-tester/ksyun-slb/ksyun_slb_test.go +++ b/pkg/core/deployer/providers-tester/ksyun-slb/ksyun_slb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ksyunslb_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./ksyun_slb_test.go -args \ + go test -tags=tester -v ./ksyun_slb_test.go -args \ --KSYUNSLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --KSYUNSLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --KSYUNSLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/lecdn/lecdn_test.go b/pkg/core/deployer/providers-tester/lecdn/lecdn_test.go index 581c04254..9266f94fb 100644 --- a/pkg/core/deployer/providers-tester/lecdn/lecdn_test.go +++ b/pkg/core/deployer/providers-tester/lecdn/lecdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package lecdn_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./lecdn_test.go -args \ + go test -tags=tester -v ./lecdn_test.go -args \ --LECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --LECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --LECDN_SERVERURL="http://127.0.0.1:5090" \ diff --git a/pkg/core/deployer/providers-tester/linode-los/linode_los_test.go b/pkg/core/deployer/providers-tester/linode-los/linode_los_test.go index 3b6a43a46..88f223bd4 100644 --- a/pkg/core/deployer/providers-tester/linode-los/linode_los_test.go +++ b/pkg/core/deployer/providers-tester/linode-los/linode_los_test.go @@ -1,3 +1,5 @@ +//go:build tester + package linodelos_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./linode_los_test.go -args \ + go test -tags=tester -v ./linode_los_test.go -args \ --LINODELOS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --LINODELOS_TESTKEYPATH="/path/to/your-test-key.pem" \ --LINODELOS_ACCESSTOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/local/local_test.go b/pkg/core/deployer/providers-tester/local/local_test.go index 58a1e6658..9c351ce12 100644 --- a/pkg/core/deployer/providers-tester/local/local_test.go +++ b/pkg/core/deployer/providers-tester/local/local_test.go @@ -1,3 +1,5 @@ +//go:build tester + package local_test import ( @@ -43,7 +45,7 @@ func init() { /* Shell command to run this test: - go test -v ./local_test.go -args \ + go test -tags=tester -v ./local_test.go -args \ --LOCAL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --LOCAL_TESTKEYPATH="/path/to/your-test-key.pem" \ --LOCAL_FILEPATHFORCRT="/path/to/your-output-cert" \ diff --git a/pkg/core/deployer/providers-tester/mohua-mvh/mohua_mvh_test.go b/pkg/core/deployer/providers-tester/mohua-mvh/mohua_mvh_test.go index 1d050261f..ff20027af 100644 --- a/pkg/core/deployer/providers-tester/mohua-mvh/mohua_mvh_test.go +++ b/pkg/core/deployer/providers-tester/mohua-mvh/mohua_mvh_test.go @@ -1,3 +1,5 @@ +//go:build tester + package mohuamvh_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./mohuamvh_test.go -args \ + go test -tags=tester -v ./mohuamvh_test.go -args \ --MOHUAMVH_TESTCERTPATH="/path/to/your-test-cert.pem" \ --MOHUAMVH_TESTKEYPATH="/path/to/your-test-key.pem" \ --MOHUAMVH_USERNAME="your-username" \ diff --git a/pkg/core/deployer/providers-tester/netlify/netlify_test.go b/pkg/core/deployer/providers-tester/netlify/netlify_test.go index 20c941472..fa519aabf 100644 --- a/pkg/core/deployer/providers-tester/netlify/netlify_test.go +++ b/pkg/core/deployer/providers-tester/netlify/netlify_test.go @@ -1,3 +1,5 @@ +//go:build tester + package netlify_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./netlify_test.go -args \ + go test -tags=tester -v ./netlify_test.go -args \ --NETLIFY_TESTCERTPATH="/path/to/your-test-cert.pem" \ --NETLIFY_TESTKEYPATH="/path/to/your-test-key.pem" \ --NETLIFY_APITOKEN="your-api-token" \ diff --git a/pkg/core/deployer/providers-tester/nginxproxymanager/nginxproxymanager_test.go b/pkg/core/deployer/providers-tester/nginxproxymanager/nginxproxymanager_test.go index 1f66a448c..ce6f39c0e 100644 --- a/pkg/core/deployer/providers-tester/nginxproxymanager/nginxproxymanager_test.go +++ b/pkg/core/deployer/providers-tester/nginxproxymanager/nginxproxymanager_test.go @@ -1,3 +1,5 @@ +//go:build tester + package nginxproxymanager_test import ( @@ -32,7 +34,7 @@ func init() { /* Shell command to run this test: - go test -v ./nginxproxymanager_test.go -args \ + go test -tags=tester -v ./nginxproxymanager_test.go -args \ --NGINXPROXYMANAGER_TESTCERTPATH="/path/to/your-test-cert.pem" \ --NGINXPROXYMANAGER_TESTKEYPATH="/path/to/your-test-key.pem" \ --NGINXPROXYMANAGER_SERVERURL="http://127.0.0.1:20410" \ diff --git a/pkg/core/deployer/providers-tester/proxmoxbs/proxmoxbs_test.go b/pkg/core/deployer/providers-tester/proxmoxbs/proxmoxbs_test.go index 7057823e1..8d32d4407 100644 --- a/pkg/core/deployer/providers-tester/proxmoxbs/proxmoxbs_test.go +++ b/pkg/core/deployer/providers-tester/proxmoxbs/proxmoxbs_test.go @@ -1,3 +1,5 @@ +//go:build tester + package proxmoxbs_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./proxmoxbs_test.go -args \ + go test -tags=tester -v ./proxmoxbs_test.go -args \ --PROXMOXBS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --PROXMOXBS_TESTKEYPATH="/path/to/your-test-key.pem" \ --PROXMOXBS_SERVERURL="http://127.0.0.1:8007" \ diff --git a/pkg/core/deployer/providers-tester/proxmoxve/proxmoxve_test.go b/pkg/core/deployer/providers-tester/proxmoxve/proxmoxve_test.go index 99f940929..be0a7530f 100644 --- a/pkg/core/deployer/providers-tester/proxmoxve/proxmoxve_test.go +++ b/pkg/core/deployer/providers-tester/proxmoxve/proxmoxve_test.go @@ -1,3 +1,5 @@ +//go:build tester + package proxmoxve_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./proxmoxve_test.go -args \ + go test -tags=tester -v ./proxmoxve_test.go -args \ --PROXMOXVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --PROXMOXVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --PROXMOXVE_SERVERURL="http://127.0.0.1:8006" \ diff --git a/pkg/core/deployer/providers-tester/qingcloud-lb/qingcloud_lb_test.go b/pkg/core/deployer/providers-tester/qingcloud-lb/qingcloud_lb_test.go index c0816f840..5f577e131 100644 --- a/pkg/core/deployer/providers-tester/qingcloud-lb/qingcloud_lb_test.go +++ b/pkg/core/deployer/providers-tester/qingcloud-lb/qingcloud_lb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qingcloudlb_test import ( @@ -34,7 +36,7 @@ func init() { /* Shell command to run this test: - go test -v ./qingcloud_lb_test.go -args \ + go test -tags=tester -v ./qingcloud_lb_test.go -args \ --QINGCLOUDLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINGCLOUDLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINGCLOUDLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/qiniu-cdn/qiniu_cdn_test.go b/pkg/core/deployer/providers-tester/qiniu-cdn/qiniu_cdn_test.go index 3e9e0513b..097b022b2 100644 --- a/pkg/core/deployer/providers-tester/qiniu-cdn/qiniu_cdn_test.go +++ b/pkg/core/deployer/providers-tester/qiniu-cdn/qiniu_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qiniucdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./qiniu_cdn_test.go -args \ + go test -tags=tester -v ./qiniu_cdn_test.go -args \ --QINIUCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINIUCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINIUCDN_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/deployer/providers-tester/qiniu-kodo/qiniu_kodo_test.go b/pkg/core/deployer/providers-tester/qiniu-kodo/qiniu_kodo_test.go index 8b6907305..600e08584 100644 --- a/pkg/core/deployer/providers-tester/qiniu-kodo/qiniu_kodo_test.go +++ b/pkg/core/deployer/providers-tester/qiniu-kodo/qiniu_kodo_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qiniukodo_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./qiniu_kodo_test.go -args \ + go test -tags=tester -v ./qiniu_kodo_test.go -args \ --QINIUKODO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINIUKODO_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINIUKODO_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/deployer/providers-tester/qiniu-pili/qiniu_pili_test.go b/pkg/core/deployer/providers-tester/qiniu-pili/qiniu_pili_test.go index 992230dd9..15a1aa1a6 100644 --- a/pkg/core/deployer/providers-tester/qiniu-pili/qiniu_pili_test.go +++ b/pkg/core/deployer/providers-tester/qiniu-pili/qiniu_pili_test.go @@ -1,3 +1,5 @@ +//go:build tester + package qiniupili_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./qiniu_pili_test.go -args \ + go test -tags=tester -v ./qiniu_pili_test.go -args \ --QINIUPILI_TESTCERTPATH="/path/to/your-test-cert.pem" \ --QINIUPILI_TESTKEYPATH="/path/to/your-test-key.pem" \ --QINIUPILI_ACCESSKEY="your-access-key" \ diff --git a/pkg/core/deployer/providers-tester/rainyun-rcdn/rainyun_rcdn_test.go b/pkg/core/deployer/providers-tester/rainyun-rcdn/rainyun_rcdn_test.go index fb28d1219..6bcd0beab 100644 --- a/pkg/core/deployer/providers-tester/rainyun-rcdn/rainyun_rcdn_test.go +++ b/pkg/core/deployer/providers-tester/rainyun-rcdn/rainyun_rcdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package rainyunrcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./rainyun_rcdn_test.go -args \ + go test -tags=tester -v ./rainyun_rcdn_test.go -args \ --RAINYUNRCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --RAINYUNRCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --RAINYUNRCDN_APIKEY="your-api-key" \ diff --git a/pkg/core/deployer/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go b/pkg/core/deployer/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go index 54e5be1e1..2141be438 100644 --- a/pkg/core/deployer/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go +++ b/pkg/core/deployer/providers-tester/rainyun-sslcenter/rainyun_sslcenter_test.go @@ -1,3 +1,5 @@ +//go:build tester + package rainyunsslcenter_test import ( @@ -25,7 +27,7 @@ func init() { /* Shell command to run this test: - go test -v ./rainyun_sslcenter_test.go -args \ + go test -tags=tester -v ./rainyun_sslcenter_test.go -args \ --RAINYUNRCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --RAINYUNRCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --RAINYUNRCDN_APIKEY="your-api-key" diff --git a/pkg/core/deployer/providers-tester/ratpanel-console/ratpanel_console_test.go b/pkg/core/deployer/providers-tester/ratpanel-console/ratpanel_console_test.go index d053ec7d9..48fbb9fc9 100644 --- a/pkg/core/deployer/providers-tester/ratpanel-console/ratpanel_console_test.go +++ b/pkg/core/deployer/providers-tester/ratpanel-console/ratpanel_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ratpanelconsole_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ratpanel_console_test.go -args \ + go test -tags=tester -v ./ratpanel_console_test.go -args \ --RATPANELCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --RATPANELCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --RATPANELCONSOLE_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/ratpanel/ratpanel_test.go b/pkg/core/deployer/providers-tester/ratpanel/ratpanel_test.go index bab138dbf..c66a168c2 100644 --- a/pkg/core/deployer/providers-tester/ratpanel/ratpanel_test.go +++ b/pkg/core/deployer/providers-tester/ratpanel/ratpanel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ratpanel_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./ratpanel_test.go -args \ + go test -tags=tester -v ./ratpanel_test.go -args \ --RATPANEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --RATPANEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --RATPANEL_SERVERURL="http://127.0.0.1:8888" \ diff --git a/pkg/core/deployer/providers-tester/s3/s3_test.go b/pkg/core/deployer/providers-tester/s3/s3_test.go index 25bbf9d99..6b237a1ff 100644 --- a/pkg/core/deployer/providers-tester/s3/s3_test.go +++ b/pkg/core/deployer/providers-tester/s3/s3_test.go @@ -1,3 +1,5 @@ +//go:build tester + package s3_test import ( @@ -37,7 +39,7 @@ func init() { /* Shell command to run this test: - go test -v ./s3_test.go -args \ + go test -tags=tester -v ./s3_test.go -args \ --S3_TESTCERTPATH="/path/to/your-test-cert.pem" \ --S3_TESTKEYPATH="/path/to/your-test-key.pem" \ --S3_ENDPOINT="http://endpoint" \ diff --git a/pkg/core/deployer/providers-tester/safeline/safeline_test.go b/pkg/core/deployer/providers-tester/safeline/safeline_test.go index 2f7b37b1b..cf20da447 100644 --- a/pkg/core/deployer/providers-tester/safeline/safeline_test.go +++ b/pkg/core/deployer/providers-tester/safeline/safeline_test.go @@ -1,3 +1,5 @@ +//go:build tester + package safeline_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./safeline_test.go -args \ + go test -tags=tester -v ./safeline_test.go -args \ --SAFELINE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --SAFELINE_TESTKEYPATH="/path/to/your-test-key.pem" \ --SAFELINE_SERVERURL="http://127.0.0.1:9443" \ diff --git a/pkg/core/deployer/providers-tester/samwaf-console/samwaf_console_test.go b/pkg/core/deployer/providers-tester/samwaf-console/samwaf_console_test.go index 331a4d7c1..554049558 100644 --- a/pkg/core/deployer/providers-tester/samwaf-console/samwaf_console_test.go +++ b/pkg/core/deployer/providers-tester/samwaf-console/samwaf_console_test.go @@ -1,3 +1,5 @@ +//go:build tester + package samwafconsole_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./samwaf_console_test.go -args \ + go test -tags=tester -v ./samwaf_console_test.go -args \ --SAMWAFCONSOLE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --SAMWAFCONSOLE_TESTKEYPATH="/path/to/your-test-key.pem" \ --SAMWAFCONSOLE_SERVERURL="http://127.0.0.1:26666" \ diff --git a/pkg/core/deployer/providers-tester/samwaf/samwaf_test.go b/pkg/core/deployer/providers-tester/samwaf/samwaf_test.go index 85b36d076..2bebb2166 100644 --- a/pkg/core/deployer/providers-tester/samwaf/samwaf_test.go +++ b/pkg/core/deployer/providers-tester/samwaf/samwaf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package samwaf_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./samwaf_test.go -args \ + go test -tags=tester -v ./samwaf_test.go -args \ --SAMWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --SAMWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --SAMWAF_SERVERURL="http://127.0.0.1:26666" \ diff --git a/pkg/core/deployer/providers-tester/ssh/ssh_test.go b/pkg/core/deployer/providers-tester/ssh/ssh_test.go index c63226107..b03eb9d4d 100644 --- a/pkg/core/deployer/providers-tester/ssh/ssh_test.go +++ b/pkg/core/deployer/providers-tester/ssh/ssh_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ssh_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./ssh_test.go -args \ + go test -tags=tester -v ./ssh_test.go -args \ --SSH_TESTCERTPATH="/path/to/your-test-cert.pem" \ --SSH_TESTKEYPATH="/path/to/your-test-key.pem" \ --SSH_SSHHOST="localhost" \ diff --git a/pkg/core/deployer/providers-tester/synologydsm/synologydsm_test.go b/pkg/core/deployer/providers-tester/synologydsm/synologydsm_test.go index 0f537f67e..4c17416c1 100644 --- a/pkg/core/deployer/providers-tester/synologydsm/synologydsm_test.go +++ b/pkg/core/deployer/providers-tester/synologydsm/synologydsm_test.go @@ -1,3 +1,5 @@ +//go:build tester + package synologydsm_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./synology_dsm_test.go -args \ + go test -tags=tester -v ./synology_dsm_test.go -args \ --SYNOLOGYDSM_TESTCERTPATH="/path/to/your-test-cert.pem" \ --SYNOLOGYDSM_TESTKEYPATH="/path/to/your-test-key.pem" \ --SYNOLOGYDSM_SERVERURL="http://127.0.0.1:5000/" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-cdn/tencentcloud_cdn_test.go b/pkg/core/deployer/providers-tester/tencentcloud-cdn/tencentcloud_cdn_test.go index 361b01035..3df6c92e9 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-cdn/tencentcloud_cdn_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-cdn/tencentcloud_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_cdn_test.go -args \ + go test -tags=tester -v ./tencentcloud_cdn_test.go -args \ --TENCENTCLOUDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDCDN_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-clb/tencentcloud_clb_test.go b/pkg/core/deployer/providers-tester/tencentcloud-clb/tencentcloud_clb_test.go index deb050e27..a30a24b17 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-clb/tencentcloud_clb_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-clb/tencentcloud_clb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudclb_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_clb_test.go -args \ + go test -tags=tester -v ./tencentcloud_clb_test.go -args \ --TENCENTCLOUDCLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDCLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDCLB_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-cos/tencentcloud_cos_test.go b/pkg/core/deployer/providers-tester/tencentcloud-cos/tencentcloud_cos_test.go index 1e6e90916..30771999a 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-cos/tencentcloud_cos_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-cos/tencentcloud_cos_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudcos_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_cos_test.go -args \ + go test -tags=tester -v ./tencentcloud_cos_test.go -args \ --TENCENTCLOUDCOS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDCOS_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDCOS_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-css/tencentcloud_css_test.go b/pkg/core/deployer/providers-tester/tencentcloud-css/tencentcloud_css_test.go index accb6e735..ba5954406 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-css/tencentcloud_css_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-css/tencentcloud_css_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudcss_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_css_test.go -args \ + go test -tags=tester -v ./tencentcloud_css_test.go -args \ --TENCENTCLOUDCSS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDCSS_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDCSS_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-ecdn/tencentcloud_ecdn_test.go b/pkg/core/deployer/providers-tester/tencentcloud-ecdn/tencentcloud_ecdn_test.go index b4de5864d..845eaf6ec 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-ecdn/tencentcloud_ecdn_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-ecdn/tencentcloud_ecdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudecdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_ecdn_test.go -args \ + go test -tags=tester -v ./tencentcloud_ecdn_test.go -args \ --TENCENTCLOUDECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDECDN_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-eo/tencentcloud_eo_test.go b/pkg/core/deployer/providers-tester/tencentcloud-eo/tencentcloud_eo_test.go index 963c26665..2260b2116 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-eo/tencentcloud_eo_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-eo/tencentcloud_eo_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudeo_test import ( @@ -32,7 +34,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_eo_test.go -args \ + go test -tags=tester -v ./tencentcloud_eo_test.go -args \ --TENCENTCLOUDEO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDEO_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDEO_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-eomakers/tencentcloud_eomakers_test.go b/pkg/core/deployer/providers-tester/tencentcloud-eomakers/tencentcloud_eomakers_test.go index 596fb0224..fc57363bb 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-eomakers/tencentcloud_eomakers_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-eomakers/tencentcloud_eomakers_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudeomakers_test import ( @@ -34,7 +36,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_eomakers_test.go -args \ + go test -tags=tester -v ./tencentcloud_eomakers_test.go -args \ --TENCENTCLOUDEOMAKERS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDEOMAKERS_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDEOMAKERS_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-ga2/tencentcloud_ga2_test.go b/pkg/core/deployer/providers-tester/tencentcloud-ga2/tencentcloud_ga2_test.go index 953989b3c..949579955 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-ga2/tencentcloud_ga2_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-ga2/tencentcloud_ga2_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudga2_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_ga2_test.go -args \ + go test -tags=tester -v ./tencentcloud_ga2_test.go -args \ --TENCENTCLOUDGA2_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDGA2_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDGA2_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go b/pkg/core/deployer/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go index ac2449db6..395e7a222 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-gaap/tencentcloud_gaap_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudgaap_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_gaap_test.go -args \ + go test -tags=tester -v ./tencentcloud_gaap_test.go -args \ --TENCENTCLOUDGAAP_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDGAAP_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDGAAP_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-scf/tencentcloud_scf_test.go b/pkg/core/deployer/providers-tester/tencentcloud-scf/tencentcloud_scf_test.go index 64ba28aae..1339c9448 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-scf/tencentcloud_scf_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-scf/tencentcloud_scf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudscf_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_scf_test.go -args \ + go test -tags=tester -v ./tencentcloud_scf_test.go -args \ --TENCENTCLOUDSCF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDSCF_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDSCF_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-vod/tencentcloud_vod_test.go b/pkg/core/deployer/providers-tester/tencentcloud-vod/tencentcloud_vod_test.go index 22c180cb8..4c1f6bb6c 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-vod/tencentcloud_vod_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-vod/tencentcloud_vod_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudvod_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_vod_test.go -args \ + go test -tags=tester -v ./tencentcloud_vod_test.go -args \ --TENCENTCLOUDVOD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDVOD_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDVOD_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tencentcloud-waf/tencentcloud_waf_test.go b/pkg/core/deployer/providers-tester/tencentcloud-waf/tencentcloud_waf_test.go index e1d889767..2dc809b24 100644 --- a/pkg/core/deployer/providers-tester/tencentcloud-waf/tencentcloud_waf_test.go +++ b/pkg/core/deployer/providers-tester/tencentcloud-waf/tencentcloud_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package tencentcloudwaf_test import ( @@ -35,7 +37,7 @@ func init() { /* Shell command to run this test: - go test -v ./tencentcloud_waf_test.go -args \ + go test -tags=tester -v ./tencentcloud_waf_test.go -args \ --TENCENTCLOUDWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --TENCENTCLOUDWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --TENCENTCLOUDWAF_SECRETID="your-secret-id" \ diff --git a/pkg/core/deployer/providers-tester/tester.go b/pkg/core/deployer/providers-tester/tester.go index fd100df20..1d91cd5bd 100644 --- a/pkg/core/deployer/providers-tester/tester.go +++ b/pkg/core/deployer/providers-tester/tester.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/deployer/providers-tester/tester_args.go b/pkg/core/deployer/providers-tester/tester_args.go index adcdc3dba..110391f3d 100644 --- a/pkg/core/deployer/providers-tester/tester_args.go +++ b/pkg/core/deployer/providers-tester/tester_args.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/deployer/providers-tester/ucloud-ualb/ucloud_ualb_test.go b/pkg/core/deployer/providers-tester/ucloud-ualb/ucloud_ualb_test.go index 060254815..e6d420330 100644 --- a/pkg/core/deployer/providers-tester/ucloud-ualb/ucloud_ualb_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-ualb/ucloud_ualb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudualb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_ualb_test.go -args \ + go test -tags=tester -v ./ucloud_ualb_test.go -args \ --UCLOUDUALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUALB_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/ucloud-ucdn/ucloud_ucdn_test.go b/pkg/core/deployer/providers-tester/ucloud-ucdn/ucloud_ucdn_test.go index f09adb7e8..fad2058c3 100644 --- a/pkg/core/deployer/providers-tester/ucloud-ucdn/ucloud_ucdn_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-ucdn/ucloud_ucdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package uclouducdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_ucdn_test.go -args \ + go test -tags=tester -v ./ucloud_ucdn_test.go -args \ --UCLOUDUCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUCDN_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/ucloud-uclb/ucloud_uclb_test.go b/pkg/core/deployer/providers-tester/ucloud-uclb/ucloud_uclb_test.go index 19036d8c9..08f385b9f 100644 --- a/pkg/core/deployer/providers-tester/ucloud-uclb/ucloud_uclb_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-uclb/ucloud_uclb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package uclouduclb_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_uclb_test.go -args \ + go test -tags=tester -v ./ucloud_uclb_test.go -args \ --UCLOUDUCLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUCLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUCLB_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/ucloud-uewaf/ucloud_uewaf_test.go b/pkg/core/deployer/providers-tester/ucloud-uewaf/ucloud_uewaf_test.go index 5c3ac2148..e81b93633 100644 --- a/pkg/core/deployer/providers-tester/ucloud-uewaf/ucloud_uewaf_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-uewaf/ucloud_uewaf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package uclouduewaf_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_uewaf_test.go -args \ + go test -tags=tester -v ./ucloud_uewaf_test.go -args \ --UCLOUDUEWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUEWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUEWAF_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/ucloud-upathx/ucloud_upathx_test.go b/pkg/core/deployer/providers-tester/ucloud-upathx/ucloud_upathx_test.go index 614341906..854f5d7e8 100644 --- a/pkg/core/deployer/providers-tester/ucloud-upathx/ucloud_upathx_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-upathx/ucloud_upathx_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudupathx_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_upathx_test.go -args \ + go test -tags=tester -v ./ucloud_upathx_test.go -args \ --UCLOUDUPATHX_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUPATHX_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUPATHX_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/ucloud-us3/ucloud_us3_test.go b/pkg/core/deployer/providers-tester/ucloud-us3/ucloud_us3_test.go index c734a4a70..eb925d7c9 100644 --- a/pkg/core/deployer/providers-tester/ucloud-us3/ucloud_us3_test.go +++ b/pkg/core/deployer/providers-tester/ucloud-us3/ucloud_us3_test.go @@ -1,3 +1,5 @@ +//go:build tester + package ucloudus3_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./ucloud_us3_test.go -args \ + go test -tags=tester -v ./ucloud_us3_test.go -args \ --UCLOUDUS3_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UCLOUDUS3_TESTKEYPATH="/path/to/your-test-key.pem" \ --UCLOUDUS3_PRIVATEKEY="your-private-key" \ diff --git a/pkg/core/deployer/providers-tester/unicloud-webhost/unicloud_webhost_test.go b/pkg/core/deployer/providers-tester/unicloud-webhost/unicloud_webhost_test.go index d27d127a0..e532f70a9 100644 --- a/pkg/core/deployer/providers-tester/unicloud-webhost/unicloud_webhost_test.go +++ b/pkg/core/deployer/providers-tester/unicloud-webhost/unicloud_webhost_test.go @@ -1,3 +1,5 @@ +//go:build tester + package unicloudwebhost_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./unicloud_webhost_test.go -args \ + go test -tags=tester -v ./unicloud_webhost_test.go -args \ --UNICLOUDWEBHOST_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UNICLOUDWEBHOST_TESTKEYPATH="/path/to/your-test-key.pem" \ --UNICLOUDWEBHOST_USERNAME="your-username" \ diff --git a/pkg/core/deployer/providers-tester/upyun-cdn/upyun_cdn_test.go b/pkg/core/deployer/providers-tester/upyun-cdn/upyun_cdn_test.go index 70207a66c..2fd06d97c 100644 --- a/pkg/core/deployer/providers-tester/upyun-cdn/upyun_cdn_test.go +++ b/pkg/core/deployer/providers-tester/upyun-cdn/upyun_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package upyuncdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./upyun_cdn_test.go -args \ + go test -tags=tester -v ./upyun_cdn_test.go -args \ --UPYUNCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UPYUNCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --UPYUNCDN_USERNAME="your-username" \ diff --git a/pkg/core/deployer/providers-tester/upyun-file/upyun_file_test.go b/pkg/core/deployer/providers-tester/upyun-file/upyun_file_test.go index 55d247fe8..0e79bca68 100644 --- a/pkg/core/deployer/providers-tester/upyun-file/upyun_file_test.go +++ b/pkg/core/deployer/providers-tester/upyun-file/upyun_file_test.go @@ -1,3 +1,5 @@ +//go:build tester + package upyunfile_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./upyun_file_test.go -args \ + go test -tags=tester -v ./upyun_file_test.go -args \ --UPYUNFILE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --UPYUNFILE_TESTKEYPATH="/path/to/your-test-key.pem" \ --UPYUNFILE_USERNAME="your-username" \ diff --git a/pkg/core/deployer/providers-tester/vercel/vercel_test.go b/pkg/core/deployer/providers-tester/vercel/vercel_test.go index 5e883aaa6..35943d49b 100644 --- a/pkg/core/deployer/providers-tester/vercel/vercel_test.go +++ b/pkg/core/deployer/providers-tester/vercel/vercel_test.go @@ -1,3 +1,5 @@ +//go:build tester + package vercel_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./vercel_test.go -args \ + go test -tags=tester -v ./vercel_test.go -args \ --VERCEL_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VERCEL_TESTKEYPATH="/path/to/your-test-key.pem" \ --VERCEL_APIACCESSTOKEN="your-api-access-token" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-alb/volcengine_alb_test.go b/pkg/core/deployer/providers-tester/volcengine-alb/volcengine_alb_test.go index 83e68a4fd..b330ecad4 100644 --- a/pkg/core/deployer/providers-tester/volcengine-alb/volcengine_alb_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-alb/volcengine_alb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginealb_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_alb_test.go -args \ + go test -tags=tester -v ./volcengine_alb_test.go -args \ --VOLCENGINEALB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEALB_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEALB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-apig/volcengine_apig_test.go b/pkg/core/deployer/providers-tester/volcengine-apig/volcengine_apig_test.go index 6ac2d1c34..c33e48bfc 100644 --- a/pkg/core/deployer/providers-tester/volcengine-apig/volcengine_apig_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-apig/volcengine_apig_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcengineapig_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_apig_test.go -args \ + go test -tags=tester -v ./volcengine_apig_test.go -args \ --VOLCENGINEAPIG_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEAPIG_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEAPIG_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-cdn/volcengine_cdn_test.go b/pkg/core/deployer/providers-tester/volcengine-cdn/volcengine_cdn_test.go index 30c8323d6..cb4c3895e 100644 --- a/pkg/core/deployer/providers-tester/volcengine-cdn/volcengine_cdn_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-cdn/volcengine_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginecdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_cdn_test.go -args \ + go test -tags=tester -v ./volcengine_cdn_test.go -args \ --VOLCENGINECDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINECDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINECDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-clb/volcengine_clb_test.go b/pkg/core/deployer/providers-tester/volcengine-clb/volcengine_clb_test.go index 1e26cabdb..d982c884f 100644 --- a/pkg/core/deployer/providers-tester/volcengine-clb/volcengine_clb_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-clb/volcengine_clb_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcengineclb_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_clb_test.go -args \ + go test -tags=tester -v ./volcengine_clb_test.go -args \ --VOLCENGINECLB_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINECLB_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINECLB_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-dcdn/volcengine_dcdn_test.go b/pkg/core/deployer/providers-tester/volcengine-dcdn/volcengine_dcdn_test.go index e76b3d4c0..3dd8c384f 100644 --- a/pkg/core/deployer/providers-tester/volcengine-dcdn/volcengine_dcdn_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-dcdn/volcengine_dcdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginedcdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_dcdn_test.go -args \ + go test -tags=tester -v ./volcengine_dcdn_test.go -args \ --VOLCENGINEDCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEDCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEDCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-imagex/volcengine_imagex_test.go b/pkg/core/deployer/providers-tester/volcengine-imagex/volcengine_imagex_test.go index 5b737fed8..6182f38cf 100644 --- a/pkg/core/deployer/providers-tester/volcengine-imagex/volcengine_imagex_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-imagex/volcengine_imagex_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcengineimagex_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_imagex_test.go -args \ + go test -tags=tester -v ./volcengine_imagex_test.go -args \ --VOLCENGINEIMAGEX_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEIMAGEX_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEIMAGEX_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-live/volcengine_live_test.go b/pkg/core/deployer/providers-tester/volcengine-live/volcengine_live_test.go index d1b8a4a39..f922e415b 100644 --- a/pkg/core/deployer/providers-tester/volcengine-live/volcengine_live_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-live/volcengine_live_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginelive_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_live_test.go -args \ + go test -tags=tester -v ./volcengine_live_test.go -args \ --VOLCENGINELIVE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINELIVE_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINELIVE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-tos/volcengine_tos_test.go b/pkg/core/deployer/providers-tester/volcengine-tos/volcengine_tos_test.go index 79670a0c9..65f7b36d3 100644 --- a/pkg/core/deployer/providers-tester/volcengine-tos/volcengine_tos_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-tos/volcengine_tos_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginetos_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_tos_test.go -args \ + go test -tags=tester -v ./volcengine_tos_test.go -args \ --VOLCENGINETOS_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINETOS_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINETOS_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-vod/volcengine_vod_test.go b/pkg/core/deployer/providers-tester/volcengine-vod/volcengine_vod_test.go index 0db52a965..1205ad55f 100644 --- a/pkg/core/deployer/providers-tester/volcengine-vod/volcengine_vod_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-vod/volcengine_vod_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginevod_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_vod_test.go -args \ + go test -tags=tester -v ./volcengine_vod_test.go -args \ --VOLCENGINEVOD_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEVOD_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEVOD_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/volcengine-waf/volcengine_waf_test.go b/pkg/core/deployer/providers-tester/volcengine-waf/volcengine_waf_test.go index 08e24b66a..8ec84f86d 100644 --- a/pkg/core/deployer/providers-tester/volcengine-waf/volcengine_waf_test.go +++ b/pkg/core/deployer/providers-tester/volcengine-waf/volcengine_waf_test.go @@ -1,3 +1,5 @@ +//go:build tester + package volcenginewaf_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./volcengine_waf_test.go -args \ + go test -tags=tester -v ./volcengine_waf_test.go -args \ --VOLCENGINEWAF_TESTCERTPATH="/path/to/your-test-cert.pem" \ --VOLCENGINEWAF_TESTKEYPATH="/path/to/your-test-key.pem" \ --VOLCENGINEWAF_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/wangsu-cdn/wangsu_cdn_test.go b/pkg/core/deployer/providers-tester/wangsu-cdn/wangsu_cdn_test.go index 5aeba0e7a..b840dd298 100644 --- a/pkg/core/deployer/providers-tester/wangsu-cdn/wangsu_cdn_test.go +++ b/pkg/core/deployer/providers-tester/wangsu-cdn/wangsu_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package wangsucdn_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./wangsu_cdn_test.go -args \ + go test -tags=tester -v ./wangsu_cdn_test.go -args \ --WANGSUCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --WANGSUCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --WANGSUCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/wangsu-cdnpro/wangsu_cdnpro_test.go b/pkg/core/deployer/providers-tester/wangsu-cdnpro/wangsu_cdnpro_test.go index 65487122c..9ca4db5d1 100644 --- a/pkg/core/deployer/providers-tester/wangsu-cdnpro/wangsu_cdnpro_test.go +++ b/pkg/core/deployer/providers-tester/wangsu-cdnpro/wangsu_cdnpro_test.go @@ -1,3 +1,5 @@ +//go:build tester + package wangsucdnpro_test import ( @@ -37,7 +39,7 @@ func init() { /* Shell command to run this test: - go test -v ./wangsu_cdnpro_test.go -args \ + go test -tags=tester -v ./wangsu_cdnpro_test.go -args \ --WANGSUCDNPRO_TESTCERTPATH="/path/to/your-test-cert.pem" \ --WANGSUCDNPRO_TESTKEYPATH="/path/to/your-test-key.pem" \ --WANGSUCDNPRO_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/wangsu-certificate/wangsu_certificate_test.go b/pkg/core/deployer/providers-tester/wangsu-certificate/wangsu_certificate_test.go index b59d72546..c7bd5dfb4 100644 --- a/pkg/core/deployer/providers-tester/wangsu-certificate/wangsu_certificate_test.go +++ b/pkg/core/deployer/providers-tester/wangsu-certificate/wangsu_certificate_test.go @@ -1,3 +1,5 @@ +//go:build tester + package wangsucertificate_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./wangsu_certificate_test.go -args \ + go test -tags=tester -v ./wangsu_certificate_test.go -args \ --WANGSUCERTIFICATE_TESTCERTPATH="/path/to/your-test-cert.pem" \ --WANGSUCERTIFICATE_TESTKEYPATH="/path/to/your-test-key.pem" \ --WANGSUCERTIFICATE_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/webhook/webhook_test.go b/pkg/core/deployer/providers-tester/webhook/webhook_test.go index 32ed5b318..2d2744ae6 100644 --- a/pkg/core/deployer/providers-tester/webhook/webhook_test.go +++ b/pkg/core/deployer/providers-tester/webhook/webhook_test.go @@ -1,3 +1,5 @@ +//go:build tester + package webhook_test import ( @@ -29,7 +31,7 @@ func init() { /* Shell command to run this test: - go test -v ./webhook_test.go -args \ + go test -tags=tester -v ./webhook_test.go -args \ --WEBHOOK_TESTCERTPATH="/path/to/your-test-cert.pem" \ --WEBHOOK_TESTKEYPATH="/path/to/your-test-key.pem" \ --WEBHOOK_URL="https://example.com/your-webhook-url" \ diff --git a/pkg/core/deployer/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go b/pkg/core/deployer/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go index 914a0baee..e6a2118e0 100644 --- a/pkg/core/deployer/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go +++ b/pkg/core/deployer/providers-tester/zenlayer-cdn/zenlayer_cdn_test.go @@ -1,3 +1,5 @@ +//go:build tester + package zenlayercdn_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./zenlayer_cdn_test.go -args \ + go test -tags=tester -v ./zenlayer_cdn_test.go -args \ --ZENLAYERCDN_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ZENLAYERCDN_TESTKEYPATH="/path/to/your-test-key.pem" \ --ZENLAYERCDN_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/deployer/providers-tester/zenlayer-ga/zenlayer_ga_test.go b/pkg/core/deployer/providers-tester/zenlayer-ga/zenlayer_ga_test.go index 9231e432e..272142aa2 100644 --- a/pkg/core/deployer/providers-tester/zenlayer-ga/zenlayer_ga_test.go +++ b/pkg/core/deployer/providers-tester/zenlayer-ga/zenlayer_ga_test.go @@ -1,3 +1,5 @@ +//go:build tester + package zenlayerga_test import ( @@ -31,7 +33,7 @@ func init() { /* Shell command to run this test: - go test -v ./zenlayer_ga_test.go -args \ + go test -tags=tester -v ./zenlayer_ga_test.go -args \ --ZENLAYERGA_TESTCERTPATH="/path/to/your-test-cert.pem" \ --ZENLAYERGA_TESTKEYPATH="/path/to/your-test-key.pem" \ --ZENLAYERGA_ACCESSKEYID="your-access-key-id" \ diff --git a/pkg/core/notifier/providers-tester/dingtalkbot/dingtalkbot_test.go b/pkg/core/notifier/providers-tester/dingtalkbot/dingtalkbot_test.go index 98285846c..1c8611205 100644 --- a/pkg/core/notifier/providers-tester/dingtalkbot/dingtalkbot_test.go +++ b/pkg/core/notifier/providers-tester/dingtalkbot/dingtalkbot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package dingtalkbot_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./dingtalkbot_test.go -args \ + go test -tags=tester -v ./dingtalkbot_test.go -args \ --DINGTALKBOT_WEBHOOKURL="https://example.com/your-webhook-url" \ --DINGTALKBOT_SECRET="your-secret" */ diff --git a/pkg/core/notifier/providers-tester/discordbot/discordbot_test.go b/pkg/core/notifier/providers-tester/discordbot/discordbot_test.go index 308812880..837ac9942 100644 --- a/pkg/core/notifier/providers-tester/discordbot/discordbot_test.go +++ b/pkg/core/notifier/providers-tester/discordbot/discordbot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package discordbot_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./discordbot_test.go -args \ + go test -tags=tester -v ./discordbot_test.go -args \ --DISCORDBOT_APITOKEN="your-bot-token" \ --DISCORDBOT_CHANNELID="your-channel-id" */ diff --git a/pkg/core/notifier/providers-tester/email/email_test.go b/pkg/core/notifier/providers-tester/email/email_test.go index 54a733777..552a2afd2 100644 --- a/pkg/core/notifier/providers-tester/email/email_test.go +++ b/pkg/core/notifier/providers-tester/email/email_test.go @@ -1,3 +1,5 @@ +//go:build tester + package email_test import ( @@ -33,7 +35,7 @@ func init() { /* Shell command to run this test: - go test -v ./email_test.go -args \ + go test -tags=tester -v ./email_test.go -args \ --EMAIL_SMTPHOST="smtp.example.com" \ --EMAIL_SMTPPORT=465 \ --EMAIL_SMTPTLS=true \ diff --git a/pkg/core/notifier/providers-tester/larkbot/larkbot_test.go b/pkg/core/notifier/providers-tester/larkbot/larkbot_test.go index 634a94b25..2c9d17127 100644 --- a/pkg/core/notifier/providers-tester/larkbot/larkbot_test.go +++ b/pkg/core/notifier/providers-tester/larkbot/larkbot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package larkbot_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./larkbot_test.go -args \ + go test -tags=tester -v ./larkbot_test.go -args \ --LARKBOT_WEBHOOKURL="https://example.com/your-webhook-url" \ --LARKBOT_SECRET="your-secret" */ diff --git a/pkg/core/notifier/providers-tester/matrix/matrix_test.go b/pkg/core/notifier/providers-tester/matrix/matrix_test.go index ace653aed..7778364f7 100644 --- a/pkg/core/notifier/providers-tester/matrix/matrix_test.go +++ b/pkg/core/notifier/providers-tester/matrix/matrix_test.go @@ -1,3 +1,5 @@ +//go:build tester + package matrix_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./matrix_test.go -args \ + go test -tags=tester -v ./matrix_test.go -args \ --MATRIX_SERVERURL="https://example.com/your-matrix-server" \ --MATRIX_USERID="@bot:example.org" \ --MATRIX_ACCESSTOKEN="your-access-token" \ diff --git a/pkg/core/notifier/providers-tester/mattermost/mattermost_test.go b/pkg/core/notifier/providers-tester/mattermost/mattermost_test.go index 20eec8401..a4c050040 100644 --- a/pkg/core/notifier/providers-tester/mattermost/mattermost_test.go +++ b/pkg/core/notifier/providers-tester/mattermost/mattermost_test.go @@ -1,3 +1,5 @@ +//go:build tester + package mattermost_test import ( @@ -27,7 +29,7 @@ func init() { /* Shell command to run this test: - go test -v ./mattermost_test.go -args \ + go test -tags=tester -v ./mattermost_test.go -args \ --MATTERMOST_SERVERURL="https://example.com/your-server-url" \ --MATTERMOST_CHANNELID="your-chanel-id" \ --MATTERMOST_USERNAME="your-username" \ diff --git a/pkg/core/notifier/providers-tester/slackbot/slackbot_test.go b/pkg/core/notifier/providers-tester/slackbot/slackbot_test.go index e3374fc1b..deb9a4a44 100644 --- a/pkg/core/notifier/providers-tester/slackbot/slackbot_test.go +++ b/pkg/core/notifier/providers-tester/slackbot/slackbot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package slackbot_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./slackbot_test.go -args \ + go test -tags=tester -v ./slackbot_test.go -args \ --SLACKBOT_APITOKEN="your-bot-token" \ --SLACKBOT_CHANNELID="your-channel-id" */ diff --git a/pkg/core/notifier/providers-tester/telegrambot/telegrambot_test.go b/pkg/core/notifier/providers-tester/telegrambot/telegrambot_test.go index 58c5e6275..c8c7afe0d 100644 --- a/pkg/core/notifier/providers-tester/telegrambot/telegrambot_test.go +++ b/pkg/core/notifier/providers-tester/telegrambot/telegrambot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package telegrambot_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./telegrambot_test.go -args \ + go test -tags=tester -v ./telegrambot_test.go -args \ --TELEGRAMBOT_APITOKEN="your-api-token" \ --TELEGRAMBOT_CHATID="your-chat-id" */ diff --git a/pkg/core/notifier/providers-tester/tester.go b/pkg/core/notifier/providers-tester/tester.go index abfdba613..53e2e6c4e 100644 --- a/pkg/core/notifier/providers-tester/tester.go +++ b/pkg/core/notifier/providers-tester/tester.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/notifier/providers-tester/tester_args.go b/pkg/core/notifier/providers-tester/tester_args.go index adcdc3dba..110391f3d 100644 --- a/pkg/core/notifier/providers-tester/tester_args.go +++ b/pkg/core/notifier/providers-tester/tester_args.go @@ -1,3 +1,5 @@ +//go:build tester + package tester import ( diff --git a/pkg/core/notifier/providers-tester/webhook/webhook_test.go b/pkg/core/notifier/providers-tester/webhook/webhook_test.go index 486955d3a..3c4dd78ce 100644 --- a/pkg/core/notifier/providers-tester/webhook/webhook_test.go +++ b/pkg/core/notifier/providers-tester/webhook/webhook_test.go @@ -1,3 +1,5 @@ +//go:build tester + package webhook_test import ( @@ -23,7 +25,7 @@ func init() { /* Shell command to run this test: - go test -v ./webhook_test.go -args \ + go test -tags=tester -v ./webhook_test.go -args \ --WEBHOOK_URL="https://example.com/your-webhook-url" \ --WEBHOOK_CONTENTTYPE="application/json" */ diff --git a/pkg/core/notifier/providers-tester/wecombot/wecombot_test.go b/pkg/core/notifier/providers-tester/wecombot/wecombot_test.go index 59ec99b99..c5128f649 100644 --- a/pkg/core/notifier/providers-tester/wecombot/wecombot_test.go +++ b/pkg/core/notifier/providers-tester/wecombot/wecombot_test.go @@ -1,3 +1,5 @@ +//go:build tester + package wecombot_test import ( @@ -21,7 +23,7 @@ func init() { /* Shell command to run this test: - go test -v ./wecombot_test.go -args \ + go test -tags=tester -v ./wecombot_test.go -args \ --WECOMBOT_WEBHOOKURL="https://example.com/your-webhook-url" \ */ func TestProvider(t *testing.T) {