-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jean-Louis Leroy <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,887 additions
and
1,779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,14 @@ | ||
## Integration Tests | ||
# BlazingMQ Integration Tests | ||
|
||
This directory contains integration tests based on the `ito` and 'bmqit' | ||
frameworks. It contains the following test suites: | ||
[WIP] | ||
|
||
To run the tests: | ||
|
||
### `00breathing_test.py` | ||
|
||
Provides a basic integration test suite. | ||
|
||
|
||
### `20cluster_node_shutdown_test.py` | ||
|
||
Integration test that shuts down a cluster node and confirms that the system | ||
recovers and keeps working as expected. | ||
|
||
|
||
### `20node_status_change_test.py` | ||
|
||
Integration test that suspends a node and confirms that the system recovers | ||
and performs as expected. | ||
|
||
### `30leader_node_delay.py` | ||
|
||
Integration test that temporarily suspends the leader node, resulting in | ||
followers becoming leaderless. When leader is unpaused, they will re-discover | ||
the leader but in PASSIVE state, and then in ACTIVE state once healing logic | ||
kicks in. | ||
|
||
### `50appids_test.py` | ||
|
||
Integration test suite exercising AppIDs. | ||
|
||
|
||
### `50broadcast_test.py` | ||
|
||
Integration test suite exercising broadcast functionality. | ||
|
||
|
||
### `50list_messages_test.py` | ||
|
||
Integration test suite exercising list messages functionality. | ||
|
||
### `50maxqueues_test.py` | ||
|
||
Integration test suite exercising Max Queues functionality. | ||
* (create and) activate a Python 3.8 (or above) `venv` | ||
* `python -m venv /path/to/venv` | ||
* `source /path/to/venv/bin/activate` | ||
* install required modules | ||
* `pip install -r src/python/requirements.txt` | ||
* run the tests | ||
* `cd src/integration-tests` | ||
* `./run-tests [extra pytest options]` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -e | ||
|
||
repo_dir=$(realpath "$0") | ||
repo_dir=${repo_dir%/src/*} | ||
|
||
export PYTHONPATH=$repo_dir/src/python:$PYTHONPATH | ||
cd "$repo_dir/src/integration-tests" | ||
|
||
python -m pytest -m "not csl_mode and not fsm_mode" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.