diff --git a/neofs-testlib/neofs_testlib/cli/neofs_authmate/authmate.py b/neofs-testlib/neofs_testlib/cli/neofs_authmate/authmate.py index 2a45efe9f..5f86a74e7 100644 --- a/neofs-testlib/neofs_testlib/cli/neofs_authmate/authmate.py +++ b/neofs-testlib/neofs_testlib/cli/neofs_authmate/authmate.py @@ -2,16 +2,13 @@ from neofs_testlib.cli.neofs_authmate.secret import NeofsAuthmateSecret from neofs_testlib.cli.neofs_authmate.version import NeofsAuthmateVersion -from neofs_testlib.cli.neofs_authmate.presigned import NeofsAuthmatePresigned from neofs_testlib.shell import Shell class NeofsAuthmate: secret: Optional[NeofsAuthmateSecret] = None version: Optional[NeofsAuthmateVersion] = None - presigned: Optional[NeofsAuthmatePresigned] = None def __init__(self, shell: Shell, neofs_authmate_exec_path: str): self.secret = NeofsAuthmateSecret(shell, neofs_authmate_exec_path) self.version = NeofsAuthmateVersion(shell, neofs_authmate_exec_path) - self.presigned = NeofsAuthmatePresigned(shell, neofs_authmate_exec_path) diff --git a/neofs-testlib/neofs_testlib/cli/neofs_authmate/presigned.py b/neofs-testlib/neofs_testlib/cli/neofs_authmate/presigned.py deleted file mode 100644 index 0bf7fc1c7..000000000 --- a/neofs-testlib/neofs_testlib/cli/neofs_authmate/presigned.py +++ /dev/null @@ -1,33 +0,0 @@ -from neofs_testlib.cli.cli_command import CliCommand -from neofs_testlib.shell import CommandResult - - -class NeofsAuthmatePresigned(CliCommand): - def generate_presigned_url( - self, - endpoint: str, - method: str, - bucket: str, - object: str, - lifetime: str, - aws_secret_access_key: str, - aws_access_key_id: str, - ) -> CommandResult: - """Generate presigned URL - - Args: - endpoint: Endpoint of s3-gw - method: HTTP method to perform action - bucket: Bucket name to perform action - object: Object name to perform action - lifetime: Lifetime of presigned URL - aws-access-key-id: AWS access key id to sign the URL - aws-secret-access-key: AWS access secret access key to sign the URL - - Returns: - Command's result. - """ - return self._execute( - "generate-presigned-url", - **{param: param_value for param, param_value in locals().items() if param not in ["self"]}, - )