https://github.com/bitsofinfo/io-event-reactor-integration-tests
Integration tests for io-event-reactor and its plugin ecosystem
https://github.com/bitsofinfo/io-event-reactor-integration-tests
Last synced: 7 months ago
JSON representation
Integration tests for io-event-reactor and its plugin ecosystem
- Host: GitHub
- URL: https://github.com/bitsofinfo/io-event-reactor-integration-tests
- Owner: bitsofinfo
- Created: 2016-06-08T03:17:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-10T03:48:24.000Z (over 9 years ago)
- Last Synced: 2025-03-24T05:18:43.260Z (10 months ago)
- Language: JavaScript
- Homepage: https://github.com/bitsofinfo/io-event-reactor
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# io-event-reactor-integration-tests
Sample integration test application for [io-event-reactor](https://github.com/bitsofinfo/io-event-reactor) and its plugin ecosystem
This is not available as NPM module. To use it, simple clone this repository, go the root of the project and type
```
git clone https://github.com/bitsofinfo/io-event-reactor-integration-tests.git
cd io-event-reactor-integration-tests/
npm install .
```
You can run the sample `io-event-reactor` instance by running it as follows (replace the parameters as appropriate). The database
you point to needs to permit the specified user the ability to drop/create tables:
```
node sampleIoReactor.js \
--pathsToMonitor=/tmp/test1 /tmp/test2 \
--triggeringEvents=add addDir unlink unlinkDir change \
--triggeringRegex="(.*test\\d+.txt.*|.*bitsofinfo.*)" \
--targetShellExecDir=/tmp/mytestdir \
--mysqlHost=localhost \
--mysqlUser=root \
--mysqlPw=root \
--mysqlDb=io_event_reactor
```
Once started this program will monitor the paths specified, and as matching events
occur entries will be made into the configured mysql database and the shell-exec plugin
will generate marker files in a unique path under the specified `targetShellExecDir` directory.