Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
example_modules
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
014606e9
authored
Jan 26, 2017
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updated README
parent
8b393560
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
77 deletions
#README.rst#
README.rst
example_configs/main.conf → e2e/main.conf
example_configs/module_configs/filter.conf → e2e/module_configs/filter.conf
example_configs/module_configs/reader.conf → e2e/module_configs/reader.conf
example_configs/stream_configs/filtered.conf → e2e/stream_configs/filtered.conf
example_configs/stream_configs/raw.conf → e2e/stream_configs/raw.conf
#README.rst#
deleted
100644 → 0
View file @
8b393560
Example Modules
===============
.. note::
For more information read the Joule Documentation at
http://docs.wattsworth.net/joule/writing_modules.html
This repository contains reference implementations of a custom
FilterModule and ReaderModule. Unittests for both modules are
included in the respective *_test.py files. Run the tests using
nose2:
.. code-block:: bash
$> pip3 install nose2
# ...output...
$> cd example_modules
$> nose2
..
------------------------------
Ran 2 tests in 1.105s
OK
You may additionally want to run end-to-end tests using the jouled
process. The configuration directory contains an main.conf file and
corresponding stream and module configurations to run a local joule
instance. To automate this testing you can run the joule process in
Docker. See the e2e testing section in Joule for an example.
.. code-block:: bash
$> cd example_modules
$> jouled -d e2e/main.conf &
$> joule -d e2e/main.conf modules
$> fg # Ctrl-C to exit joule
Example Modules
===============
.. note::
For more information read the Joule Documentation at
http://docs.wattsworth.net/joule/writing_modules.html
This repository contains reference implementations of a custom
FilterModule and ReaderModule. Unittests for both modules are
included in the respective *_test.py files. Run the tests using
nose2:
.. code-block:: bash
$> pip3 install nose2
# ...output...
$> cd example_modules
$> nose2
..
------------------------------
Ran 2 tests in 1.105s
OK
You may additionally want to run end-to-end tests using the jouled
process. The configuration directory contains an main.conf file and
corresponding stream and module configurations to run a local joule
instance. To automate this testing you can run the joule process in
Docker. See the e2e testing section in Joule for an example.
.. code-block:: bash
$> cd example_modules
$> jouled -d e2e/main.conf &
$> joule -d e2e/main.conf modules
$> fg # Ctrl-C to exit joule
README.rst
View file @
014606e9
...
...
@@ -31,7 +31,7 @@ Docker. See the e2e testing section in Joule for an example.
.. code-block:: bash
$> cd example_modules
$> jouled -
d
e2e/main.conf &
$> joule -
d
e2e/main.conf modules
$> jouled -
-config
e2e/main.conf &
$> joule -
-config
e2e/main.conf modules
$> fg # Ctrl-C to exit joule
e
xample_configs
/main.conf
→
e
2e
/main.conf
View file @
014606e9
File moved
e
xample_configs
/module_configs/filter.conf
→
e
2e
/module_configs/filter.conf
View file @
014606e9
File moved
e
xample_configs
/module_configs/reader.conf
→
e
2e
/module_configs/reader.conf
View file @
014606e9
File moved
e
xample_configs
/stream_configs/filtered.conf
→
e
2e
/stream_configs/filtered.conf
View file @
014606e9
File moved
e
xample_configs
/stream_configs/raw.conf
→
e
2e
/stream_configs/raw.conf
View file @
014606e9
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment