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 voidconfigureStorageForTest(StorageComponent.Builder storage)Configures aStorageComponent.Builderwith parameters for the test being executed.protected voidgetLocalServiceNames_includesLocalServiceName(org.junit.jupiter.api.TestInfo testInfo)protected voidgetLocalServiceNames_noServiceName(org.junit.jupiter.api.TestInfo testInfo)protected voidgetRemoteServiceNames(org.junit.jupiter.api.TestInfo testInfo)protected voidgetRemoteServiceNames_allReturned(org.junit.jupiter.api.TestInfo testInfo)protected voidgetRemoteServiceNames_dedupes(org.junit.jupiter.api.TestInfo testInfo)Ensures the service name index returns distinct resultsprotected voidgetRemoteServiceNames_noRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo)protected voidgetRemoteServiceNames_serviceNameGoesLowercase(org.junit.jupiter.api.TestInfo testInfo)protected voidgetSpanNames(org.junit.jupiter.api.TestInfo testInfo)protected voidgetSpanNames_allReturned(org.junit.jupiter.api.TestInfo testInfo)protected voidgetSpanNames_dedupes(org.junit.jupiter.api.TestInfo testInfo)Ensures the span name index returns distinct resultsprotected voidgetSpanNames_doesNotMapNameToRemoteServiceName(org.junit.jupiter.api.TestInfo testInfo)protected voidgetSpanNames_noSpanName(org.junit.jupiter.api.TestInfo testInfo)protected voidgetSpanNames_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:ITStorageConfigures aStorageComponent.Builderwith parameters for the test being executed.- Specified by:
configureStorageForTestin 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 ExceptionEnsures 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 ExceptionEnsures 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
-
-