mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
[Test] use the new resource watcher settings
Original commit: elastic/x-pack-elasticsearch@09c9951aaf
This commit is contained in:
parent
018919fb43
commit
ae3d56f55e
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user