Skip to content

Commit 7b6fdea

Browse files
committed
Add comprehensive integration tests for all FC3 subcommands and fix alias return value issue
- Added integration tests for all subcommands including deploy, scaling, info, provision, alias, version, concurrency, invoke, layer, remove, and model - Fixed alias command return value issue where createAlias was not returning the result body - Corrected typo in model command help from "reomve" to "remove" - Updated E2E test configuration to include ossMountConfig: auto - Removed unused schema.json mock file
1 parent 0ea677b commit 7b6fdea

File tree

5 files changed

+409
-13
lines changed

5 files changed

+409
-13
lines changed

__tests__/__mocks__/schema.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

__tests__/e2e/nodejs/s_lock_auto.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,42 @@ resources:
1111
props: # 组件的属性值
1212
region: ${vars.region}
1313
functionName: fc3-event-${env('fc_component_function_name', 'nodejs18')}-f1
14+
role: acs:ram::${config('AccountID')}:role/aliyunaliyunfcdefaultrole
1415
runtime: ${env('fc_component_runtime', 'nodejs18')}
1516
code: ./test-auto-code
1617
handler: index.handler
1718
memorySize: 128
1819
timeout: 30
1920
vpcConfig: auto
2021
nasConfig: auto
22+
ossMountConfig: auto
2123

2224
fcDemo2: # 业务名称/模块名称
2325
component: ${env('fc_component_version', path('../../../'))}
2426
props: # 组件的属性值
2527
region: ${vars.region}
2628
functionName: fc3-event-${env('fc_component_function_name', 'nodejs18')}-f2
29+
role: acs:ram::${config('AccountID')}:role/aliyunaliyunfcdefaultrole
2730
runtime: ${env('fc_component_runtime', 'nodejs18')}
2831
code: ./test-auto-code
2932
handler: index.handler
3033
memorySize: 128
3134
timeout: 30
3235
vpcConfig: auto
3336
nasConfig: auto
37+
ossMountConfig: auto
3438

3539
fcDemo3: # 业务名称/模块名称
3640
component: ${env('fc_component_version', path('../../../'))}
3741
props: # 组件的属性值
3842
region: ${vars.region}
43+
role: acs:ram::${config('AccountID')}:role/aliyunaliyunfcdefaultrole
3944
functionName: fc3-event-${env('fc_component_function_name', 'nodejs18')}-f3
4045
runtime: ${env('fc_component_runtime', 'nodejs18')}
4146
code: ./test-auto-code
4247
handler: index.handler
4348
memorySize: 128
4449
timeout: 30
4550
vpcConfig: auto
46-
nasConfig: auto
51+
nasConfig: auto
52+
ossMountConfig: auto

0 commit comments

Comments
 (0)