mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-21 04:15:02 +00:00
The lang-mustache module has been extended to meet Watcher's needs: * The ability to refer the specific slots in arrays. * An `content_type` option controls whether json string escaping is used. Otherwise there is no escaping. Closes elastic/elasticsearch#1116 Other changes: * I changed tests that were just using mustache just because it was around to not use mustache * I moved tests to `test-xpack-with-mustache` module that were testing mustache with Watcher * added smoke test for watcher and mustache * moved some tests around * instead of using DefaultTextTemplateEngine in watcher tests use MockTextTemplateEngine * added a mock mustache script engine * Cleanup some messy tests to not rely on mustache and move them back into xpack module * moved array access test to smoke test watcher with mustache module * test: simplified the condition search test to take the time component out of it, while still simulation a condition * removed the mustache dependency in the messy-test-watcher-with-groovy module Original commit: elastic/x-pack-elasticsearch@6a2a4e885f
= Elasticsearch Watcher Plugin This plugins adds conditioned scheduled tasks features to elasticsearch - such a task is called a `Watch`. You can build the plugin with `mvn package`. The documentation is put in the `docs/` directory.