public class InfluxDBServiceIntegrationTest
extends AbstractOSGiTest
| Constructor and Description |
|---|
InfluxDBServiceIntegrationTest()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doAfter()
Here you can put everything you want to be exectued after every test
|
void |
doBefore()
Here you can put everything you want to be exectued before every test
|
void |
testInfluxDBCreateDB()
Tests the DB creation through the InfluxDBService.
|
void |
testServiceEnvConfig()
Tests the connection to the InfluxDB using username and password from environmental variables
instead of from configuration.
|
void |
testServiceURLConfig()
Tests the connection to the InfluxDB Service when an URL is specified
|
void |
testServiceURLEnvConfig()
Tests the connection to the InfluxDB Service when an URL is specified in an env variable
|
void |
testTimeShift()
InfluxDB does not support time shift series, thus we provide a work-around for this issue, in case the user
wants to plot two time series, registered at different times, in the same time range.
|
void |
testWriteFromCSVConverter()
Writes points starting from a CSV file and using the CSVReader to convert it into a more suitable format for
the InfluxDBService.
|
void |
testWriteFromCSVConverterOptions()
Writes points starting from a CSV file and using the CSVReader to convert it into a more suitable format for
the InfluxDBService.
|
void |
testWriteSinglePoint()
Tests the
writeSinglePoint() |
void |
testWriteTimeSeries()
Tests the
writeTimeSeries() |
void |
testWriteWithTimeShift()
Tests the
writeWithTimeShift() |
public InfluxDBServiceIntegrationTest()
bundleContext - public void doBefore()
public void doAfter()
public void testInfluxDBCreateDB()
throws java.io.IOException
java.io.IOExceptionpublic void testServiceEnvConfig()
throws java.io.IOException
java.io.IOExceptionpublic void testServiceURLConfig()
throws java.io.IOException
java.io.IOExceptionpublic void testServiceURLEnvConfig()
throws java.io.IOException
java.io.IOExceptionpublic void testWriteSinglePoint()
throws java.io.IOException
writeSinglePoint() of the InfluxDBService and the corresponding InfluxDBEntryjava.io.IOExceptionpublic void testTimeShift()
throws java.io.IOException
timeShiftTag
to the point whose timestamp is to be used later as time shift for other time series.
Here we tests the method to retrieve this tag back.java.io.IOExceptionpublic void testWriteTimeSeries()
throws java.io.IOException
writeTimeSeries() of the InfluxDBService and the corresponding InfluxDBEntryjava.io.IOExceptionpublic void testWriteWithTimeShift()
throws java.io.IOException
writeWithTimeShift() of the InfluxDBService and the corresponding InfluxDBEntryjava.io.IOExceptionpublic void testWriteFromCSVConverter()
throws java.io.IOException
java.io.IOExceptionpublic void testWriteFromCSVConverterOptions()
throws java.io.IOException
java.io.IOExceptionData In Motion GmbH all rights reserved