Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
129 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
test/fixtures | ||
coverage | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '6' | ||
- '6' | ||
- '7' | ||
install: | ||
- npm i npminstall && npminstall | ||
- npm i npminstall && npminstall | ||
script: | ||
- npm run ci | ||
- npm run ci | ||
after_script: | ||
- npminstall codecov && codecov | ||
- npminstall codecov && codecov | ||
env: | ||
global: | ||
- secure: Ws1h7ZU97/2npejMZp3/Jac0ZYkgXBW5gEilR5WrnkdkEbIhhK6HamrcqLrA6qCPV0Ax9nNbZCRJcQwPsTdOxBekJ3+3zflMWevfa9+CRS1Hh0mMcn+D864CjrRiQRgIQa8ZoFVPLaL/7qyQp1i7gLbPcpMjO6CA7LgV1reaf+U= | ||
- secure: Sj56ZeEZ48Sms7+jEI0qvrtEZoGc5ywotxYxvZ3EHg42Xpv6HBE6aEl3AZhz8ggQgmtJ/AneWLAZGOnZHpQiVrMetUa46HcAzCJ0h/wJXechpyu/KRTqaDjHkn3lD0yi+WnvBTYUIBr+Db8VwLbbcRVM2h/GxgBnWBTaE6jlmag= | ||
- secure: WixkbIJUiMfk4YZ+6Unlya1zxBl0i8X90O6xjd+gGogTf2IHeNUM8alLAMe9uFajbQnej8vKI+L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XLKFnlvg5XUZ2iV8nFqf2ii7VvBo7Q91/INzzOGxCdlOk+u8qvPIonW92hBEqKSnRxca+HpgWiihO0QdqAe1ecpbMjwENuiznSX1oWfYPDlv+qpHLCmSSqdYdWLrUdsTWI74Lj7L1T0ZrP1RmE8eoboik3+cocrruNNK1sDuhN/0pA3l7bGeoZTf93QeTgUJV7lhbjEt6Q36DlHO13TQfl4Q8+16pZZci0/YOgfE6liTMs= | ||
- secure: Cd/o5IFqws8ksdMRaBTUdht8ggS8oetDMQzMTO9sqJ5yymBazN/kZp9L08o54Xx7gQdG1vKopXgnUEpuoxugckCc+SZJSwQhnDa2coYkQgH5I3mqkoqb3cVhuRkv6T3GsI8i+Sr0yR4vLjhRYsokiAWFqZLAhHoWe3o96N02YVZ8oLCJm1M1/vhJFiK7/oYQLFAMVs8uCllouH2eenb//9uv9KdoFuoiazrnCB9tr096zMR2U/aCn/pibC3xwlvrLWT/p+PWYblaFV/uPOaiW4vwzA+M2A7JpN5KGZ2dm1C8/Bv1+YIBU/lamPnZVHq0nyIRd3yNkmLOB6p8nhxLJSszFU55l3radcV0l7T+Oy3uTz5QY316i0IvAVs387KnrW12tSz40k1dRZNTLq7l0e6/idnQ75bTREtjfk8DKKn51Sv0bLlar6Ixz/p7/MPzEt1PO40NsL9I7zoJMUBiWWdgn9PpxUgnsdXcq16p1tB+KqLZk2dz2rqIqUHm0v8JYpKvocNnXhCOkfp7i0gJfmUqfS89HQJZG4VmUQBmFu+Le/VliYcjH7mPCKUqYhGwYf1lrURcUWl1UDhvN7cwNGfi5vkCdGzTC9KTG46cfxnR+c/ztTwLPg81xkWowfayY0cqXHzgOAcIeEBFMBPv9PmFlnQCIiyYCNuWCe12jYs= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
'use strict'; | ||
|
||
let env = process.env; | ||
const env = process.env; | ||
|
||
exports.oss = { | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'ali-oss-test-bucket-test99', | ||
}, | ||
useAgent: true, | ||
}; | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}, | ||
useAgent: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
'use strict'; | ||
|
||
let env = process.env; | ||
const env = process.env; | ||
|
||
exports.oss = { | ||
client: { | ||
cluster: [{ | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'ali-oss-test-bucket-test99' | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}, { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'ali-oss-test-bucket-test99' | ||
}] | ||
} | ||
}; | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
test/fixtures/apps/oss-endpoint-http/config/config.default.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
'use strict'; | ||
|
||
let env = process.env; | ||
const env = process.env; | ||
|
||
exports.oss = { | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket:'ali-oss-test-bucket-test99' | ||
} | ||
}; | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}, | ||
}; |
14 changes: 7 additions & 7 deletions
14
test/fixtures/apps/oss-missing-config/config/config.default.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
'use strict'; | ||
|
||
let env = process.env; | ||
const env = process.env; | ||
|
||
exports.oss = { | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket:'ali-oss-test-bucket-test99' | ||
} | ||
}; | ||
client: { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
'use strict'; | ||
|
||
let env = process.env; | ||
const env = process.env; | ||
|
||
exports.uploader = { | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket:'ali-oss-test-bucket-test99' | ||
accessKeyId: env.ALI_SDK_OSS_ID, | ||
accessKeySecret: env.ALI_SDK_OSS_SECRET, | ||
endpoint: env.ALI_SDK_OSS_ENDPOINT, | ||
bucket: 'egg-oss-test-bucket-test99', | ||
}; | ||
|
||
exports.oss = { | ||
init: false, | ||
}; | ||
init: false, | ||
}; |
Oops, something went wrong.