Assert codes instead of text when using NeoFS CLI tools #919
Labels
enhancement
Improving existing functionality
I4
No visible changes
S2
Regular significance
U4
Nothing urgent
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 get
output fromcontainer not found
tonot 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) ===
The text was updated successfully, but these errors were encountered: