From c4ed442bd52058ebe4f56ea0942491e5ef5b4e37 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Tue, 4 Jun 2024 12:46:32 +0300 Subject: [PATCH] [#236] Add EC logic this HEAD command CLI --- src/frostfs_testlib/steps/cli/object.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frostfs_testlib/steps/cli/object.py b/src/frostfs_testlib/steps/cli/object.py index cd58ec3..3e0806c 100644 --- a/src/frostfs_testlib/steps/cli/object.py +++ b/src/frostfs_testlib/steps/cli/object.py @@ -615,6 +615,11 @@ def head_object( fst_line_idx = result.stdout.find("\n") decoded = json.loads(result.stdout[fst_line_idx:]) + # if response + if "chunks" in decoded.keys(): + logger.info("decoding ec chunks") + return decoded["chunks"] + # If response is Complex Object header, it has `splitId` key if "splitId" in decoded.keys(): logger.info("decoding split header")