Upgrade storage integration tests to Storage v2 API #6366
Labels
area/storage
good first issue
Good for beginners
help wanted
Features that maintainers are willing to accept but do not have cycles to implement
v2
Currently our storage integration tests (
plugin/storage/integration/
andcmd/jaeger/internal/integration/
) operate in the existing v1 storage APIs. We want to migrate them to use V2 api fromstorage_v2/
.The way these tests operate is each storage backend has its own entry point to the tests and that entry point is responsible for initializing various storage reader/write APIs
jaeger/plugin/storage/integration/integration.go
Lines 43 to 50 in d6456fb
We can begin upgrading to v2 API by incrementally swapping these fields to have the corresponding v2 interfaces, e.g. replacing
SpanReader spanstore.Reader
field withTraceReader tracestore.Reader
and adjusting the test functions using that interface accordingly. The backend entry points then can provide TraceReader from the existing v1 SpanReader by wrapping it instorage_v2/v1adapter
.Then in the following PRs we can upgrade the remaining interfaces
The text was updated successfully, but these errors were encountered: