use of io.kamax.mxisd.config.ExecConfig in project mxisd by kamax-io.
the class ExecDirectoryStoreTest method byNameNoCommandDefined.
@Test
public void byNameNoCommandDefined() {
ExecConfig cfg = getCfg();
assertTrue(StringUtils.isEmpty(cfg.getDirectory().getSearch().getByName().getCommand()));
ExecDirectoryStore store = getStore(cfg);
UserDirectorySearchResult result = store.searchByDisplayName("user");
assertFalse(result.isLimited());
assertTrue(result.getResults().isEmpty());
}
use of io.kamax.mxisd.config.ExecConfig in project mxisd by kamax-io.
the class ExecIdentityStoreTest method getStore.
private ExecIdentityStore getStore(String command) {
ExecConfig cfg = getCfg();
cfg.getIdentity().getLookup().getSingle().setCommand(command);
cfg.getIdentity().getLookup().getBulk().setCommand(command);
return getStore(cfg);
}
use of io.kamax.mxisd.config.ExecConfig in project mxisd by kamax-io.
the class ExecIdentityStoreTest method getCfg.
private ExecConfig getCfg() {
ExecConfig cfg = new ExecConfig().build();
assertFalse(cfg.isEnabled());
cfg.setEnabled(true);
assertTrue(cfg.isEnabled());
cfg.getIdentity().getLookup().getSingle().getOutput().setType(ExecStore.JsonType);
cfg.getIdentity().getLookup().getBulk().getOutput().setType(ExecStore.JsonType);
return cfg;
}
use of io.kamax.mxisd.config.ExecConfig in project mxisd by kamax-io.
the class ExecDirectoryStoreTest method getCfg.
private ExecConfig getCfg() {
ExecConfig cfg = new ExecConfig().build();
assertFalse(cfg.isEnabled());
cfg.setEnabled(true);
assertTrue(cfg.isEnabled());
cfg.getDirectory().getSearch().getByName().getOutput().setType(ExecStore.JsonType);
return cfg;
}
use of io.kamax.mxisd.config.ExecConfig in project mxisd by kamax-io.
the class ExecDirectoryStoreTest method getStore.
private ExecDirectoryStore getStore(String command) {
ExecConfig cfg = getCfg();
cfg.getDirectory().getSearch().getByName().setCommand(command);
cfg.getDirectory().getSearch().getByThreepid().setCommand(command);
return getStore(cfg);
}
Aggregations