Modify cluster settings in ESIntegTestCase

Hi all,

I use ESIntegTestCase to perform some test case and want to activate the script.painless.regex.enabled option as a prerequisite of my test.
Unfortunately, this settings cannot be changed via the cluster admin api in Java.
Is there another way to change this settings?

Thank you

Hi all,

It seems that overriding the nodeSettings method did the job:

@Override
protected Settings nodeSettings(int nodeOrdinal) {
Settings settings = super.nodeSettings(nodeOrdinal);
Settings.Builder builder = Settings.builder();
builder.put(settings);
builder.put("script.painless.regex.enabled", "true");
return builder.build();
}

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