hadoop/hadoop-ozone/dist/src/main/blockade
2019-04-03 22:19:10 +05:30
..
blockadeUtils HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
clusterUtils HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
conftest.py HDDS-1088. Add blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-03-15 20:54:41 +05:30
README.md HDDS-1088. Add blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-03-15 20:54:41 +05:30
test_blockade_client_failure.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
test_blockade_datanode_isolation.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
test_blockade_flaky.py HDDS-1040. Add blockade Tests for client failures. Contributed by Nilotpal Nandi. 2019-02-11 20:08:25 +05:30
test_blockade_mixed_failure_three_nodes_isolate.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
test_blockade_mixed_failure_two_nodes.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
test_blockade_mixed_failure.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30
test_blockade_scm_isolation.py HDDS-1164. Add New blockade Tests to test Replica Manager. Contributed by Nilotpal Nandi. 2019-04-03 22:19:10 +05:30

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

By default, second phase of the tests will not be run. In order to run the second phase of the tests, you can run following command-lines:

cd $DIRECTORY_OF_OZONE
python -m pytest -s  blockade/ --runSecondPhase=true