mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
feat: 腾讯云cdn支持
This commit is contained in:
@@ -8,14 +8,11 @@ describe('DeployToAliyunCDN', function () {
|
||||
const plugin = new DeployCertToAliyunCDN()
|
||||
const certd = new Certd()
|
||||
const cert = certd.readCurrentCert('xiaojunnuo@qq.com', ['*.docmirror.cn'])
|
||||
const ret = await plugin.execute({
|
||||
const ret = await plugin.doExecute({
|
||||
accessProviders: options.accessProviders,
|
||||
cert,
|
||||
args: { domainName: 'certd-cdn-upload.docmirror.cn', certName: 'certd部署测试', certType: 'cas', accessProvider: 'aliyun' },
|
||||
context: {
|
||||
aliyunCertId: '4947435'
|
||||
}
|
||||
props: { domainName: 'certd-cdn-upload.docmirror.cn', certName: 'certd部署测试', certType: 'cas', accessProvider: 'aliyun' }
|
||||
})
|
||||
console.log('context:', context)
|
||||
console.log('context:', context, ret)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -9,11 +9,11 @@ describe('PluginUploadToAliyun', function () {
|
||||
const certd = new Certd()
|
||||
const cert = certd.readCurrentCert('xiaojunnuo@qq.com', ['_.docmirror.cn'])
|
||||
const context = {}
|
||||
await plugin.execute({
|
||||
await plugin.doExecute({
|
||||
accessProviders: options.accessProviders,
|
||||
cert,
|
||||
context,
|
||||
args: { name: 'certd部署测试', provider: 'aliyun' }
|
||||
props: { name: 'certd部署测试', accessProvider: 'aliyun' },
|
||||
context
|
||||
})
|
||||
|
||||
console.log('context:', context)
|
||||
|
||||
Reference in New Issue
Block a user