From 1660d16847761bd4691f5b22eee37c378467fafa Mon Sep 17 00:00:00 2001 From: vincenttran-msft <101599632+vincenttran-msft@users.noreply.github.com> Date: Wed, 15 Jun 2022 13:31:57 -0700 Subject: [PATCH] Bump up difference in timing tolerance (#24860) --- ...file.test_create_file_relative_expiry.yaml | 40 +++++++++---------- ...est_create_file_relative_expiry_async.yaml | 40 +++++++++---------- .../tests/test_file.py | 2 +- .../tests/test_file_async.py | 2 +- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_relative_expiry.yaml b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_relative_expiry.yaml index d630f47dc284..0df598dc2a11 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_relative_expiry.yaml +++ b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_relative_expiry.yaml @@ -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 @@ -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: @@ -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 @@ -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: @@ -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: @@ -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: @@ -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 @@ -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: @@ -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: @@ -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 @@ -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: diff --git a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_relative_expiry_async.yaml b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_relative_expiry_async.yaml index bb943994d249..e039356b9c1a 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_relative_expiry_async.yaml +++ b/sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_relative_expiry_async.yaml @@ -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 @@ -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: @@ -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 @@ -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' @@ -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: @@ -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' @@ -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 @@ -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 @@ -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 @@ -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: diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file.py b/sdk/storage/azure-storage-file-datalake/tests/test_file.py index 8b7481ac48e5..293e7e0135e0 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file.py @@ -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): diff --git a/sdk/storage/azure-storage-file-datalake/tests/test_file_async.py b/sdk/storage/azure-storage-file-datalake/tests/test_file_async.py index ee8fdde944dd..eaed5b71b03e 100644 --- a/sdk/storage/azure-storage-file-datalake/tests/test_file_async.py +++ b/sdk/storage/azure-storage-file-datalake/tests/test_file_async.py @@ -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):