You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/06 03:28:19 UTC

[GitHub] daisy-ycguo commented on issue #315: Use case of trigger rule does not configure the parameters of the action with the correct values

daisy-ycguo commented on issue #315: Use case of trigger rule does not configure the parameters of the action with the correct values
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/315#issuecomment-327364303
 
 
   I think this issue is fixed. Below is what I found.
   
   When I ran `wskdeploy -i -p tests/usecases/triggerrule/`, I saw below output message:
   ```
   Packages:
   Name: triggerrule
       bindings: 
   
     * action: greeting
       bindings: 
           - name : "Bernie"
           - place : "DC"
       annotations: 
   
   
   Triggers:
   * trigger: locationUpdate
       bindings: 
       annotations: 
   
    Rules
   * rule: myRule
       - trigger: locationUpdate
       - action: triggerrule/greeting
   
   Do you really want to deploy this? (y/N): 
   ```
   Then I verified in OpenWhisk, trying `wsk action get triggerrule/greeting`, and I saw below message:
   ```
   ok: got action triggerrule/greeting
   {
       "namespace": "guoyingc@cn.ibm.com_dev/triggerrule",
       "name": "greeting",
       "version": "0.0.1",
       "exec": {
           "kind": "nodejs:6",
           "code": "/**\n * Return a simple greeting message for someone.\n *\n * @param name A person's name.\n * @param place Where the person is from.\n */\nfunction main(params) {\n    var name = params.name || params.payload || 'stranger';\n    var place = params.place || 'somewhere';\n    return {payload:  'Hello, ' + name + ' from ' + place + '!'};\n}\n"
       },
       "annotations": [
           {
               "key": "exec",
               "value": "nodejs:6"
           }
       ],
       "parameters": [
           {
               "key": "place",
               "value": "DC"
           },
           {
               "key": "name",
               "value": "Bernie"
           }
       ],
       "limits": {
           "timeout": 60000,
           "memory": 256,
           "logs": 10
       },
       "publish": false
   }
   ```
   So I think this issue is fixed. We can close it.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services