forked from TrueCloudLab/frostfs-testcases
Fix decode_session_token after API was changed
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
This commit is contained in:
parent
5eeb8b4058
commit
3eadf934e0
2 changed files with 5 additions and 8 deletions
|
@ -106,12 +106,10 @@ def decode_session_token(data: dict):
|
|||
This function reencodes a fragment of header which contains
|
||||
information about session token.
|
||||
"""
|
||||
data["body"]["object"]["address"]["containerID"] = json_reencode(
|
||||
data["body"]["object"]["address"]["containerID"]["value"]
|
||||
)
|
||||
data["body"]["object"]["address"]["objectID"] = json_reencode(
|
||||
data["body"]["object"]["address"]["objectID"]["value"]
|
||||
data["body"]["object"]["target"]["container"] = json_reencode(
|
||||
data["body"]["object"]["target"]["container"]["value"]
|
||||
)
|
||||
data["body"]["object"]["target"]["objects"] = [json_reencode(obj["value"]) for obj in data["body"]["object"]["target"]["objects"]]
|
||||
return data
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue