OpenSearch/client/rest-high-level
Nik Everett bc45d10e82 Remove most usages of 1-arg Script ctor (#24325)
The one argument ctor for `Script` creates a script with the
default language but most usages of are for testing and either
don't care about the language or are for use with
`MockScriptEngine`. This replaces most usages of the one argument
ctor on `Script` with calls to `ESTestCase#mockScript` to make
it clear that the tests don't need the default scripting language.

I've also factored out some copy and pasted script generation
code into a single place. I would have had to change that code
to use `mockScript` anyway, so it was easier to perform the
refactor.

Relates to #16314
2017-04-26 16:04:38 -04:00
..
src Remove most usages of 1-arg Script ctor (#24325) 2017-04-26 16:04:38 -04:00
build.gradle Enforce Content-Type requirement on the rest layer and remove deprecated methods (#23146) 2017-02-17 14:45:41 -05:00