Skip to content

Commit

Permalink
更新一些注释,添加run-all.sh测试脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
leeight committed Nov 1, 2015
1 parent 6f713c4 commit 8d2649d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

module.exports = {
'bos': {
'endpoint': 'http://10.105.97.15',
// 'endpoint': 'http://10.105.97.15',
'endpoint': process.env.BOS_ENDPOINT,
'credentials': {
'ak': process.env.BOS_AK,
'sk': process.env.BOS_SK,
Expand All @@ -40,7 +41,8 @@ module.exports = {
},
'face': {
// 'endpoint': 'http://face.bj.baidubce.com',
'endpoint': 'http://nmg02-bce-test15.nmg02.baidu.com:8750',
// 'endpoint': 'http://nmg02-bce-test15.nmg02.baidu.com:8750',
'endpoint': process.env.FACE_ENDPOINT,
'credentials': {
'ak': process.env.FACE_AK,
'sk': process.env.FACE_SK
Expand Down
11 changes: 10 additions & 1 deletion test/sdk/ses_client.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ describe('SesClient', function () {
.then(function (response) {
debug('%j', response);
})
.catch(fail)
.catch(function (error) {
if (error.code == 207) {
expect(error.status_code).toEqual(500);
expect(error.message).toEqual('mail addr [[email protected]] already verified, please not re-verify');
expect(error.code).toEqual('207');
}
else {
fail(error);
}
})
.fin(done);
});

Expand Down

0 comments on commit 8d2649d

Please sign in to comment.