forked from TrueCloudLab/frostfs-testlib
Move shared code to testlib
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
d97a02d1d3
commit
997e768e92
69 changed files with 9213 additions and 64 deletions
|
@ -60,6 +60,23 @@ class CommandOptions:
|
|||
self.timeout = Options.get_default_shell_timeout()
|
||||
|
||||
|
||||
@dataclass
|
||||
class SshCredentials:
|
||||
"""Represents ssh credentials.
|
||||
|
||||
Attributes:
|
||||
ssh_login: ssh login.
|
||||
ssh_password: ssh password as plain text (unsecure, for local setup only).
|
||||
ssh_key_path: path to a ssh key file.
|
||||
ssh_key_passphrase: passphrase to ssh key file.
|
||||
"""
|
||||
|
||||
ssh_login: str
|
||||
ssh_password: Optional[str] = None
|
||||
ssh_key_path: Optional[str] = None
|
||||
ssh_key_passphrase: Optional[str] = None
|
||||
|
||||
|
||||
@dataclass
|
||||
class CommandResult:
|
||||
"""Represents a result of a command executed via shell.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue