forked from TrueCloudLab/frostfs-testlib
update
This commit is contained in:
parent
612a8ba68e
commit
51570e7b5d
2 changed files with 4 additions and 6 deletions
|
@ -353,7 +353,6 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
|
|
||||||
def add_rule(
|
def add_rule(
|
||||||
self,
|
self,
|
||||||
endpoint: str,
|
|
||||||
chain_id: str,
|
chain_id: str,
|
||||||
target_name: str,
|
target_name: str,
|
||||||
target_type: str,
|
target_type: str,
|
||||||
|
@ -382,13 +381,12 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
Command`s result.
|
Command`s result.
|
||||||
"""
|
"""
|
||||||
return self._execute(
|
return self._execute(
|
||||||
"control add-rule",
|
"morph ape add-rule-chain",
|
||||||
**{param: value for param, value in locals().items() if param not in ["self"]},
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_rule(
|
def get_rule(
|
||||||
self,
|
self,
|
||||||
endpoint: str,
|
|
||||||
chain_id: str,
|
chain_id: str,
|
||||||
target_name: str,
|
target_name: str,
|
||||||
target_type: str,
|
target_type: str,
|
||||||
|
@ -413,7 +411,7 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
Command`s result.
|
Command`s result.
|
||||||
"""
|
"""
|
||||||
return self._execute(
|
return self._execute(
|
||||||
"control get-rule",
|
"morph ape get-rule-chains",
|
||||||
**{param: value for param, value in locals().items() if param not in ["self"]},
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -446,7 +444,6 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
|
|
||||||
def remove_rule(
|
def remove_rule(
|
||||||
self,
|
self,
|
||||||
endpoint: str,
|
|
||||||
chain_id: str,
|
chain_id: str,
|
||||||
target_name: str,
|
target_name: str,
|
||||||
target_type: str,
|
target_type: str,
|
||||||
|
@ -473,6 +470,6 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
Command`s result.
|
Command`s result.
|
||||||
"""
|
"""
|
||||||
return self._execute(
|
return self._execute(
|
||||||
"control remove-rule",
|
"morph ape rm-rule-chain",
|
||||||
**{param: value for param, value in locals().items() if param not in ["self"]},
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,3 +29,4 @@ S3_MALFORMED_XML_REQUEST = "The XML you provided was not well-formed or did not
|
||||||
RULE_ACCESS_DENIED_CONTAINER = "access to container operation {operation} is denied by access policy engine: Access denied"
|
RULE_ACCESS_DENIED_CONTAINER = "access to container operation {operation} is denied by access policy engine: Access denied"
|
||||||
RULE_ACCESS_DENIED_OBJECT = "access to object operation denied: ape denied request: method {operation}: Access denied"
|
RULE_ACCESS_DENIED_OBJECT = "access to object operation denied: ape denied request: method {operation}: Access denied"
|
||||||
NO_RULE_FOUND_CONTAINER = "access to container operation {operation} is denied by access policy engine: NoRuleFound"
|
NO_RULE_FOUND_CONTAINER = "access to container operation {operation} is denied by access policy engine: NoRuleFound"
|
||||||
|
NO_RULE_FOUND_OBJECT = "access to object operation denied: ape denied request: method {operation}: NoRuleFound"
|
Loading…
Reference in a new issue