Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added unit test for get properties with lat
  • Loading branch information
tasherif-msft committed Aug 31, 2020
commit afde8aeebfabc2df681adf0bc30a1a2889864fe6
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def __init__(self, **kwargs):
self.request_server_encrypted = kwargs.get('x-ms-server-encrypted')
self.object_replication_source_properties = kwargs.get('object_replication_source_properties')
self.object_replication_destination_policy = kwargs.get('x-ms-or-policy-id')
self.last_accessed_on = kwargs.get('x-ms-last-accessed-time')
self.last_accessed_on = kwargs.get('x-ms-last-access-time')
self.tag_count = kwargs.get('x-ms-tag-count')
self.tags = None

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,290 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-date:
- Mon, 31 Aug 2020 04:37:35 GMT
x-ms-version:
- '2020-02-10'
method: PUT
uri: https://storagename.blob.core.windows.net/utcontainer56131a54?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 31 Aug 2020 04:38:01 GMT
etag:
- '"0x8D84D6795BE4D15"'
last-modified:
- Mon, 31 Aug 2020 04:37:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-02-10'
status:
code: 201
message: Created
- request:
body: hello world
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '11'
Content-Type:
- application/octet-stream
If-None-Match:
- '*'
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-blob-type:
- BlockBlob
x-ms-date:
- Mon, 31 Aug 2020 04:38:01 GMT
x-ms-version:
- '2020-02-10'
method: PUT
uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- XrY7u+Ae7tCTyyK7j1rNww==
date:
- Mon, 31 Aug 2020 04:38:01 GMT
etag:
- '"0x8D84D67A4FA4E74"'
last-modified:
- Mon, 31 Aug 2020 04:38:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-content-crc64:
- vo7q9sPVKY0=
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-02-10'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-date:
- Mon, 31 Aug 2020 04:38:02 GMT
x-ms-version:
- '2020-02-10'
method: HEAD
uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1
response:
body:
string: ''
headers:
accept-ranges:
- bytes
content-length:
- '11'
content-md5:
- XrY7u+Ae7tCTyyK7j1rNww==
content-type:
- application/octet-stream
date:
- Mon, 31 Aug 2020 04:38:01 GMT
etag:
- '"0x8D84D67A4FA4E74"'
last-modified:
- Mon, 31 Aug 2020 04:38:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-access-tier:
- Hot
x-ms-access-tier-inferred:
- 'true'
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Mon, 31 Aug 2020 04:38:01 GMT
x-ms-last-access-time:
- Mon, 31 Aug 2020 04:38:01 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2020-02-10'
status:
code: 200
message: OK
- request:
body: this is test content
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '20'
Content-Type:
- application/octet-stream
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-date:
- Mon, 31 Aug 2020 04:38:02 GMT
x-ms-version:
- '2020-02-10'
method: PUT
uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1?blockid=MQ%3D%3D&comp=block
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 31 Aug 2020 04:38:02 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-content-crc64:
- wae/Ns62JRA=
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-02-10'
status:
code: 201
message: Created
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>

<BlockList><Latest>MQ==</Latest></BlockList>'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '83'
Content-Type:
- application/xml; charset=utf-8
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-date:
- Mon, 31 Aug 2020 04:38:02 GMT
x-ms-version:
- '2020-02-10'
method: PUT
uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1?comp=blocklist
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Mon, 31 Aug 2020 04:38:02 GMT
etag:
- '"0x8D84D67A5AE07DE"'
last-modified:
- Mon, 31 Aug 2020 04:38:02 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-content-crc64:
- iEgKfcNWGmY=
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2020-02-10'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
x-ms-date:
- Mon, 31 Aug 2020 04:38:03 GMT
x-ms-version:
- '2020-02-10'
method: HEAD
uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1
response:
body:
string: ''
headers:
accept-ranges:
- bytes
content-length:
- '20'
content-type:
- application/octet-stream
date:
- Mon, 31 Aug 2020 04:38:02 GMT
etag:
- '"0x8D84D67A5AE07DE"'
last-modified:
- Mon, 31 Aug 2020 04:38:02 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-access-tier:
- Hot
x-ms-access-tier-inferred:
- 'true'
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Mon, 31 Aug 2020 04:38:01 GMT
x-ms-last-access-time:
- Mon, 31 Aug 2020 04:38:02 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2020-02-10'
status:
code: 200
message: OK
version: 1
Loading