# Scripted update in ES5 integration tests

**URL:** <https://discuss.elastic.co/t/scripted-update-in-es5-integration-tests/72178>\
**Category:** Elasticsearch\
**Created:** [January 19, 2017, 2:28pm UTC](https://discuss.elastic.co/t/scripted-update-in-es5-integration-tests/72178 "2017-01-19T14:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtruty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jtruty/32/14282_2.png) [@jtruty](https://discuss.elastic.co/u/jtruty)\
**Post date:** [January 19, 2017, 2:28pm UTC](https://discuss.elastic.co/t/scripted-update-in-es5-integration-tests/72178/1 "2017-01-19T14:28:06Z")

</div>

I cannot get inline scripted updates to work in the ES5 integration tests (extending from ESIntegTestCase). In the ESIntegTestCase nodeSettings function, scripted updates are enabled:

```
.put("script.stored", "true")
.put("script.inline", "true")

```

However, I just receive these errors trying different script langs:

> script\_lang not supported [painless]

> script\_lang not supported [groovy]

I am running the tests with '-Dtests.security.manager=false', so I wonder if that affects or disables the script module. Any ideas?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 19, 2017, 3:48pm UTC](https://discuss.elastic.co/t/scripted-update-in-es5-integration-tests/72178/2 "2017-01-19T15:48:04Z")

</div>

ESIntegTestCase doesn't load all of the Elasticsearch module by default. It will only load the modules you tell it to. We (try to) use ESIntegTestCase only to test a single module at a time, using REST based testing if we have to test multiple modules at one time. In other words, I suggest not testing scripts with ESIntegTestCase unless you are writing your own script engine. I'd look at [https://github.com/alexcojocaru/elasticsearch-maven-plugin](https://github.com/alexcojocaru/elasticsearch-maven-plugin)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 16, 2017, 3:48pm UTC](https://discuss.elastic.co/t/scripted-update-in-es5-integration-tests/72178/3 "2017-02-16T15:48:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
