userver: pytest_userver.plugins.s3api.S3HandleMock Class Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.s3api.S3HandleMock Class Reference

Detailed Description

Definition at line 87 of file s3api.py.

Public Member Functions

 __init__ (self, mockserver, s3_mock_storage, mock_base_url)
 
 get_object (self, request)
 
 put_object (self, request)
 
 copy_object (self, request)
 
 get_objects (self, request)
 
 delete_object (self, request)
 
 get_object_head (self, request)
 

Protected Member Functions

 _get_bucket_name (self, request)
 
 _extract_key (self, request)
 
 _generate_get_objects_result (self, Dict[str, S3Object] s3_objects_dict, int max_keys, Optional[str] marker)
 
 _generate_get_objects_xml (self, List[S3Object] s3_objects, str bucket_name, str prefix, Optional[int] max_keys, Optional[str] marker, bool is_truncated)
 

Protected Attributes

 _mockserver
 
 _base_url
 
 _storage
 

Constructor & Destructor Documentation

◆ __init__()

pytest_userver.plugins.s3api.S3HandleMock.__init__ ( self,
mockserver,
s3_mock_storage,
mock_base_url )

Definition at line 88 of file s3api.py.

Member Function Documentation

◆ _extract_key()

pytest_userver.plugins.s3api.S3HandleMock._extract_key ( self,
request )
protected

Definition at line 96 of file s3api.py.

◆ _generate_get_objects_result()

pytest_userver.plugins.s3api.S3HandleMock._generate_get_objects_result ( self,
Dict[str, S3Object] s3_objects_dict,
int max_keys,
Optional[str] marker )
protected

Definition at line 99 of file s3api.py.

◆ _generate_get_objects_xml()

pytest_userver.plugins.s3api.S3HandleMock._generate_get_objects_xml ( self,
List[S3Object] s3_objects,
str bucket_name,
str prefix,
Optional[int] max_keys,
Optional[str] marker,
bool is_truncated )
protected

Definition at line 126 of file s3api.py.

◆ _get_bucket_name()

pytest_userver.plugins.s3api.S3HandleMock._get_bucket_name ( self,
request )
protected

Definition at line 93 of file s3api.py.

◆ copy_object()

pytest_userver.plugins.s3api.S3HandleMock.copy_object ( self,
request )

Definition at line 179 of file s3api.py.

◆ delete_object()

pytest_userver.plugins.s3api.S3HandleMock.delete_object ( self,
request )

Definition at line 216 of file s3api.py.

◆ get_object()

pytest_userver.plugins.s3api.S3HandleMock.get_object ( self,
request )

Definition at line 158 of file s3api.py.

◆ get_object_head()

pytest_userver.plugins.s3api.S3HandleMock.get_object_head ( self,
request )

Definition at line 225 of file s3api.py.

◆ get_objects()

pytest_userver.plugins.s3api.S3HandleMock.get_objects ( self,
request )

Definition at line 193 of file s3api.py.

◆ put_object()

pytest_userver.plugins.s3api.S3HandleMock.put_object ( self,
request )

Definition at line 170 of file s3api.py.

Member Data Documentation

◆ _base_url

pytest_userver.plugins.s3api.S3HandleMock._base_url
protected

Definition at line 90 of file s3api.py.

◆ _mockserver

pytest_userver.plugins.s3api.S3HandleMock._mockserver
protected

Definition at line 89 of file s3api.py.

◆ _storage

pytest_userver.plugins.s3api.S3HandleMock._storage
protected

Definition at line 91 of file s3api.py.


The documentation for this class was generated from the following file: