[#371] Add IAM and STS clients to boto3-stubs #371
3 changed files with 7 additions and 5 deletions
|
@ -28,7 +28,7 @@ dependencies = [
|
||||||
"pytest==7.1.2",
|
"pytest==7.1.2",
|
||||||
"tenacity==8.0.1",
|
"tenacity==8.0.1",
|
||||||
"boto3==1.35.30",
|
"boto3==1.35.30",
|
||||||
"boto3-stubs[essential]==1.35.30",
|
"boto3-stubs[s3,iam,sts]==1.35.30",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ testrail-api==1.12.0
|
||||||
tenacity==8.0.1
|
tenacity==8.0.1
|
||||||
pytest==7.1.2
|
pytest==7.1.2
|
||||||
boto3==1.35.30
|
boto3==1.35.30
|
||||||
boto3-stubs[essential]==1.35.30
|
boto3-stubs[s3,iam,sts]==1.35.30
|
||||||
pydantic==2.10.6
|
pydantic==2.10.6
|
||||||
|
|
||||||
# Dev dependencies
|
# Dev dependencies
|
||||||
|
|
|
@ -10,7 +10,9 @@ import boto3
|
||||||
import urllib3
|
import urllib3
|
||||||
from botocore.config import Config
|
from botocore.config import Config
|
||||||
from botocore.exceptions import ClientError
|
from botocore.exceptions import ClientError
|
||||||
|
from mypy_boto3_iam import IAMClient
|
||||||
from mypy_boto3_s3 import S3Client
|
from mypy_boto3_s3 import S3Client
|
||||||
|
from mypy_boto3_sts import STSClient
|
||||||
|
|
||||||
from frostfs_testlib import reporter
|
from frostfs_testlib import reporter
|
||||||
from frostfs_testlib.clients.s3.interfaces import S3ClientWrapper, VersioningStatus, _make_objs_dict
|
from frostfs_testlib.clients.s3.interfaces import S3ClientWrapper, VersioningStatus, _make_objs_dict
|
||||||
|
@ -39,8 +41,8 @@ class Boto3ClientWrapper(S3ClientWrapper):
|
||||||
self.boto3_client: S3Client = None
|
self.boto3_client: S3Client = None
|
||||||
|
|
||||||
self.iam_endpoint: str = ""
|
self.iam_endpoint: str = ""
|
||||||
self.boto3_iam_client: S3Client = None
|
self.boto3_iam_client: IAMClient = None
|
||||||
self.boto3_sts_client: S3Client = None
|
self.boto3_sts_client: STSClient = None
|
||||||
|
|
||||||
self.access_key_id = access_key_id
|
self.access_key_id = access_key_id
|
||||||
self.secret_access_key = secret_access_key
|
self.secret_access_key = secret_access_key
|
||||||
|
|
Loading…
Add table
Reference in a new issue