From d97a02d1d3b0ca49128647002fe9c915620f6868 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Mon, 20 Mar 2023 16:53:52 +0300 Subject: [PATCH] Add missing functions Signed-off-by: Andrey Berezin --- src/frostfs_testlib/hosting/docker_host.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/frostfs_testlib/hosting/docker_host.py b/src/frostfs_testlib/hosting/docker_host.py index 1f7b545..7b22438 100644 --- a/src/frostfs_testlib/hosting/docker_host.py +++ b/src/frostfs_testlib/hosting/docker_host.py @@ -11,7 +11,7 @@ import docker from requests import HTTPError from frostfs_testlib.hosting.config import ParsedAttributes -from frostfs_testlib.hosting.interfaces import Host +from frostfs_testlib.hosting.interfaces import DiskInfo, Host from frostfs_testlib.shell import LocalShell, Shell, SSHShell from frostfs_testlib.shell.command_inspectors import SudoInspector @@ -142,6 +142,15 @@ class DockerHost(Host): cmd = f"{meta_clean_cmd}{data_clean_cmd}" shell.exec(cmd) + def attach_disk(self, device: str, disk_info: DiskInfo) -> None: + raise NotImplementedError("Not supported for docker") + + def detach_disk(self, device: str) -> DiskInfo: + raise NotImplementedError("Not supported for docker") + + def is_disk_attached(self, device: str, disk_info: DiskInfo) -> bool: + raise NotImplementedError("Not supported for docker") + def dump_logs( self, directory_path: str,