forked from TrueCloudLab/frostfs-testlib
Shards are attribute of StorageNode class
This commit is contained in:
parent
73c362c307
commit
a4d1082ed5
3 changed files with 135 additions and 6 deletions
|
@ -219,12 +219,22 @@ class Host(ABC):
|
|||
"""
|
||||
|
||||
@abstractmethod
|
||||
def delete_pilorama(self, service_name: str) -> None:
|
||||
def delete_file(self, file_path: str) -> None:
|
||||
"""
|
||||
Deletes all pilorama.db files in the node.
|
||||
Deletes file with provided file path
|
||||
|
||||
Args:
|
||||
service_name: Name of storage node service.
|
||||
file_path: full path to the file to delete
|
||||
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def is_file_exist(self, file_path: str) -> bool:
|
||||
"""
|
||||
Checks if file exist
|
||||
|
||||
Args:
|
||||
file_path: full path to the file to check
|
||||
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue