File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 3838 run : |
3939 npm update --no-save
4040 npm update --save-dev --no-save
41- - name : Running integration tests
41+ - name : Running tests
4242 run : npm run test
4343 env :
4444 TENCENT_SECRET_ID : ${{ secrets.TENCENT_SECRET_ID }}
Original file line number Diff line number Diff line change @@ -74,6 +74,6 @@ const TRIGGER_STATUS_MAP = {
7474 0 : 'CLOSE' ,
7575} ;
7676
77- const CAN_UPDATE_TRIGGER = [ 'apigw' , 'cls' ] ;
77+ const CAN_UPDATE_TRIGGER = [ 'apigw' , 'cls' , 'mps' ] ;
7878
7979module . exports = { BaseTrigger, TRIGGER_STATUS_MAP , CAN_UPDATE_TRIGGER } ;
Original file line number Diff line number Diff line change 11const { MPS } = require ( './apis' ) ;
22const { camelCaseProperty } = require ( '../../utils/index' ) ;
3- const { BaseTrigger, TRIGGER_STATUS_MAP } = require ( './base' ) ;
3+ const { BaseTrigger } = require ( './base' ) ;
44
55class MpsTrigger extends BaseTrigger {
66 async request ( { Action, ...data } ) {
@@ -9,15 +9,13 @@ class MpsTrigger extends BaseTrigger {
99 }
1010
1111 getKey ( triggerInputs ) {
12- const Enable = TRIGGER_STATUS_MAP [ triggerInputs . Enable ] ;
13-
1412 if ( triggerInputs . ResourceId ) {
1513 // from ListTriggers API
1614 const rStrArr = triggerInputs . ResourceId . split ( '/' ) ;
17- return `${ rStrArr [ rStrArr . length - 1 ] } - ${ Enable } ` ;
15+ return `${ rStrArr [ rStrArr . length - 1 ] } ` ;
1816 }
1917
20- return `${ triggerInputs . TriggerDesc . eventType } Event- ${ Enable } ` ;
18+ return `${ triggerInputs . TriggerDesc . eventType } Event` ;
2119 }
2220
2321 formatInputs ( { inputs } ) {
You can’t perform that action at this time.
0 commit comments