forked from TrueCloudLab/frostfs-testcases
Vladimir Domnich
84230d12e3
The change is motivated by variety of standard ACLs that will be hard to manage with set of fixtures. Remove logic that initializes wallet from remote devenv host. This setup action should be handled outside tests. Add ability to establish SSH connection using SSH key instead of password. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
13 lines
418 B
Python
13 lines
418 B
Python
|
|
def dict_to_attrs(attrs: dict) -> str:
|
|
"""
|
|
This function takes a dictionary of object's attributes and converts them
|
|
into string. The string is passed to `--attributes` key of neofs-cli.
|
|
|
|
Args:
|
|
attrs (dict): object attributes in {"a": "b", "c": "d"} format.
|
|
|
|
Returns:
|
|
(str): string in "a=b,c=d" format.
|
|
"""
|
|
return ",".join(f"{key}={value}" for key, value in attrs.items())
|