Skip to content

Commit 1660d16

Browse files
Bump up difference in timing tolerance (Azure#24860)
1 parent 57c99dc commit 1660d16

File tree

4 files changed

+42
-42
lines changed

4 files changed

+42
-42
lines changed

sdk/storage/azure-storage-file-datalake/tests/recordings/test_file.test_create_file_relative_expiry.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interactions:
1313
User-Agent:
1414
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
1515
x-ms-date:
16-
- Wed, 01 Jun 2022 23:43:23 GMT
16+
- Wed, 15 Jun 2022 18:42:42 GMT
1717
x-ms-version:
1818
- '2021-08-06'
1919
method: PUT
@@ -25,11 +25,11 @@ interactions:
2525
content-length:
2626
- '0'
2727
date:
28-
- Wed, 01 Jun 2022 23:43:23 GMT
28+
- Wed, 15 Jun 2022 18:42:41 GMT
2929
etag:
30-
- '"0x8DA44288427ACD7"'
30+
- '"0x8DA4EFED492B2C4"'
3131
last-modified:
32-
- Wed, 01 Jun 2022 23:43:23 GMT
32+
- Wed, 15 Jun 2022 18:42:42 GMT
3333
server:
3434
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
3535
x-ms-version:
@@ -51,7 +51,7 @@ interactions:
5151
User-Agent:
5252
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
5353
x-ms-date:
54-
- Wed, 01 Jun 2022 23:43:23 GMT
54+
- Wed, 15 Jun 2022 18:42:42 GMT
5555
x-ms-version:
5656
- '2021-08-06'
5757
method: PUT
@@ -63,11 +63,11 @@ interactions:
6363
content-length:
6464
- '0'
6565
date:
66-
- Wed, 01 Jun 2022 23:43:23 GMT
66+
- Wed, 15 Jun 2022 18:42:42 GMT
6767
etag:
68-
- '"0x8DA4428845D302E"'
68+
- '"0x8DA4EFED4EC56D5"'
6969
last-modified:
70-
- Wed, 01 Jun 2022 23:43:23 GMT
70+
- Wed, 15 Jun 2022 18:42:42 GMT
7171
server:
7272
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
7373
x-ms-request-server-encrypted:
@@ -91,7 +91,7 @@ interactions:
9191
User-Agent:
9292
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
9393
x-ms-date:
94-
- Wed, 01 Jun 2022 23:43:23 GMT
94+
- Wed, 15 Jun 2022 18:42:43 GMT
9595
x-ms-expiry-option:
9696
- RelativeToNow
9797
x-ms-expiry-time:
@@ -107,11 +107,11 @@ interactions:
107107
content-length:
108108
- '0'
109109
date:
110-
- Wed, 01 Jun 2022 23:43:23 GMT
110+
- Wed, 15 Jun 2022 18:42:42 GMT
111111
etag:
112-
- '"0x8DA4428846F140A"'
112+
- '"0x8DA4EFED4FBA241"'
113113
last-modified:
114-
- Wed, 01 Jun 2022 23:43:23 GMT
114+
- Wed, 15 Jun 2022 18:42:42 GMT
115115
server:
116116
- Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
117117
x-ms-request-server-encrypted:
@@ -133,7 +133,7 @@ interactions:
133133
User-Agent:
134134
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
135135
x-ms-date:
136-
- Wed, 01 Jun 2022 23:43:24 GMT
136+
- Wed, 15 Jun 2022 18:42:43 GMT
137137
x-ms-version:
138138
- '2021-08-06'
139139
method: HEAD
@@ -149,11 +149,11 @@ interactions:
149149
content-type:
150150
- application/octet-stream
151151
date:
152-
- Wed, 01 Jun 2022 23:43:23 GMT
152+
- Wed, 15 Jun 2022 18:42:42 GMT
153153
etag:
154-
- '"0x8DA4428846F140A"'
154+
- '"0x8DA4EFED4FBA241"'
155155
last-modified:
156-
- Wed, 01 Jun 2022 23:43:23 GMT
156+
- Wed, 15 Jun 2022 18:42:42 GMT
157157
server:
158158
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
159159
x-ms-access-tier:
@@ -163,9 +163,9 @@ interactions:
163163
x-ms-blob-type:
164164
- BlockBlob
165165
x-ms-creation-time:
166-
- Wed, 01 Jun 2022 23:43:23 GMT
166+
- Wed, 15 Jun 2022 18:42:42 GMT
167167
x-ms-expiry-time:
168-
- Thu, 02 Jun 2022 23:43:23 GMT
168+
- Thu, 16 Jun 2022 18:42:42 GMT
169169
x-ms-group:
170170
- $superuser
171171
x-ms-lease-state:
@@ -199,7 +199,7 @@ interactions:
199199
User-Agent:
200200
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
201201
x-ms-date:
202-
- Wed, 01 Jun 2022 23:43:24 GMT
202+
- Wed, 15 Jun 2022 18:42:43 GMT
203203
x-ms-version:
204204
- '2021-08-06'
205205
method: DELETE
@@ -211,7 +211,7 @@ interactions:
211211
content-length:
212212
- '0'
213213
date:
214-
- Wed, 01 Jun 2022 23:43:23 GMT
214+
- Wed, 15 Jun 2022 18:42:42 GMT
215215
server:
216216
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
217217
x-ms-version:

sdk/storage/azure-storage-file-datalake/tests/recordings/test_file_async.test_create_file_relative_expiry_async.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
User-Agent:
88
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
99
x-ms-date:
10-
- Wed, 01 Jun 2022 23:45:40 GMT
10+
- Wed, 15 Jun 2022 18:43:04 GMT
1111
x-ms-version:
1212
- '2021-08-06'
1313
method: PUT
@@ -17,9 +17,9 @@ interactions:
1717
string: ''
1818
headers:
1919
content-length: '0'
20-
date: Wed, 01 Jun 2022 23:45:40 GMT
21-
etag: '"0x8DA4428D5E2DBD3"'
22-
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
20+
date: Wed, 15 Jun 2022 18:43:03 GMT
21+
etag: '"0x8DA4EFEE1B22D8F"'
22+
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
2323
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
2424
x-ms-version: '2021-08-06'
2525
status:
@@ -34,7 +34,7 @@ interactions:
3434
User-Agent:
3535
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
3636
x-ms-date:
37-
- Wed, 01 Jun 2022 23:45:40 GMT
37+
- Wed, 15 Jun 2022 18:43:04 GMT
3838
x-ms-version:
3939
- '2021-08-06'
4040
method: PUT
@@ -44,9 +44,9 @@ interactions:
4444
string: ''
4545
headers:
4646
content-length: '0'
47-
date: Wed, 01 Jun 2022 23:45:40 GMT
48-
etag: '"0x8DA4428D61781F4"'
49-
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
47+
date: Wed, 15 Jun 2022 18:43:03 GMT
48+
etag: '"0x8DA4EFEE1E11C5D"'
49+
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
5050
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
5151
x-ms-request-server-encrypted: 'true'
5252
x-ms-version: '2021-08-06'
@@ -62,7 +62,7 @@ interactions:
6262
User-Agent:
6363
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
6464
x-ms-date:
65-
- Wed, 01 Jun 2022 23:45:41 GMT
65+
- Wed, 15 Jun 2022 18:43:04 GMT
6666
x-ms-expiry-option:
6767
- RelativeToNow
6868
x-ms-expiry-time:
@@ -76,9 +76,9 @@ interactions:
7676
string: ''
7777
headers:
7878
content-length: '0'
79-
date: Wed, 01 Jun 2022 23:45:40 GMT
80-
etag: '"0x8DA4428D624E786"'
81-
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
79+
date: Wed, 15 Jun 2022 18:43:03 GMT
80+
etag: '"0x8DA4EFEE1F20187"'
81+
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
8282
server: Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0
8383
x-ms-request-server-encrypted: 'true'
8484
x-ms-version: '2021-08-06'
@@ -94,7 +94,7 @@ interactions:
9494
User-Agent:
9595
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
9696
x-ms-date:
97-
- Wed, 01 Jun 2022 23:45:41 GMT
97+
- Wed, 15 Jun 2022 18:43:05 GMT
9898
x-ms-version:
9999
- '2021-08-06'
100100
method: HEAD
@@ -106,15 +106,15 @@ interactions:
106106
accept-ranges: bytes
107107
content-length: '0'
108108
content-type: application/octet-stream
109-
date: Wed, 01 Jun 2022 23:45:40 GMT
110-
etag: '"0x8DA4428D624E786"'
111-
last-modified: Wed, 01 Jun 2022 23:45:40 GMT
109+
date: Wed, 15 Jun 2022 18:43:03 GMT
110+
etag: '"0x8DA4EFEE1F20187"'
111+
last-modified: Wed, 15 Jun 2022 18:43:04 GMT
112112
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
113113
x-ms-access-tier: Hot
114114
x-ms-access-tier-inferred: 'true'
115115
x-ms-blob-type: BlockBlob
116-
x-ms-creation-time: Wed, 01 Jun 2022 23:45:40 GMT
117-
x-ms-expiry-time: Thu, 02 Jun 2022 23:45:40 GMT
116+
x-ms-creation-time: Wed, 15 Jun 2022 18:43:04 GMT
117+
x-ms-expiry-time: Thu, 16 Jun 2022 18:43:04 GMT
118118
x-ms-group: $superuser
119119
x-ms-lease-state: available
120120
x-ms-lease-status: unlocked
@@ -135,7 +135,7 @@ interactions:
135135
User-Agent:
136136
- azsdk-python-storage-dfs/12.8.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
137137
x-ms-date:
138-
- Wed, 01 Jun 2022 23:45:41 GMT
138+
- Wed, 15 Jun 2022 18:43:05 GMT
139139
x-ms-version:
140140
- '2021-08-06'
141141
method: DELETE
@@ -145,7 +145,7 @@ interactions:
145145
string: ''
146146
headers:
147147
content-length: '0'
148-
date: Wed, 01 Jun 2022 23:45:40 GMT
148+
date: Wed, 15 Jun 2022 18:43:03 GMT
149149
server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
150150
x-ms-version: '2021-08-06'
151151
status:

sdk/storage/azure-storage-file-datalake/tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_create_file_relative_expiry(self, datalake_storage_account_name, datala
163163
creation_time = file_properties['creation_time']
164164
creation_time = creation_time.replace(tzinfo=None) # Strip timezone info to be able to compare
165165
self.assertIsNotNone(file_properties)
166-
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=1))
166+
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=60))
167167

168168
@DataLakePreparer()
169169
def test_create_file_absolute_expiry(self, datalake_storage_account_name, datalake_storage_account_key):

sdk/storage/azure-storage-file-datalake/tests/test_file_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ async def test_create_file_relative_expiry_async(self, datalake_storage_account_
170170
creation_time = file_properties['creation_time']
171171
creation_time = creation_time.replace(tzinfo=None) # Strip timezone info to be able to compare
172172
self.assertIsNotNone(file_properties)
173-
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=1))
173+
self.assertAlmostEqual(expiry_time, creation_time + timedelta(days=1), delta=timedelta(seconds=60))
174174

175175
@DataLakePreparer()
176176
async def test_create_file_absolute_expiry_async(self, datalake_storage_account_name, datalake_storage_account_key):

0 commit comments

Comments
 (0)