From 22b4a435e89b55ea7581bd01ae7378c2f66f5c3b Mon Sep 17 00:00:00 2001 From: Roman Chernykh Date: Mon, 11 Nov 2024 11:01:36 +0300 Subject: [PATCH] [OBJECT-10059] Fix signatures in boto3 and aws with iam_create_virtual_mfa_device methods --- src/frostfs_testlib/s3/aws_cli_client.py | 2 +- src/frostfs_testlib/s3/boto3_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frostfs_testlib/s3/aws_cli_client.py b/src/frostfs_testlib/s3/aws_cli_client.py index d94541c..ba95733 100644 --- a/src/frostfs_testlib/s3/aws_cli_client.py +++ b/src/frostfs_testlib/s3/aws_cli_client.py @@ -1443,7 +1443,7 @@ class AwsCliClient(S3ClientWrapper): # MFA METHODS @reporter.step("Creates a new virtual MFA device") - def iam_create_virtual_mfa_device(self, virtual_mfa_device_name: str, outfile: str, bootstrap_method: str) -> tuple[str, bool]: + def iam_create_virtual_mfa_device(self, virtual_mfa_device_name: str, outfile: str, bootstrap_method: str) -> tuple: cmd = f"aws {self.common_flags} iam create-virtual-mfa-device --virtual-mfa-device-name {virtual_mfa_device_name}\ --outfile {outfile} --bootstrap-method {bootstrap_method} --endpoint {self.iam_endpoint}" diff --git a/src/frostfs_testlib/s3/boto3_client.py b/src/frostfs_testlib/s3/boto3_client.py index 57e21d2..12113ad 100644 --- a/src/frostfs_testlib/s3/boto3_client.py +++ b/src/frostfs_testlib/s3/boto3_client.py @@ -1280,7 +1280,7 @@ class Boto3ClientWrapper(S3ClientWrapper): @reporter.step("Creates a new virtual MFA device") def iam_create_virtual_mfa_device( self, virtual_mfa_device_name: str, outfile: Optional[str] = None, bootstrap_method: Optional[str] = None - ) -> dict: + ) -> tuple: response = self.boto3_iam_client.create_virtual_mfa_device(VirtualMFADeviceName=virtual_mfa_device_name) serial_number = response.get("VirtualMFADevice", {}).get("SerialNumber")