use of org.graylog.plugins.sidecar.services.ConfigurationVariableService in project graylog2-server by Graylog2.
the class ConfigurationServiceTest method setUp.
@Before
public void setUp() throws Exception {
final ObjectMapper objectMapper = new ObjectMapperProvider().get();
final MongoJackObjectMapperProvider mongoJackObjectMapperProvider = new MongoJackObjectMapperProvider(objectMapper);
when(nodeDetails.operatingSystem()).thenReturn("DummyOS");
when(nodeDetails.ip()).thenReturn("1.2.3.4");
when(sidecar.nodeId()).thenReturn("42");
when(sidecar.nodeName()).thenReturn("mockymock");
when(sidecar.nodeDetails()).thenReturn(nodeDetails);
this.configurationVariableService = new ConfigurationVariableService(mongodb.mongoConnection(), mongoJackObjectMapperProvider);
this.configurationService = new ConfigurationService(mongodb.mongoConnection(), mongoJackObjectMapperProvider, configurationVariableService);
}
use of org.graylog.plugins.sidecar.services.ConfigurationVariableService in project graylog2-server by Graylog2.
the class SidecarCollectorConfigurationFacadeTest method setUp.
@Before
public void setUp() throws Exception {
final MongoJackObjectMapperProvider mapperProvider = new MongoJackObjectMapperProvider(objectMapper);
final ConfigurationService configurationService = new ConfigurationService(mongodb.mongoConnection(), mapperProvider, new ConfigurationVariableService(mongodb.mongoConnection(), mapperProvider));
facade = new SidecarCollectorConfigurationFacade(objectMapper, configurationService);
}
Aggregations