forked from TrueCloudLab/frostfs-testlib
[#319] update container and morph chein
This commit is contained in:
parent
a7d04ef0c2
commit
ade2cc4923
2 changed files with 15 additions and 14 deletions
|
@ -26,8 +26,12 @@ class ObjectOperations(HumanReadableEnum):
|
|||
return [op for op in ObjectOperations if op != ObjectOperations.WILDCARD_ALL]
|
||||
|
||||
|
||||
<<<<<<< HEAD
|
||||
@dataclass
|
||||
class Operations:
|
||||
=======
|
||||
class Operations(Enum):
|
||||
>>>>>>> ddcb420 ([#319] update container and morph chein)
|
||||
GET_CONTAINER = "GetContainer"
|
||||
PUT_CONTAINER = "PutContainer"
|
||||
DELETE_CONTAINER = "DeleteContainer"
|
||||
|
|
|
@ -181,20 +181,17 @@ class ContainerOperations(interfaces.ContainerInterface):
|
|||
force: bool = False,
|
||||
trace: bool = False,
|
||||
):
|
||||
try:
|
||||
return self.cli.container.delete(
|
||||
rpc_endpoint=endpoint,
|
||||
cid=cid,
|
||||
address=address,
|
||||
await_mode=await_mode,
|
||||
session=session,
|
||||
ttl=ttl,
|
||||
xhdr=xhdr,
|
||||
force=force,
|
||||
trace=trace,
|
||||
).stdout
|
||||
except RuntimeError as e:
|
||||
print(f"Error request:\n{e}")
|
||||
return self.cli.container.delete(
|
||||
rpc_endpoint=endpoint,
|
||||
cid=cid,
|
||||
address=address,
|
||||
await_mode=await_mode,
|
||||
session=session,
|
||||
ttl=ttl,
|
||||
xhdr=xhdr,
|
||||
force=force,
|
||||
trace=trace,
|
||||
).stdout
|
||||
|
||||
@reporter.step("Get container")
|
||||
def get(
|
||||
|
|
Loading…
Reference in a new issue