certd/packages/plugins/plugin-aliyun/test/dns-providers/aliyun.cert.test.js

23 lines
671 B
JavaScript
Raw Normal View History

2021-01-06 15:29:10 +00:00
import pkg from 'chai'
2021-02-07 16:21:36 +00:00
import { createOptions } from '../../../../../test/options.js'
2021-02-08 05:40:28 +00:00
import { Certd } from '@certd/certd'
import PluginAliyun from '../../src/index.js'
// 安装默认插件和授权提供者
PluginAliyun.install()
2021-01-06 15:29:10 +00:00
const { expect } = pkg
describe('AliyunDnsProvider', function () {
it('#申请证书-aliyun', async function () {
this.timeout(300000)
const options = createOptions()
options.args = { forceCert: true, test: false }
const certd = new Certd(options)
const cert = await certd.certApply()
expect(cert).ok
expect(cert.crt).ok
expect(cert.key).ok
expect(cert.detail).ok
expect(cert.expires).ok
})
})