Skip to content

Commit

Permalink
Bump up difference in timing tolerance (#24860)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenttran-msft authored Jun 15, 2022
1 parent 57c99dc commit 1660d16
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
x-ms-version:
- '2021-08-06'
method: PUT
Expand All @@ -25,11 +25,11 @@ interactions:
content-length:
- '0'
date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:41 GMT
etag:
- '"0x8DA44288427ACD7"'
- '"0x8DA4EFED492B2C4"'
last-modified:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
Expand All @@ -51,7 +51,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
x-ms-version:
- '2021-08-06'
method: PUT
Expand All @@ -63,11 +63,11 @@ interactions:
content-length:
- '0'
date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
etag:
- '"0x8DA4428845D302E"'
- '"0x8DA4EFED4EC56D5"'
last-modified:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
server:
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
Expand All @@ -91,7 +91,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:43 GMT
x-ms-expiry-option:
- RelativeToNow
x-ms-expiry-time:
Expand All @@ -107,11 +107,11 @@ interactions:
content-length:
- '0'
date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
etag:
- '"0x8DA4428846F140A"'
- '"0x8DA4EFED4FBA241"'
last-modified:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
server:
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
Expand All @@ -133,7 +133,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:43:24 GMT
- Wed, 15 Jun 2022 18:42:43 GMT
x-ms-version:
- '2021-08-06'
method: HEAD
Expand All @@ -149,11 +149,11 @@ interactions:
content-type:
- application/octet-stream
date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
etag:
- '"0x8DA4428846F140A"'
- '"0x8DA4EFED4FBA241"'
last-modified:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-access-tier:
Expand All @@ -163,9 +163,9 @@ interactions:
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
x-ms-expiry-time:
- Thu, 02 Jun 2022 23:43:23 GMT
- Thu, 16 Jun 2022 18:42:42 GMT
x-ms-group:
- $superuser
x-ms-lease-state:
Expand Down Expand Up @@ -199,7 +199,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:43:24 GMT
- Wed, 15 Jun 2022 18:42:43 GMT
x-ms-version:
- '2021-08-06'
method: DELETE
Expand All @@ -211,7 +211,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 01 Jun 2022 23:43:23 GMT
- Wed, 15 Jun 2022 18:42:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:45:40 GMT
- Wed, 15 Jun 2022 18:43:04 GMT
x-ms-version:
- '2021-08-06'
method: PUT
Expand All @@ -17,9 +17,9 @@ interactions:
string: ''
headers:
content-length: '0'
date: Wed, 01 Jun 2022 23:45:40 GMT
etag: '"0x8DA4428D5E2DBD3"'
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
date: Wed, 15 Jun 2022 18:43:03 GMT
etag: '"0x8DA4EFEE1B22D8F"'
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version: '2021-08-06'
status:
Expand All @@ -34,7 +34,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:45:40 GMT
- Wed, 15 Jun 2022 18:43:04 GMT
x-ms-version:
- '2021-08-06'
method: PUT
Expand All @@ -44,9 +44,9 @@ interactions:
string: ''
headers:
content-length: '0'
date: Wed, 01 Jun 2022 23:45:40 GMT
etag: '"0x8DA4428D61781F4"'
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
date: Wed, 15 Jun 2022 18:43:03 GMT
etag: '"0x8DA4EFEE1E11C5D"'
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted: 'true'
x-ms-version: '2021-08-06'
Expand All @@ -62,7 +62,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:45:41 GMT
- Wed, 15 Jun 2022 18:43:04 GMT
x-ms-expiry-option:
- RelativeToNow
x-ms-expiry-time:
Expand All @@ -76,9 +76,9 @@ interactions:
string: ''
headers:
content-length: '0'
date: Wed, 01 Jun 2022 23:45:40 GMT
etag: '"0x8DA4428D624E786"'
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
date: Wed, 15 Jun 2022 18:43:03 GMT
etag: '"0x8DA4EFEE1F20187"'
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted: 'true'
x-ms-version: '2021-08-06'
Expand All @@ -94,7 +94,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:45:41 GMT
- Wed, 15 Jun 2022 18:43:05 GMT
x-ms-version:
- '2021-08-06'
method: HEAD
Expand All @@ -106,15 +106,15 @@ interactions:
accept-ranges: bytes
content-length: '0'
content-type: application/octet-stream
date: Wed, 01 Jun 2022 23:45:40 GMT
etag: '"0x8DA4428D624E786"'
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
date: Wed, 15 Jun 2022 18:43:03 GMT
etag: '"0x8DA4EFEE1F20187"'
last-modified: Wed, 15 Jun 2022 18:43:04 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: Wed, 01 Jun 2022 23:45:40 GMT
x-ms-expiry-time: Thu, 02 Jun 2022 23:45:40 GMT
x-ms-creation-time: Wed, 15 Jun 2022 18:43:04 GMT
x-ms-expiry-time: Thu, 16 Jun 2022 18:43:04 GMT
x-ms-group: $superuser
x-ms-lease-state: available
x-ms-lease-status: unlocked
Expand All @@ -135,7 +135,7 @@ interactions:
User-Agent:
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
x-ms-date:
- Wed, 01 Jun 2022 23:45:41 GMT
- Wed, 15 Jun 2022 18:43:05 GMT
x-ms-version:
- '2021-08-06'
method: DELETE
Expand All @@ -145,7 +145,7 @@ interactions:
string: ''
headers:
content-length: '0'
date: Wed, 01 Jun 2022 23:45:40 GMT
date: Wed, 15 Jun 2022 18:43:03 GMT
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version: '2021-08-06'
status:
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-file-datalake/tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_create_file_relative_expiry(self, datalake_storage_account_name, datala
creation_time = file_properties['creation_time']
creation_time = creation_time.replace(tzinfo=None) # Strip timezone info to be able to compare
self.assertIsNotNone(file_properties)
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=1))
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=60))

@DataLakePreparer()
def test_create_file_absolute_expiry(self, datalake_storage_account_name, datalake_storage_account_key):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def test_create_file_relative_expiry_async(self, datalake_storage_account_
creation_time = file_properties['creation_time']
creation_time = creation_time.replace(tzinfo=None) # Strip timezone info to be able to compare
self.assertIsNotNone(file_properties)
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=1))
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=60))

@DataLakePreparer()
async def test_create_file_absolute_expiry_async(self, datalake_storage_account_name, datalake_storage_account_key):
Expand Down

0 comments on commit 1660d16

Please sign in to comment.