ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.17k stars 3.01k forks source link

Add datastore tests #4549

Open magik6k opened 6 years ago

magik6k commented 6 years ago

Datastores (mostly badger for now) should get some more testing, this can be done in couple of ways:

whyrusleeping commented 6 years ago

Some things for the list of things to test:

schomatis commented 6 years ago

I'm assigning (temporarily) this issue to myself while I prepare some tests for the Badger implementation, you could guide me to structure those tests in a way that they may be re-utilized in the future for the generic datastore interface. (Sometimes that won't be possible as some tests need to interact directly with badger-specific settings.)

schomatis commented 6 years ago

@magik6k Do you know of any sharness test I could use as a base for the datastore tests?

magik6k commented 6 years ago

For some relevant tests I'd start with 40-add-and-cat, 45-ls, 50-block, 53-dag, 80-repo and 81-repo-gc-auto.

Optimally we'd be able to tell sharness/make to re-run some tests with different datastore/profile.