mirror of
https://github.com/certd/certd.git
synced 2026-04-30 09:17:24 +08:00
perf: 支持京东云dns申请证书
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user