tree: 36902d9b5a8c36b2b1371afb9b6c6f5c62a5b2e1 [path history] [tgz]
  1. blockadeUtils/
  2. clusterUtils/
  3. conftest.py
  4. README.md
  5. test_blockade_client_failure.py
  6. test_blockade_datanode_isolation.py
  7. test_blockade_flaky.py
  8. test_blockade_mixed_failure.py
  9. test_blockade_mixed_failure_three_nodes_isolate.py
  10. test_blockade_mixed_failure_two_nodes.py
  11. test_blockade_scm_isolation.py
hadoop-ozone/dist/src/main/blockade/README.md

Blockade Tests

Following python packages need to be installed before running the tests :

  1. blockade
  2. pytest==2.8.7

You can execute all blockade tests with following command-lines:

cd $DIRECTORY_OF_OZONE
python -m pytest -s  blockade/

You can also execute fewer blockade tests with following command-lines:

cd $DIRECTORY_OF_OZONE
python -m pytest -s  blockade/<PATH_TO_PYTHON_FILE>
e.g: python -m pytest -s blockade/test_blockade_datanode_isolation.py

You can change the default ‘sleep’ interval in the tests with following command-lines:

cd $DIRECTORY_OF_OZONE
python -m pytest -s  blockade/ --containerStatusSleep=<SECONDS>

e.g: python -m pytest -s  blockade/ --containerStatusSleep=720