mirror of
https://github.com/nspcc-dev/neofs-testcases.git
synced 2026-03-01 04:29:19 +00:00
Assert codes instead of text when using NeoFS CLI tools #328
Labels
No labels
I1
I2
I3
I4
S0
S1
S1
S2
S3
S4
U0
U0
U1
U2
U3
U4
blocked
bug
dependencies
discussion
documentation
enhancement
enhancement
enhancement
epic
feature
good first issue
help wanted
performance
question
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-testcases#328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Dec 25, 2024).
Is your feature request related to a problem? Please describe.
tests dealing with NeoFS via CLI expect particular text sometimes. For example, recently i accidentally changed
neofs-cli container getoutput fromcontainer not foundtonot found, and corresponding test FAILthis seems good in terms of testing for changes in behavior, and in this particular case. But globally I thought that strict text checking is not always convenient: any improvement of the text makes the test FAIL. For example, if command output will be changed to
Container not found- test will FAIL. I wanna two things at the same time:Describe the solution you'd like
NeoFS status codes are also mapped into CLI exit ones one way or another. We can develop this behavior reduce text checks even more
=== 95 passed, 1 warning in 2239.92s (0:37:19) ===@roman-khimov commented on GitHub (Feb 10, 2025):
Depends on neofs-cli error codes.
@roman-khimov commented on GitHub (Feb 10, 2025):
See https://github.com/nspcc-dev/neofs-testcases/issues/257 also.
@cthulhu-rider commented on GitHub (Apr 1, 2025):
stepped on it again: https://rest.fs.neo.org/HXSaMJXk2g8C14ht8HSi7BBaiYZ1HeWh2xnWPGQCg4H6/2894-1743456527/index.html started to fail after errors text improvements from https://github.com/nspcc-dev/neofs-node/pull/3216