A plugin for loading data into an Elasticsearch instance.
During the development of this plugin it is useful to start a local Elasticsearch via:
docker-compose -f docker-compose-dev.yml up -d
and stop it again via:
docker-compose -f docker-compose-dev.yml down -v
The tests of this plugin are split up into unit
and integration
tests located in
Run all unit tests via:
# Run all unit tests
python -m unittest tests.unit.test_es_plugin
Running all integration tests can be run either
- using a running a local Elasticsearch as described in Development and then execute the tests via
# Run all integration tests
python -m unittest tests.integration.test_es_plugin
- using the docker-compose-integration.yml and run
# the --abort-on-container-exit ensures a docker-compose down after the tests have run
docker-compose -f docker-compose-integration.yml up --abort-on-container-exit
Note: Make sure to docker-compose down
and remove the volume after one run as there is currently no cleanup done.