e617d8365f
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 |
||
---|---|---|
.. | ||
src/test/java/org/elasticsearch/messy/tests | ||
build.gradle |