public abstract class AbstractStorageIntegrationTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<org.opennms.integration.api.v1.timeseries.Metric> |
metrics |
protected Instant |
referenceTime |
protected List<org.opennms.integration.api.v1.timeseries.Sample> |
samplesOfFirstMetric |
protected org.opennms.integration.api.v1.timeseries.TimeSeriesStorage |
storage |
| Constructor and Description |
|---|
AbstractStorageIntegrationTest() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.opennms.integration.api.v1.timeseries.Metric |
createMetric(String uuid,
int nodeId) |
protected static List<org.opennms.integration.api.v1.timeseries.Metric> |
createMetrics() |
protected static org.opennms.integration.api.v1.timeseries.Sample |
createSampleForMetric(org.opennms.integration.api.v1.timeseries.Metric metric,
int index,
Instant referenceTime) |
protected List<org.opennms.integration.api.v1.timeseries.Sample> |
createSamplesForMetric(org.opennms.integration.api.v1.timeseries.Metric metric) |
protected abstract org.opennms.integration.api.v1.timeseries.TimeSeriesStorage |
createStorage()
Create the TimeSeriesStorage implementation.
|
protected List<org.opennms.integration.api.v1.timeseries.Sample> |
loadSamplesForMetric(org.opennms.integration.api.v1.timeseries.Metric metric) |
void |
setUp() |
void |
shouldDeleteMetrics() |
void |
shouldFindOneMetricWithRegexMatching() |
void |
shouldFindOneMetricWithRegexNotMatching() |
void |
shouldFindOneMetricWithUniqueTag() |
void |
shouldFindWithNotEquals() |
void |
shouldGetSamplesForMetric() |
void |
shouldLoadMultipleMetricsWithSameTag() |
void |
shouldThrowExceptionWhenFindCalledWithoutTagMatcher() |
protected void |
waitForPersistingChanges()
Default implementation does nothing.
|
protected List<org.opennms.integration.api.v1.timeseries.Metric> metrics
protected List<org.opennms.integration.api.v1.timeseries.Sample> samplesOfFirstMetric
protected org.opennms.integration.api.v1.timeseries.TimeSeriesStorage storage
protected Instant referenceTime
protected abstract org.opennms.integration.api.v1.timeseries.TimeSeriesStorage createStorage()
throws Exception
Exceptionprotected void waitForPersistingChanges()
throws Exception
Exceptionpublic void shouldLoadMultipleMetricsWithSameTag()
throws Exception
Exceptionpublic void shouldFindOneMetricWithUniqueTag()
throws Exception
Exceptionpublic void shouldFindOneMetricWithRegexMatching()
throws Exception
Exceptionpublic void shouldFindOneMetricWithRegexNotMatching()
throws Exception
Exceptionpublic void shouldThrowExceptionWhenFindCalledWithoutTagMatcher()
throws Exception
Exceptionpublic void shouldGetSamplesForMetric()
throws Exception
Exceptionprotected List<org.opennms.integration.api.v1.timeseries.Sample> loadSamplesForMetric(org.opennms.integration.api.v1.timeseries.Metric metric) throws Exception
Exceptionprotected List<org.opennms.integration.api.v1.timeseries.Sample> createSamplesForMetric(org.opennms.integration.api.v1.timeseries.Metric metric)
protected static org.opennms.integration.api.v1.timeseries.Sample createSampleForMetric(org.opennms.integration.api.v1.timeseries.Metric metric,
int index,
Instant referenceTime)
protected static List<org.opennms.integration.api.v1.timeseries.Metric> createMetrics()
protected static org.opennms.integration.api.v1.timeseries.Metric createMetric(String uuid, int nodeId)
Copyright © 2021. All rights reserved.