Skip to content

Commit

Permalink
Deprecate System role in EACL #616 (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Sep 15, 2023
2 parents 24d27df + d0fee6b commit c664e58
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 299 deletions.
4 changes: 4 additions & 0 deletions pytest_tests/helpers/grpc_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
NOT_SESSION_CONTAINER_OWNER = "session issuer differs with the container owner"
TIMED_OUT = "timed out after \\d+ seconds"
CONTAINER_DELETION_TIMED_OUT = "container deletion: await timeout expired"

EACL_TIMED_OUT = "eACL setting: await timeout expired"
EACL_TABLE_IS_NOT_SET = "extended ACL table is not set for this container"
EACL_NOT_FOUND = "code = 3073.*message = eACL not found"
EACL_PROHIBITED_TO_MODIFY_SYSTEM_ACCESS = "table validation: it is prohibited to modify system access"

def error_matches_status(error: Exception, status_pattern: str) -> bool:
"""
Expand Down
6 changes: 6 additions & 0 deletions pytest_tests/testsuites/acl/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ def get_wallet(self, role: EACLRole = EACLRole.USER) -> Wallet:
def get_wallets_list(self, role: EACLRole = EACLRole.USER) -> list[Wallet]:
return self.wallets[role]

def get_ir_wallet(self) -> Wallet:
return self.wallets[EACLRole.SYSTEM][0]

def get_storage_wallet(self) -> Wallet:
return self.wallets[EACLRole.SYSTEM][1]


@pytest.fixture(scope="module")
def wallets(default_wallet, temp_directory, cluster: Cluster) -> Wallets:
Expand Down
Loading

0 comments on commit c664e58

Please sign in to comment.