Working on some code that I would like to test via the REST layer. The
default plugins are not loaded during integration testing, so when attempt
to use put_script:, I get the following error:
"unable to put stored script with unsupported lang [painless]"
Testing for painless and mustache, both scripts, occur within their
respective modules, which load the plugin during testing. My feature is
across all scripts, so adding tests to lang-painless or lang-mustache is
not ideal. I now see why there was no testing done on the generic REST
endpoint. What would be the best way to test the ScriptService? This
code is a feature for the elasticsearch repo, not external code.