forked from TrueCloudLab/frostfs-testcases
[#184]: session token keywords moved to separate repo; session token
tests slightly refactored Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
3e31c527d2
commit
e489b43d63
6 changed files with 124 additions and 77 deletions
|
@ -101,6 +101,10 @@ def json_reencode(data: str):
|
|||
'''
|
||||
return base58.b58encode(base64.b64decode(data)).decode("utf-8")
|
||||
|
||||
|
||||
def encode_for_json(data: str):
|
||||
return base64.b64encode(base58.b58decode(data)).decode('utf-8')
|
||||
|
||||
def decode_common_fields(data: dict):
|
||||
'''
|
||||
Despite of type (simple/complex Object, Storage Group, etc) every Object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue