____ __________ ___ _ ________
/ __ \/ ____/ __ \/ | / | / /_ __/
/ /_/ / __/ / / / / /| | / |/ / / /
/ _, _/ /___/ /_/ / ___ |/ /| / / /
/_/ |_/_____/_____/_/ |_/_/ |_/ /_/
usage: redant_main.py [-h] -c CONFIG_FILE -t TEST_DIR [-l LOG_DIR]
[-ll LOG_LEVEL] [-cc CONCUR_COUNT] [-xls EXCEL_SHEET][--show-backtrace]
Redant test framework main script.
optional arguments:
-h, --help show this help message and exit
-c CONFIG_FILE, --config CONFIG_FILE
Config file(s) to read.
-t TEST_DIR, --test-dir TEST_DIR
The test directory where TC(s) exist
-l LOG_DIR, --log-dir LOG_DIR
The directory wherein log will be stored.
-ll LOG_LEVEL, --log-level LOG_LEVEL
The log level. Default log level is Info
-cc CONCUR_COUNT, --concurrency-count CONCUR_COUNT
Number of concurrent test runs. Default is 2.
-xls EXCEL_SHEET, --excel-sheet EXCEL_SHEET
Spreadsheet for result. Default value is NULL
--show-backtrace Show full backtrace on error
Distro | Redant | Gluster Server | Gluster Client |
---|---|---|---|
Fedora 32 | ✔️ | ✔️ | ✔️ |
Fedora 34 | ✔️ | ✖️ | ✖️ |
RHEL 7.9 | ✖️ | ✔️ | ✔️ |
The architects of any project won't be there forever with it ( not everyone has the luxury to be a BDFL ), hence it is important to have the thought process documented so that one doesn't need to go through the code. We for one believe in proper documentation. The very idea of developers and engineers being spartans who understand logic only from code is what we feel as . We need to be civilized humans and make it easy for the next person coming in to just glance at what it is, why it is and how it is.
Before trying out redant, do check the known issues section
For those who want a pure markdown experience and a deeper dive...
The Documentation index can be found at Docs
-
Clone redant repo.
-
Populate the conf.yaml with relevant server and client details..
- git clone
[your fork for this repo]
- Create a virtual environment using :
virtualenv <virtual_env_name>
orpython3 -m venv <virtual-env-name>
- Activate the virtual-env :
source <virtual_env_name>/bin/activate
- cd
[the-fork]
- Run
pip3 install -r requirements.txt
- To run the sample TC, just run the below cmd after populating the
config file with relevant values. The command has to be run from the main redant
reository. The tests path should be given with respect to the redant directory.
python3 ./core/redant_main.py -c ./config/config.yml -t tests/example/
For more options, runpython3 ./core/redant_main.py --help
- Log files can be found at /var/log/redant/ [ default path ].
The logging is specific to a TC run. So when a user gives a specific base dir
for logging when invoking redant_main.py
, that directory will inturn
contain the following dirs,
-> functional
-> performance
-> example
Now, based on the invocation, directory of a component will be created inside
the functional and performace dirs. And inside the component directory,
the Test case specific directory will be created which inturn will contain
volume specific log files.
So for example to see the log files of a test case which is,
functional/<gluster_component>/<test_name>/test_sample.py
one would have to go to the directory,
<base_log_dir>/<time_stamp>/functional/<gluster_component>/test_sample
,
which will inturn contain the log files specific to volume type.
In addition to running TCs from within a suite, either performance or
functional or even under a more granular level of component, one can select to
run a specific TC also.
For example,
python3 core/redant_main.py -c config/config.yml -t tests/example/sample_component
One can also run the scripts given under the tools dir which will reduce the lengthy commands to be typed out everytime. Check out the README.md at the link Tools-README
Please refer the doc : migratingTC.md