- About this Project
- Test coverage
- Prerequisites
- Setup of testing environment
- Running the tests
- References
This test suite perfoms functional testing for ElasticSearch Document API 7.7.0.
CRUD APIs covered by this test suite:
Single document APIs
- Index
- Get
- Delete
- Update
Multi-document APIs
- Multi get
- Bulk
- Delete by query
- Update by query API
- Reindex
- Run Elasticsearch locally
This project is tested with Elasticsearch 7.7.0. Set up instructions can be found here. For the purpose of running the test suite one-node cluster is enough. Follow steps 1-3. You now have a single-node Elasticsearch cluster up and running!
- Clone this repository and go to folder
git clone https://github.com/kate-tel/elasticsearch-document-api-test-suite.git
cd elasticsearch-document-api-test-suite
- Install virtualenv
pip3 install -U pip
pip3 install virtualenv
- Create & activate virtual env
virtualenv .venv
source .venv/bin/activate
- Install requirements.
As a result, Python Elasticsearch Client 7.8.0 will be installed.
pip3 install -r requirements.txt
- To run the tests from the command line:
python -m unittest tests_es_py.py
- To run individual test methods:
python -m unittest tests_es_py.ElDocumentAPITest.test_create_doc_with_id