Generate correct IDs for tests #71

Open
opened 2025-12-28 18:12:26 +00:00 by sami · 1 comment
Owner

Originally created by @carpawell on GitHub (Apr 13, 2022).

After SDK refactor, IDs that are not valid in the terms of the NeoFS protocol could not be used in SDK tests. E.g. oid (not 32 byte length). It looks like it is not api repo's responsibility, but I still think it is not correct to provide test IDs that are not used in real cases.

Originally created by @carpawell on GitHub (Apr 13, 2022). After SDK refactor, IDs that are not valid in the terms of the NeoFS protocol could not be used in SDK tests. E.g. [oid](https://github.com/nspcc-dev/neofs-api-go/blob/v2.12.1/refs/test/generate.go#L45) (not 32 byte length). It looks like it is not `api` repo's responsibility, but I still think it is not correct to provide test IDs that are not used in real cases.
Author
Owner

@carpawell commented on GitHub (Apr 13, 2022):

OR add functions that generate incorrect IDs (or the same func but with an incorrect flag or smth like that) and fix the current.

@carpawell commented on GitHub (Apr 13, 2022): OR add functions that generate incorrect IDs (or the same func but with an `incorrect` flag or smth like that) and fix the current.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
nspcc-dev/neofs-api-go#71
No description provided.