use of org.opensearch.common.settings.SettingsModule in project OpenSearch by opensearch-project.
the class ClusterModuleTests method testRegisterIndexDynamicSetting.
public void testRegisterIndexDynamicSetting() {
SettingsModule module = new SettingsModule(Settings.EMPTY, Setting.boolSetting("index.foo.bar", false, Property.Dynamic, Property.IndexScope));
assertInstanceBinding(module, IndexScopedSettings.class, service -> service.isDynamicSetting("index.foo.bar"));
}
use of org.opensearch.common.settings.SettingsModule in project OpenSearch by opensearch-project.
the class ClusterModuleTests method testRegisterClusterDynamicSetting.
public void testRegisterClusterDynamicSetting() {
SettingsModule module = new SettingsModule(Settings.EMPTY, Setting.boolSetting("foo.bar", false, Property.Dynamic, Property.NodeScope));
assertInstanceBinding(module, ClusterSettings.class, service -> service.isDynamicSetting("foo.bar"));
}
Aggregations