forked from TrueCloudLab/frostfs-testcases
[#271] fixed key for eacl filter test
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
bebbc42187
commit
dd98eb3d9d
5 changed files with 60 additions and 66 deletions
|
@ -80,6 +80,10 @@ def create_eacl(cid: str, rules_list: list):
|
|||
)
|
||||
_cmd_run(cmd)
|
||||
|
||||
with open(table, 'r') as fout:
|
||||
table_data = fout.read()
|
||||
logger.info(f"Generated eACL:\n{table_data}")
|
||||
|
||||
return table
|
||||
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ def _configure_aws_cli(cmd: str, key_id: str, access_key: str, out_format: str =
|
|||
|
||||
def _attach_allure_log(cmd: str, output: str, return_code: int, start_time: datetime,
|
||||
end_time: datetime) -> None:
|
||||
if 'allure' in sys.modules:
|
||||
if 'robot' not in sys.modules:
|
||||
command_attachment = (
|
||||
f"COMMAND: '{cmd}'\n"
|
||||
f'OUTPUT:\n {output}\n'
|
||||
|
@ -101,7 +101,7 @@ def _attach_allure_log(cmd: str, output: str, return_code: int, start_time: date
|
|||
|
||||
def log_command_execution(cmd: str, output: Union[str, dict]) -> None:
|
||||
logger.info(f'{cmd}: {output}')
|
||||
if 'allure' in sys.modules:
|
||||
if 'robot' not in sys.modules:
|
||||
with suppress(Exception):
|
||||
json_output = json.dumps(output, indent=4, sort_keys=True)
|
||||
output = json_output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue