feat object_store: moving tests from src/ to a tests/ folder and enabling access to test functions for enabling a shared integration test suite #5685
Labels
enhancement
Any new improvement worthy of a entry in the changelog
object-store
Object Store Interface
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Hi young dev here!
I am currently busy doing an external implementation (or to phrase it better, I am essential refactoring the datafusion-contrib/datafusion-objectstore-hdfs repository to support the latest 0.10 object store interface.
While my src implementation is complete, I am still lacking the tests. While looking at the implementation of the
object_store
interface in this repository, I've noticed that most of tests in ObjectStore implementations (Local
,Azure
etc.) call test functions defined inobject_store/src/lib.rs
. These tests offer a crate visibility, so even thou my implementation would benefit from it, I can't access it.After a brief discussion with @tustvold, he suggested to generalise my need to create a suite of shared integration tests across object_store implementations.
Describe the solution you'd like
This solution comprises of mainly two points
/tests
folderpub(crate)
topub
) of test functions, ensuring this change is not in conflict with private accesses.Describe alternatives you've considered
Alternatives to this feature would be to decouple the tests (completely refactor what is the current status of the repository) leading to code repetition (tests are doing a similar task, even for different implementations.
If there is no will of maintaining these tests (making them public), any external implementation of the object_store interface should resort to a copy-paste of the functions currently present (code duplication).
The text was updated successfully, but these errors were encountered: