Package zipkin2.storage
Class ITServiceAndSpanNames<T extends StorageComponent>
- java.lang.Object
-
- zipkin2.storage.ITStorage<T>
-
- zipkin2.storage.ITServiceAndSpanNames<T>
-
public abstract class ITServiceAndSpanNames<T extends StorageComponent> extends ITStorage<T>
Base test forServiceAndSpanNames
.Subtypes should create a connection to a real backend, even if that backend is in-process.
-
-
Constructor Summary
Constructors Constructor Description ITServiceAndSpanNames()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureStorageForTest(StorageComponent.Builder storage)
Configures aStorageComponent.Builder
with parameters for the test being executed.protected void
getLocalServiceNames_includesLocalServiceName(org.junit.jupiter.api.TestInfo testInfo)
protected void
getLocalServiceNames_noServiceName(org.junit.jupiter.api.TestInfo testInfo)
protected void
getRemoteServiceNames(org.junit.jupiter.api.TestInfo testInfo)
protected void
getRemoteServiceNames_allReturned(org.junit.jupiter.api.TestInfo testInfo)
protected void
getRemoteServiceNames_dedupes(org.junit.jupiter.api.TestInfo testInfo)
Ensures the service name index returns distinct resultsprotected void
getRemoteServiceNames_noRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo)
protected void
getRemoteServiceNames_serviceNameGoesLowercase(org.junit.jupiter.api.TestInfo testInfo)
protected void
getSpanNames(org.junit.jupiter.api.TestInfo testInfo)
protected void
getSpanNames_allReturned(org.junit.jupiter.api.TestInfo testInfo)
protected void
getSpanNames_dedupes(org.junit.jupiter.api.TestInfo testInfo)
Ensures the span name index returns distinct resultsprotected void
getSpanNames_doesNotMapNameToRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo)
protected void
getSpanNames_noSpanName(org.junit.jupiter.api.TestInfo testInfo)
protected void
getSpanNames_serviceNameGoesLowercase(org.junit.jupiter.api.TestInfo testInfo)
-
Methods inherited from class zipkin2.storage.ITStorage
accept, accept, assertGetTraceReturns, assertGetTraceReturns, assertGetTraceReturnsEmpty, assertGetTracesReturns, assertGetTracesReturns, assertGetTracesReturnsCount, assertGetTracesReturnsEmpty, assertGetTracesReturnsEmpty, blockWhileInFlight, checkStorage, clear, initializeStoragePerTest, names, newStorageBuilder, requestBuilder, returnsRawSpans, sortTrace, store, testSuffix, traces
-
-
-
-
Method Detail
-
configureStorageForTest
protected final void configureStorageForTest(StorageComponent.Builder storage)
Description copied from class:ITStorage
Configures aStorageComponent.Builder
with parameters for the test being executed.- Specified by:
configureStorageForTest
in classITStorage<T extends StorageComponent>
-
getLocalServiceNames_includesLocalServiceName
@Test protected void getLocalServiceNames_includesLocalServiceName(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getLocalServiceNames_noServiceName
@Test protected void getLocalServiceNames_noServiceName(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getRemoteServiceNames
@Test protected void getRemoteServiceNames(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getRemoteServiceNames_allReturned
@Test protected void getRemoteServiceNames_allReturned(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getRemoteServiceNames_dedupes
@Test protected void getRemoteServiceNames_dedupes(org.junit.jupiter.api.TestInfo testInfo) throws Exception
Ensures the service name index returns distinct results- Throws:
Exception
-
getRemoteServiceNames_noRemoteServiceName
@Test protected void getRemoteServiceNames_noRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getRemoteServiceNames_serviceNameGoesLowercase
@Test protected void getRemoteServiceNames_serviceNameGoesLowercase(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getSpanNames_doesNotMapNameToRemoteServiceName
@Test protected void getSpanNames_doesNotMapNameToRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getSpanNames
@Test protected void getSpanNames(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getSpanNames_allReturned
@Test protected void getSpanNames_allReturned(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
getSpanNames_dedupes
@Test protected void getSpanNames_dedupes(org.junit.jupiter.api.TestInfo testInfo) throws Exception
Ensures the span name index returns distinct results- Throws:
Exception
-
getSpanNames_noSpanName
@Test protected void getSpanNames_noSpanName(org.junit.jupiter.api.TestInfo testInfo) throws Exception
- Throws:
Exception
-
-