diff --git a/deploy/lib/deployTriggers.js b/deploy/lib/deployTriggers.js index 7706ee2..a2fe5f9 100644 --- a/deploy/lib/deployTriggers.js +++ b/deploy/lib/deployTriggers.js @@ -35,7 +35,6 @@ module.exports = { }, getTriggers(triggers) { - const feedMask = { feed: undefined }; return Object.keys(triggers) .map(t => { const trigger = triggers[t]; @@ -49,7 +48,7 @@ module.exports = { }, }); } - return Object.assign(trigger, feedMask); + return trigger }); }, }; diff --git a/deploy/tests/deployTriggers.js b/deploy/tests/deployTriggers.js index 1acb2a8..72163ba 100644 --- a/deploy/tests/deployTriggers.js +++ b/deploy/tests/deployTriggers.js @@ -54,11 +54,19 @@ describe('deployTriggers', () => { { triggerName: 'myTrigger', namespace: 'myNamespace', - feed: undefined }, { triggerName: 'feedTrigger', namespace: 'feedNamespace', + feed: { + feedName: "alarms/alarm", + namespace: "whisk.system", + params: { + "cron": "* * * * *", + "trigger_payload": {} + }, + trigger: "/feedNamespace/feedTrigger" + }, trigger: { annotations: [ { @@ -67,7 +75,6 @@ describe('deployTriggers', () => { } ], }, - feed: undefined }, ], };