-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: server hostname args * fix: server sts endpoint * fix: oss default factory definition * fix: lint
- Loading branch information
1 parent
1681f42
commit b9d73f0
Showing
7 changed files
with
51 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
process.env.MIDWAY_TS_MODE = 'true'; | ||
jest.setTimeout(30000); | ||
|
||
const envFile = path.join(__dirname, '.env'); | ||
if (!fs.existsSync(envFile)) { | ||
fs.writeFileSync( | ||
envFile, | ||
'ALI_SDK_OSS_REGION=oss-cn-beijing\n' + | ||
'ALI_SDK_OSS_ENDPOINT=\n' + | ||
'ALI_SDK_OSS_ID=\n' + | ||
'ALI_SDK_OSS_SECRET=\n' + | ||
'ALI_SDK_OSS_BUCKET=\n' + | ||
'ALI_SDK_STS_ID=\n' + | ||
'ALI_SDK_STS_SECRET=\n' + | ||
'ALI_SDK_STS_BUCKET=\n' + | ||
'ALI_SDK_STS_ROLE=\n' + | ||
'ALI_SDK_STS_ENDPOINT=https://sts.aliyuncs.com\n' | ||
); | ||
console.log('please set oss ak in .env file'); | ||
} |
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
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