mirror of
https://github.com/nspcc-dev/neofs-testcases.git
synced 2026-03-01 04:29:19 +00:00
Support new session token v2 decoding #455
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#455
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 @End-rey on GitHub (Dec 26, 2025).
Is your feature request related to a problem? Please describe.
I'm always frustrated when we get a new session token v2 and get errors like
Failed: failed to decode JSON output: 'NoneType' object is not subscriptablebecause thesessionTokenfield becomesNoneTypeand a newsessionTokenV2field appears, which needs to be decoded correctly.Describe the solution you'd like
Here, check
Noneand create a new functiondecode_session_tokenv2:nspcc-dev/neofs-testcases@06d326990e/pytest_tests/lib/helpers/json_transformers.py (L78-L87)Also here make check for new session token:
nspcc-dev/neofs-testcases@06d326990e/pytest_tests/lib/helpers/storage_object_info.py (L46-L64)I haven't found any more mentions of session tokens that are broken, but if there are any, add support for new tokens as well.
Describe alternatives you've considered
There is no alternative. We need to add support for new session tokens in the tests.
Additional context
https://rest.fs.neo.org/Aku38wpn2xEqfEPxmwyAa7N3VnAkMV8PEVkpLqwKM1z3/4604-1766766224/index.html#suites/87d8da5f92824d091055170c29079bc0/24ddf0e403008103/
Refs https://github.com/nspcc-dev/neofs-node/pull/3671.