commit | 52f95842943b2912ee66f134df96604bc02615a2 | [log] [tgz] |
---|---|---|
author | Jason Peterson <jasonpet@us.ibm.com> | Tue Nov 29 10:34:45 2016 -0500 |
committer | Jason Peterson <jasonpet@us.ibm.com> | Mon Jan 23 15:56:31 2017 -0500 |
tree | a00151b2c071ec297956d2a9eb9c371649fb8b75 | |
parent | 067b4eaee59083506bf0c23248d01047499c1411 [diff] |
Add CloudantDatabaseActionsTests
This is still very much a work-in-progress.
RESTful service to listen for changes to a Cloudant database.
Changes to a Cloudant database can trigger the invocation of an action, passing the action the body of the updated document.
See the scripts directory for examples on how to register a new Cloudant trigger.
The following commands will test the Cloudant trigger service:
cd <bluewhisk_home> gradle distDocker
Follow the instructions in [ansible/README.md][../../../ansible/README.md]
./bin/wsk create HELLOCLOUDANT ./actions/hellocloudant.js ./catalog/providers/cloudantTrigger/scripts/addTestTriggers.sh
./catalog/providers/cloudantTrigger/scripts/addNewDocument.sh
You should see the output from invoking the HELLOCLOUDANT action in the ELK logs.