Improve shard/engine construction in tests #116

Closed
opened 2023-03-08 23:34:44 +00:00 by snegurochka · 1 comment
Member

Original issue: https://github.com/nspcc-dev/neofs-node/issues/1776

We have a lot of different tests which test different things:

  1. Some tests may need 1 shard, others need many.
  2. Some tests need particular error threshold, others use default.
  3. Some tests need to corrupt data on disk and thus may need a custom storage backend constructed beforehand.

The proposal is to have a single newEngine(prm) in tests, where all defaults can be overridden.
This way we can avoid having to create engine/shard manually when writing specific tests.

I have assigned P1 priority, because albeit it is a test refactor, we will certainly need this in Q4, when we will test all failover/storage corruption scenarios.

Original issue: https://github.com/nspcc-dev/neofs-node/issues/1776 We have a lot of different tests which test different things: 1. Some tests may need 1 shard, others need many. 2. Some tests need particular error threshold, others use default. 3. Some tests need to corrupt data on disk and thus may need a custom storage backend constructed beforehand. The proposal is to have a single `newEngine(prm)` in tests, where all defaults can be overridden. This way we can avoid having to create engine/shard manually when writing specific tests. I have assigned P1 priority, because albeit it is a test refactor, we will certainly need this in Q4, when we will test all failover/storage corruption scenarios.
aarifullin self-assigned this 2023-03-28 06:51:07 +00:00
fyrchik added the
frostfs-node
refactoring
labels 2023-03-31 07:35:17 +00:00
Owner

Closed via #220.

Closed via #220.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#116
No description provided.