certd/packages/plugins/test/aliyun/upload-to-aliyun.test.js

22 lines
686 B
JavaScript

import pkg from 'chai'
import { UploadCertToAliyun } from '../../src/aliyun/upload-to-aliyun/index.js'
import options from '../options.js'
import { Certd } from '@certd/certd'
const { expect } = pkg
describe('PluginUploadToAliyun', function () {
it('#execute', async function () {
const plugin = new UploadCertToAliyun()
const certd = new Certd()
const cert = certd.readCurrentCert('xiaojunnuo@qq.com', ['_.docmirror.cn'])
const context = {}
await plugin.doExecute({
accessProviders: options.accessProviders,
cert,
props: { name: 'certd部署测试', accessProvider: 'aliyun' },
context
})
console.log('context:', context)
})
})