pelias / schema

elasticsearch schema files and tooling
MIT License
40 stars 76 forks source link

chore(integration): Move schema creation options to common config #420

Closed orangejulius closed 4 years ago

orangejulius commented 4 years ago

After looking at the changes in https://github.com/pelias/schema/pull/394, I noticed that all the parameters used to create test indices during the integration tests were identical.

Because we will want to make changes to those options as part of our move to support Elasticsearch 7, this PR is a pure refactoring that moves those options to the common object passed to each integration test.

This should allow us to make any future changes to index creation options in a single place.