use of org.apache.metron.common.configuration.ConfigurationType.INDEXING in project metron by apache.
the class ConfigurationManagerIntegrationTest method setup.
@BeforeEach
public void setup() throws Exception {
testZkServer = new TestingServer(true);
zookeeperUrl = testZkServer.getConnectString();
client = ConfigurationsUtils.getClient(zookeeperUrl);
client.start();
File sensorDir = new File(new File(TestConstants.SAMPLE_CONFIG_PATH), ENRICHMENT.getDirectory());
sensors.addAll(Collections2.transform(Arrays.asList(sensorDir.list()), s -> Iterables.getFirst(Splitter.on('.').split(s), "null")));
tmpDir = TestUtils.createTempDir(this.getClass().getName());
configDir = TestUtils.createDir(tmpDir, "config");
parsersDir = TestUtils.createDir(configDir, "parsers");
enrichmentsDir = TestUtils.createDir(configDir, "enrichments");
indexingDir = TestUtils.createDir(configDir, "indexing");
pushAllConfigs();
}
Aggregations