This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add fc service properties definition
- Loading branch information
1 parent
ef732e0
commit 3cbdfe6
Showing
6 changed files
with
119 additions
and
10 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
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
27 changes: 27 additions & 0 deletions
27
packages/serverless-spec-builder/test/fixtures/fc/f-service-properties.yml
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
service: | ||
name: serverless-hello-world | ||
|
||
provider: | ||
name: aliyun | ||
policies: | ||
- AliyunECSNetworkInterfaceManagementAccess | ||
vpcConfig: | ||
vpcId: 'vpc-j6cfu2g6tslzekh8grfmk' | ||
vSwitchIds: [ 'vsw-j6chkgsg9naj6gx49espd' ] | ||
securityGroupId: 'sg-j6ceitqs6ljyssm1apom' | ||
logConfig: | ||
project: localtestlog | ||
logstore: localteststore | ||
nasConfig: | ||
userId: 10003 | ||
groupId: 10003 | ||
mountPoints: | ||
- serverAddr: '012194b28f-xxxxx.cn-hangzhou.nas.aliyuncs.com:/' | ||
mountDir: '/mnt/test' | ||
|
||
functions: | ||
index: | ||
handler: index.handler | ||
|
||
package: | ||
artifact: code.zip |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { uppercaseObjectKey } from '../src/utils'; | ||
import { deepStrictEqual } from 'assert'; | ||
|
||
describe('/test/utils.test.ts', () => { | ||
it('test unppercase', () => { | ||
const json = { | ||
a: 1, | ||
bbbb: 2, | ||
ddd: [ | ||
'ccc', | ||
{ | ||
fff: ['eee'], | ||
}, | ||
], | ||
}; | ||
const result = uppercaseObjectKey(json); | ||
deepStrictEqual(result, { | ||
A: 1, | ||
Bbbb: 2, | ||
Ddd: ['ccc', { Fff: ['eee'] }], | ||
}); | ||
}); | ||
}); |