File tree Expand file tree Collapse file tree 5 files changed +33
-5
lines changed
Expand file tree Collapse file tree 5 files changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ s deploy -y -t ./s_tags2.yaml
8181s deploy -y -t ./s_tags3.yaml
8282s remove -y -t ./s_tags3.yaml
8383
84+ echo " test nodejs runtime with custom endpoint ..."
85+ s deploy -y -t ./s_custom_endpoint.yaml
86+ s remove -y -t ./s_custom_endpoint.yaml
87+
8488echo " test deploy with alias"
8589export fc_component_function_name=nodejs18-$( uname) -$( uname -m) -$RANDSTR
8690s deploy --function -t s2.yaml
Original file line number Diff line number Diff line change @@ -88,6 +88,11 @@ s deploy -y -t ./s_tags3.yaml
8888s remove -y -t ./s_tags3.yaml
8989cd ..
9090
91+ echo " test nodejs runtime with custom endpoint ..."
92+ s deploy -y -t ./s_custom_endpoint.yaml
93+ s remove -y -t ./s_custom_endpoint.yaml
94+ cd ..
95+
9196echo " test deploy with alias"
9297cd nodejs
9398export fc_component_function_name=nodejs18-$( uname) -$( uname -m) -$RANDSTR
Original file line number Diff line number Diff line change 1+ edition : 3.0.0
2+ name : test-node-app
3+ access : quanxi
4+
5+ vars :
6+ region : ${env('REGION', 'ap-southeast-1')}
7+
8+ resources :
9+ fcDemo1 : # 业务名称/模块名称
10+ component : ${env('fc_component_version', path('../../../'))}
11+ props : # 组件的属性值
12+ region : ${vars.region}
13+ functionName : fc3-event-${env('fc_component_function_name', 'nodejs18')}-endpoint
14+ runtime : ${env('fc_component_runtime', 'nodejs18')}
15+ code : ./test-auto-code
16+ handler : index.handler
17+ memorySize : 128
18+ endpoint : http://${config('AccountID')}.${vars.region}.fc.aliyuncs.com
19+ timeout : 30
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ for MODEL_INFO in "${MODEL_LIST[@]}"; do
7676 if [ -z $SYSTEM_URL ]; then
7777 log " Failed to extract system_url for model: $MODEL_ID "
7878 # 清理资源
79- REMOVE_OUTPUT=$( s model remove -y 2>&1 )
79+ REMOVE_OUTPUT=$( s model remove -t s-pipeline.yaml - y 2>&1 )
8080 echo " $REMOVE_OUTPUT " >> " $LOG_FILE "
8181 echo " $REMOVE_OUTPUT "
82- REMOVE_OUTPUT=$( s remove -y 2>&1 )
82+ REMOVE_OUTPUT=$( s remove -t s-pipeline.yaml - y 2>&1 )
8383 echo " $REMOVE_OUTPUT " >> " $LOG_FILE "
8484 echo " $REMOVE_OUTPUT "
8585 continue
@@ -105,10 +105,10 @@ for MODEL_INFO in "${MODEL_LIST[@]}"; do
105105
106106 # 清理资源
107107 log " Removing resources..."
108- REMOVE_OUTPUT=$( s model remove -y 2>&1 )
108+ REMOVE_OUTPUT=$( s model remove -t s-pipeline.yaml - y 2>&1 )
109109 echo " $REMOVE_OUTPUT " >> " $LOG_FILE "
110110 echo " $REMOVE_OUTPUT "
111- REMOVE_OUTPUT=$( s remove -y 2>&1 )
111+ REMOVE_OUTPUT=$( s remove -t s-pipeline.yaml - y 2>&1 )
112112 echo " $REMOVE_OUTPUT " >> " $LOG_FILE "
113113 echo " $REMOVE_OUTPUT "
114114
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export default class FC_Client {
9999 const { timeout, userAgent } = options || { } ;
100100 const hostAddrInfo = getCustomEndpoint ( options . endpoint ) ;
101101 const { protocol } = hostAddrInfo ;
102- let { endpoint } = hostAddrInfo ;
102+ let { host : endpoint } = hostAddrInfo ;
103103 let invokeEndpoint = endpoint ;
104104
105105 if ( _ . isEmpty ( endpoint ) ) {
You can’t perform that action at this time.
0 commit comments