ES tests ensure that the Elastic Search functionalities are working and there are no showstoppers in the ES upgrades deployed to environments.
The automated tests comprises of these tests.
# create and activate a virtualenv using your preferred method. Example:
python -m venv venv
source venv/bin/activate
# install requirements
pip install -r requires.txt
More on setting up virtual environments
- Copy
settings-sample.cfg
tosettings.cfg
and populatesettings.cfg
for the environment you want to test. - Run tests using pytest command like:
# To execute all the test cases
pytest -v --rootdir= ElasticSearchTests/testCases
- You could also pass the following arguments
-n 3 --dist=loadfile
- This will run the tests parallelly in 3 instances. The number of reruns is configurable.--reruns 1
- This will re-run the tests once in case of failures.The number of reruns is configurable too.

To manually trigger the script,
- Go to Gitactions
- Select the desired workflow, here ES Tests action
- Run workflow
- Select workflow as
master
- Select the environment as desired
- Run!
If you are a part of the QA team, you'll receive emails for the result of the run after it's complete.
Besides, you should be able to find the zipped results in the Artifacts section, of the corresponding run (after it's complete).