Search in sources :

Example 1 with ExecConfig

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());
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig) UserDirectorySearchResult(io.kamax.mxisd.http.io.UserDirectorySearchResult) ExecDirectoryStore(io.kamax.mxisd.backend.exec.ExecDirectoryStore) Test(org.junit.Test)

Example 2 with ExecConfig

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);
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig)

Example 3 with ExecConfig

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;
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig)

Example 4 with ExecConfig

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;
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig)

Example 5 with ExecConfig

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);
}
Also used : ExecConfig(io.kamax.mxisd.config.ExecConfig)

Aggregations

ExecConfig (io.kamax.mxisd.config.ExecConfig)7 ExecDirectoryStore (io.kamax.mxisd.backend.exec.ExecDirectoryStore)1 UserDirectorySearchResult (io.kamax.mxisd.http.io.UserDirectorySearchResult)1 Test (org.junit.Test)1