test: move all providers test to separate packages

This commit is contained in:
Fu Diwei
2026-08-14 10:20:04 +08:00
committed by RHQYZ
parent 8289625fda
commit 5cd78c6eeb
209 changed files with 758 additions and 758 deletions

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/1panel"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("1PANEL_")
fp = tester.InitArgs("1PANEL_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/aliyun-cas"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("ALIYUNCAS_")
fp = tester.InitArgs("ALIYUNCAS_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/aliyun-slb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("ALIYUNSLB_")
fp = tester.InitArgs("ALIYUNSLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/aws-acm"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("AWSACM_")
fp = tester.InitArgs("AWSACM_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/aws-iam"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("AWSIAM_")
fp = tester.InitArgs("AWSIAM_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/axisnow"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("AXISNOW_")
fp = tester.InitArgs("AXISNOW_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/azure-keyvault"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("AZUREKEYVAULT_")
fp = tester.InitArgs("AZUREKEYVAULT_")
fTestCertPath string
fTestKeyPath string
fTenantId string
@@ -55,6 +55,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/baiducloud-cert"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("BAIDUCLOUDCERT_")
fp = tester.InitArgs("BAIDUCLOUDCERT_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/baishan-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("BAISHANCDN_")
fp = tester.InitArgs("BAISHANCDN_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/byteplus-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("BYTEPLUSCDN_")
fp = tester.InitArgs("BYTEPLUSCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/byteplus-certcenter"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("BYTEPLUSCERTCENTER_")
fp = tester.InitArgs("BYTEPLUSCERTCENTER_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/byteplus-medialive"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("BYTEPLUSMEDIALIVE_")
fp = tester.InitArgs("BYTEPLUSMEDIALIVE_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/cmcccloud-vlb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CMCCCLOUDVLB_")
fp = tester.InitArgs("CMCCCLOUDVLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-ao"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDAO_")
fp = tester.InitArgs("CTCCCLOUDAO_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDCDN_")
fp = tester.InitArgs("CTCCCLOUDCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-cms"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDCMS_")
fp = tester.InitArgs("CTCCCLOUDCMS_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-elb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDELB_")
fp = tester.InitArgs("CTCCCLOUDELB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-icdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDICDN_")
fp = tester.InitArgs("CTCCCLOUDICDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ctcccloud-lvdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("CTCCCLOUDLVDN_")
fp = tester.InitArgs("CTCCCLOUDLVDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/digitalocean-certificate"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("DIGITALOCEANCERTIFICATE_")
fp = tester.InitArgs("DIGITALOCEANCERTIFICATE_")
fTestCertPath string
fTestKeyPath string
fAccessToken string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/dogecloud"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("DOGECLOUD_")
fp = tester.InitArgs("DOGECLOUD_")
fTestCertPath string
fTestKeyPath string
fAccessKey string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/dokploy"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("DOKPLOY_")
fp = tester.InitArgs("DOKPLOY_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -44,6 +44,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/gcore-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("GCORECDN_")
fp = tester.InitArgs("GCORECDN_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -6,12 +6,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/googlecloud-certificatemanager"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("GOOGLECLOUDCERTIFICATEMANAGER_")
fp = tester.InitArgs("GOOGLECLOUDCERTIFICATEMANAGER_")
fTestCertPath string
fTestKeyPath string
fProjectId string
@@ -49,6 +49,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/huaweicloud-elb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("HUAWEICLOUDELB_")
fp = tester.InitArgs("HUAWEICLOUDELB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/huaweicloud-scm"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("HUAWEICLOUDSCM_")
fp = tester.InitArgs("HUAWEICLOUDSCM_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/huaweicloud-waf"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("HUAWEICLOUDWAF_")
fp = tester.InitArgs("HUAWEICLOUDWAF_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/jdcloud-ssl"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("JDCLOUDSSL_")
fp = tester.InitArgs("JDCLOUDSSL_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ksyun-kcm"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("KSYUNKCM_")
fp = tester.InitArgs("KSYUNKCM_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ksyun-slb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("KSYUNSLB_")
fp = tester.InitArgs("KSYUNSLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/nginxproxymanager"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("NGINXPROXYMANAGER_")
fp = tester.InitArgs("NGINXPROXYMANAGER_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -49,6 +49,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/oraclecloud-certificatesmgmt"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("ORACLECLOUDCERTIFICATESMGMT_")
fp = tester.InitArgs("ORACLECLOUDCERTIFICATESMGMT_")
fTestCertPath string
fTestKeyPath string
fPrivateKey string
@@ -60,6 +60,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/qingcloud-lb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("QINGCLOUDLB_")
fp = tester.InitArgs("QINGCLOUDLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/qiniu-sslcert"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("QINIUSSLCERT_")
fp = tester.InitArgs("QINIUSSLCERT_")
fTestCertPath string
fTestKeyPath string
fAccessKey string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/rainyun-sslcenter"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("RAINYUNSSLCENTER_")
fp = tester.InitArgs("RAINYUNSSLCENTER_")
fTestCertPath string
fTestKeyPath string
fApiKey string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/tencentcloud-gaap"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("TENCENTCLOUDGAAP_")
fp = tester.InitArgs("TENCENTCLOUDGAAP_")
fTestCertPath string
fTestKeyPath string
fSecretId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/tencentcloud-ssl"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("TENCENTCLOUDSSL_")
fp = tester.InitArgs("TENCENTCLOUDSSL_")
fTestCertPath string
fTestKeyPath string
fSecretId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/tencentcloud-tse"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("TENCENTCLOUDTSE_")
fp = tester.InitArgs("TENCENTCLOUDTSE_")
fTestCertPath string
fTestKeyPath string
fSecretId string
@@ -55,6 +55,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -1,4 +1,4 @@
package testing
package tester
import (
"context"
@@ -13,33 +13,33 @@ import (
"github.com/certimate-go/certimate/pkg/core/certmgr"
)
type TestUploadArgs struct {
type UploadInput struct {
CertPath string
KeyPath string
}
func TestUpload(t *testing.T, testProvider certmgr.Provider, testArgs TestUploadArgs) {
if _, err := os.Stat(testArgs.CertPath); os.IsNotExist(err) {
func Upload(t *testing.T, provider certmgr.Provider, input UploadInput) {
if _, err := os.Stat(input.CertPath); os.IsNotExist(err) {
t.Errorf("err: test cert file not exist")
return
}
if _, err := os.Stat(testArgs.KeyPath); os.IsNotExist(err) {
if _, err := os.Stat(input.KeyPath); os.IsNotExist(err) {
t.Errorf("err: test privkey file not exist")
return
}
ctx := context.Background()
certData, _ := os.ReadFile(testArgs.CertPath)
privkeyData, _ := os.ReadFile(testArgs.KeyPath)
certData, _ := os.ReadFile(input.CertPath)
privkeyData, _ := os.ReadFile(input.KeyPath)
assert.NotNil(t, certData)
assert.NotNil(t, privkeyData)
logger := slog.Default()
logger.Enabled(ctx, slog.LevelDebug)
testProvider.SetLogger(logger)
provider.SetLogger(logger)
res, err := testProvider.Upload(ctx, string(certData), string(privkeyData))
res, err := provider.Upload(ctx, string(certData), string(privkeyData))
require.NoError(t, err)
require.NotNil(t, res)

View File

@@ -0,0 +1,9 @@
package tester
import (
"github.com/certimate-go/certimate/pkg/core/internal/testing"
)
func InitArgs(prefix string) testing.ArgsParser {
return testing.InitArgs(prefix)
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ucloud-ulb"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("UCLOUDULB_")
fp = tester.InitArgs("UCLOUDULB_")
fTestCertPath string
fTestKeyPath string
fPrivateKey string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ucloud-upathx"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("UCLOUDUPATHX_")
fp = tester.InitArgs("UCLOUDUPATHX_")
fTestCertPath string
fTestKeyPath string
fPrivateKey string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/ucloud-ussl"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("UCLOUDUSSL_")
fp = tester.InitArgs("UCLOUDUSSL_")
fTestCertPath string
fTestKeyPath string
fPrivateKey string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/upyun-ssl"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("UPYUNSSL_")
fp = tester.InitArgs("UPYUNSSL_")
fTestCertPath string
fTestKeyPath string
fUsername string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/volcengine-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("VOLCENGINECDN_")
fp = tester.InitArgs("VOLCENGINECDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/volcengine-certcenter"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("VOLCENGINECERTCENTER_")
fp = tester.InitArgs("VOLCENGINECERTCENTER_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/volcengine-live"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("VOLCENGINELIVE_")
fp = tester.InitArgs("VOLCENGINELIVE_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/wangsu-certificate"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("WANGSUCERTIFICATE_")
fp = tester.InitArgs("WANGSUCERTIFICATE_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -6,12 +6,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/yandexcloud-certificatemanager"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("YANDEXCLOUDCERTIFICATEMANAGER_")
fp = tester.InitArgs("YANDEXCLOUDCERTIFICATEMANAGER_")
fTestCertPath string
fTestKeyPath string
fFolderId string
@@ -49,6 +49,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/zenlayer-cdn"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("ZENLAYERCDN_")
fp = tester.InitArgs("ZENLAYERCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/certmgr/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/certmgr/providers/zenlayer-ga"
it "github.com/certimate-go/certimate/pkg/core/certmgr/testing"
)
var (
fp = it.Args("ZENLAYERGA_")
fp = tester.InitArgs("ZENLAYERGA_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -43,6 +43,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestUpload(t, provider, it.TestUploadArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Upload(t, provider, tester.UploadInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -1,9 +0,0 @@
package testing
import (
"github.com/certimate-go/certimate/pkg/core/internal/testing"
)
func Args(prefix string) testing.ArgsParser {
return testing.Args(prefix)
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/1panel-console"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("1PANELCONSOLE_")
fp = tester.InitArgs("1PANELCONSOLE_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -49,6 +49,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/1panel"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("1PANEL_")
fp = tester.InitArgs("1PANEL_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -57,7 +57,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToCertificate", func(t *testing.T) {
@@ -71,6 +71,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-alb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNALB_")
fp = tester.InitArgs("ALIYUNALB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -59,7 +59,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToListener", func(t *testing.T) {
@@ -73,6 +73,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-apigw"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNAPIGW_")
fp = tester.InitArgs("ALIYUNAPIGW_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -64,6 +64,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNCDN_")
fp = tester.InitArgs("ALIYUNCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-clb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNCLB_")
fp = tester.InitArgs("ALIYUNCLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -59,7 +59,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToListener", func(t *testing.T) {
@@ -74,6 +74,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-dcdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNDCDN_")
fp = tester.InitArgs("ALIYUNDCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-ddospro"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNDDOSPRO_")
fp = tester.InitArgs("ALIYUNDDOSPRO_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-esa-saas"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNESASAAS_")
fp = tester.InitArgs("ALIYUNESASAAS_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-esa"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNESA_")
fp = tester.InitArgs("ALIYUNESA_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -51,6 +51,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-fc"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNFC_")
fp = tester.InitArgs("ALIYUNFC_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -53,6 +53,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-ga"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNGA_")
fp = tester.InitArgs("ALIYUNGA_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,7 +55,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToListener", func(t *testing.T) {
@@ -68,6 +68,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-live"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNLIVE_")
fp = tester.InitArgs("ALIYUNLIVE_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-nlb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNNLB_")
fp = tester.InitArgs("ALIYUNNLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,7 +55,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToListener", func(t *testing.T) {
@@ -68,6 +68,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-oss"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNOSS_")
fp = tester.InitArgs("ALIYUNOSS_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,6 +55,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-vod"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNVOD_")
fp = tester.InitArgs("ALIYUNVOD_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aliyun-waf"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("ALIYUNWAF_")
fp = tester.InitArgs("ALIYUNWAF_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -51,6 +51,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/apisix"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("APISIX_")
fp = tester.InitArgs("APISIX_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -49,6 +49,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-alb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSALB_")
fp = tester.InitArgs("AWSALB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-amplify"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSAMPLIFY_")
fp = tester.InitArgs("AWSAMPLIFY_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,6 +55,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-apigateway"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSAPIGATEWAY_")
fp = tester.InitArgs("AWSAPIGATEWAY_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-clb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSCLB_")
fp = tester.InitArgs("AWSCLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-cloudfront"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSCLOUDFRONT_")
fp = tester.InitArgs("AWSCLOUDFRONT_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/aws-nlb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("AWSNLB_")
fp = tester.InitArgs("AWSNLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baiducloud-appblb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAIDUCLOUDAPPBLB_")
fp = tester.InitArgs("BAIDUCLOUDAPPBLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baiducloud-blb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAIDUCLOUDBLB_")
fp = tester.InitArgs("BAIDUCLOUDBLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -56,6 +56,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baiducloud-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAIDUCLOUDCDN_")
fp = tester.InitArgs("BAIDUCLOUDCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baishan-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAISHANCDN_")
fp = tester.InitArgs("BAISHANCDN_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -44,6 +44,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotapanel-console"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAPANELCONSOLE_")
fp = tester.InitArgs("BAOTAPANELCONSOLE_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -45,6 +45,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotapanel"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAPANEL_")
fp = tester.InitArgs("BAOTAPANEL_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotapanelgo-console"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAPANELGOCONSOLE_")
fp = tester.InitArgs("BAOTAPANELGOCONSOLE_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -44,6 +44,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotapanelgo"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAPANELGO_")
fp = tester.InitArgs("BAOTAPANELGO_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotawaf-console"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAWAFCONSOLE_")
fp = tester.InitArgs("BAOTAWAFCONSOLE_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -46,6 +46,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/baotawaf"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BAOTAWAF_")
fp = tester.InitArgs("BAOTAWAF_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/bunny-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BUNNYCDN_")
fp = tester.InitArgs("BUNNYCDN_")
fTestCertPath string
fTestKeyPath string
fApiKey string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-alb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSALB_")
fp = tester.InitArgs("BYTEPLUSALB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-apig"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSAPIG_")
fp = tester.InitArgs("BYTEPLUSAPIG_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSCDN_")
fp = tester.InitArgs("BYTEPLUSCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-clb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSCLB_")
fp = tester.InitArgs("BYTEPLUSCLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -52,6 +52,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-medialive"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSMEDIALIVE_")
fp = tester.InitArgs("BYTEPLUSMEDIALIVE_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/byteplus-tos"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("BYTEPLUSTOS_")
fp = tester.InitArgs("BYTEPLUSTOS_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,6 +55,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cachefly"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CACHEFLY_")
fp = tester.InitArgs("CACHEFLY_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -39,6 +39,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cdnfly"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CDNFLY_")
fp = tester.InitArgs("CDNFLY_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -53,6 +53,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cloudflare-ssl"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CLOUDFLARESSL_")
fp = tester.InitArgs("CLOUDFLARESSL_")
fTestCertPath string
fTestKeyPath string
fApiToken string
@@ -47,6 +47,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cmcccloud-cdn"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CMCCCLOUDCDN_")
fp = tester.InitArgs("CMCCCLOUDCDN_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cmcccloud-vlb"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CMCCCLOUDVLB_")
fp = tester.InitArgs("CMCCCLOUDVLB_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -55,7 +55,7 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
t.Run("Deploy_ToListener", func(t *testing.T) {
@@ -68,6 +68,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/cpanel"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CPANEL_")
fp = tester.InitArgs("CPANEL_")
fTestCertPath string
fTestKeyPath string
fServerUrl string
@@ -53,6 +53,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

View File

@@ -5,12 +5,12 @@ import (
"github.com/stretchr/testify/require"
tester "github.com/certimate-go/certimate/pkg/core/deployer/providers-tester"
impl "github.com/certimate-go/certimate/pkg/core/deployer/providers/ctcccloud-ao"
it "github.com/certimate-go/certimate/pkg/core/deployer/testing"
)
var (
fp = it.Args("CTCCCLOUDAO_")
fp = tester.InitArgs("CTCCCLOUDAO_")
fTestCertPath string
fTestKeyPath string
fAccessKeyId string
@@ -48,6 +48,6 @@ func TestProvider(t *testing.T) {
})
require.NoError(t, err)
it.TestDeploy(t, provider, it.TestDeployArgs{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
tester.Deploy(t, provider, tester.DeployInput{CertPath: fTestCertPath, KeyPath: fTestKeyPath})
})
}

Some files were not shown because too many files have changed in this diff Show More