Skip to content

Rubix982/es-mapping-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Mapping Tests

This project contains tests for different cases of schema alteration in Elasticsearch.

Setup

  1. Start Elasticsearch using Docker:
docker-compose up -d
  1. Install dependencies:
npm install
  1. Run the tests:
npm test

Test Cases

  • Adding new fields
  • Updating multiple targets
  • Adding properties to existing object fields
  • Adding multi-fields to existing fields
  • Changing supported parameters
  • Changing field mappings (via reindex)
  • Renaming fields (via alias)

Stopping Services

To stop Elasticsearch and Kibana,

docker-compose down

To remove volumes as well,

docker-compose down -v

Steps

To get started:

  1. Make sure Docker is running
  2. Run npm run start to start Elasticsearch and Kibana
  3. Wait ~30-60 seconds for the services to be ready
  4. Run npm test to execute all the tests

Kibana will be available at http://localhost:5601 if you want to explore the indices and data.

About

Some ES mapping related tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published