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 38
38
run : |
39
39
npm update --no-save
40
40
npm update --save-dev --no-save
41
- - name : Running integration tests
41
+ - name : Running tests
42
42
run : npm run test
43
43
env :
44
44
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 = {
74
74
0 : 'CLOSE' ,
75
75
} ;
76
76
77
- const CAN_UPDATE_TRIGGER = [ 'apigw' , 'cls' ] ;
77
+ const CAN_UPDATE_TRIGGER = [ 'apigw' , 'cls' , 'mps' ] ;
78
78
79
79
module . exports = { BaseTrigger, TRIGGER_STATUS_MAP , CAN_UPDATE_TRIGGER } ;
Original file line number Diff line number Diff line change 1
1
const { MPS } = require ( './apis' ) ;
2
2
const { camelCaseProperty } = require ( '../../utils/index' ) ;
3
- const { BaseTrigger, TRIGGER_STATUS_MAP } = require ( './base' ) ;
3
+ const { BaseTrigger } = require ( './base' ) ;
4
4
5
5
class MpsTrigger extends BaseTrigger {
6
6
async request ( { Action, ...data } ) {
@@ -9,15 +9,13 @@ class MpsTrigger extends BaseTrigger {
9
9
}
10
10
11
11
getKey ( triggerInputs ) {
12
- const Enable = TRIGGER_STATUS_MAP [ triggerInputs . Enable ] ;
13
-
14
12
if ( triggerInputs . ResourceId ) {
15
13
// from ListTriggers API
16
14
const rStrArr = triggerInputs . ResourceId . split ( '/' ) ;
17
- return `${ rStrArr [ rStrArr . length - 1 ] } - ${ Enable } ` ;
15
+ return `${ rStrArr [ rStrArr . length - 1 ] } ` ;
18
16
}
19
17
20
- return `${ triggerInputs . TriggerDesc . eventType } Event- ${ Enable } ` ;
18
+ return `${ triggerInputs . TriggerDesc . eventType } Event` ;
21
19
}
22
20
23
21
formatInputs ( { inputs } ) {
You can’t perform that action at this time.
0 commit comments