[Test] use the new resource watcher settings

Original commit: elastic/x-pack-elasticsearch@09c9951aaf
This commit is contained in:
jaymode 2015-06-09 08:32:54 -04:00
parent 018919fb43
commit ae3d56f55e
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ public class FileUserPasswdStoreTests extends ElasticsearchTestCase {
@Before
public void init() {
settings = Settings.builder()
.put("watcher.interval.high", "2s")
.put("resource.reload.interval.high", "2s")
.put("path.home", createTempDir())
.build();
env = new Environment(settings);

View File

@ -50,7 +50,7 @@ public class FileUserRolesStoreTests extends ElasticsearchTestCase {
@Before
public void init() {
settings = Settings.builder()
.put("watcher.interval.high", "2s")
.put("resource.reload.interval.high", "2s")
.put("path.home", createTempDir())
.build();
env = new Environment(settings);

View File

@ -59,7 +59,7 @@ public class DnRoleMapperTests extends ElasticsearchTestCase {
@Before
public void init() {
settings = Settings.builder()
.put("watcher.interval.high", "2s")
.put("resource.reload.interval.high", "2s")
.put("path.home", createTempDir())
.build();
env = new Environment(settings);

View File

@ -133,7 +133,7 @@ public class FileRolesStoreTests extends ElasticsearchTestCase {
}
Settings settings = Settings.builder()
.put("watcher.interval.high", "500ms")
.put("resource.reload.interval.high", "500ms")
.put("shield.authz.store.files.roles", tmp.toAbsolutePath())
.put("path.home", createTempDir())
.build();

View File

@ -44,7 +44,7 @@ public class InternalCryptoServiceTests extends ElasticsearchTestCase {
Files.write(keyFile, InternalCryptoService.generateKey());
settings = Settings.builder()
.put("shield.system_key.file", keyFile.toAbsolutePath())
.put("watcher.interval.high", "2s")
.put("resource.reload.interval.high", "2s")
.put("path.home", createTempDir())
.build();
env = new Environment(settings);