feat: 腾讯云证书clb支持与删除

This commit is contained in:
xiaojunnuo
2020-12-28 00:22:12 +08:00
parent 25dae3d1ec
commit 43e90503ca
10 changed files with 365 additions and 49 deletions
@@ -37,13 +37,13 @@ describe('DeployToTencentCDN', function () {
const options = createOptions()
options.args.test = false
const plugin = new DeployCertToTencentCDN()
const certd = new Certd()
const certd = new Certd(options)
const cert = certd.readCurrentCert('xiaojunnuo@qq.com', ['*.docmirror.cn'])
const context = {}
const deployOpts = {
accessProviders: options.accessProviders,
cert,
props: { domainName: 'tentcent-certd.docmirror.cn', from: 'upload', accessProvider: 'tencent' },
props: { domainName: 'tentcent-certd.docmirror.cn', accessProvider: 'tencent' },
context
}
const ret = await plugin.doExecute(deployOpts)