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 for
ServiceAndSpanNames.
Subtypes should create a connection to a real backend, even if that backend is in-process.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ITServiceAndSpanNames() -
Method Summary
Modifier and Type Method Description protected voidconfigureStorageForTest(StorageComponent.Builder storage)Configures aStorageComponent.Builderwith parameters for the test being executed.protected voidgetLocalServiceNames_includesLocalServiceName()protected voidgetLocalServiceNames_noServiceName()protected voidgetRemoteServiceNames()protected voidgetRemoteServiceNames_allReturned()protected voidgetRemoteServiceNames_dedupes()Ensures the service name index returns distinct resultsprotected voidgetRemoteServiceNames_noRemoteServiceName()protected voidgetRemoteServiceNames_serviceNameGoesLowercase()protected voidgetSpanNames()protected voidgetSpanNames_allReturned()protected voidgetSpanNames_dedupes()Ensures the span name index returns distinct resultsprotected voidgetSpanNames_doesNotMapNameToRemoteServiceName()protected voidgetSpanNames_noSpanName()protected voidgetSpanNames_serviceNameGoesLowercase()Methods inherited from class zipkin2.storage.ITStorage
accept, accept, blockWhileInFlight, clear, initializeStoragePerTest, names, newStorageBuilder, store, traces
-
Constructor Details
-
ITServiceAndSpanNames
public ITServiceAndSpanNames()
-
-
Method Details
-
configureStorageForTest
Description copied from class:ITStorageConfigures aStorageComponent.Builderwith parameters for the test being executed.- Specified by:
configureStorageForTestin classITStorage<T extends StorageComponent>
-
getLocalServiceNames_includesLocalServiceName
- Throws:
Exception
-
getLocalServiceNames_noServiceName
- Throws:
IOException
-
getRemoteServiceNames
- Throws:
Exception
-
getRemoteServiceNames_allReturned
- Throws:
IOException
-
getRemoteServiceNames_dedupes
Ensures the service name index returns distinct results- Throws:
IOException
-
getRemoteServiceNames_noRemoteServiceName
- Throws:
IOException
-
getRemoteServiceNames_serviceNameGoesLowercase
- Throws:
IOException
-
getSpanNames_doesNotMapNameToRemoteServiceName
- Throws:
Exception
-
getSpanNames
- Throws:
Exception
-
getSpanNames_allReturned
- Throws:
IOException
-
getSpanNames_dedupes
Ensures the span name index returns distinct results- Throws:
IOException
-
getSpanNames_noSpanName
- Throws:
IOException
-
getSpanNames_serviceNameGoesLowercase
- Throws:
IOException
-