diff --git a/test/config.js b/test/config.js index 4920b35..4aa7007 100644 --- a/test/config.js +++ b/test/config.js @@ -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, @@ -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 diff --git a/test/sdk/ses_client.spec.js b/test/sdk/ses_client.spec.js index 41ce34a..ea6a62a 100644 --- a/test/sdk/ses_client.spec.js +++ b/test/sdk/ses_client.spec.js @@ -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 [liyubei@baidu.com] already verified, please not re-verify'); + expect(error.code).toEqual('207'); + } + else { + fail(error); + } + }) .fin(done); });