perf: 支持京东云dns申请证书

This commit is contained in:
xiaojunnuo
2025-04-02 23:13:55 +08:00
parent 8145808c43
commit 04d79f9117
280 changed files with 421914 additions and 51 deletions
@@ -0,0 +1,28 @@
var NC = require('../src/services/nc')
var config = require('config')
var global = config.get('global')
var expec = require('chai').expect
describe('JDCloud.CallStyle', function () {
var nc = new NC({
credentials: {
accessKeyId: global.accessKeyId,
secretAccessKey: global.secretAccessKey
}
})
it('use Promise style', function () {
return nc.describeContainers(
{
},
'cn-north-1'
)
})
it('use callback style', function (done) {
nc.describeContainers({}, 'cn-north-1', function (err, data) {
if (err) {
done(err)
} else {
done()
}
})
})
})