Skip to content

Commit

Permalink
[Storage] Fix more flaky lease tests (#25011)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalauzon-msft authored Jun 28, 2022
1 parent 05d7b41 commit 66dd3be
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ interactions:
body: null
headers:
Accept:
- '*/*'
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
- azsdk-python-storage-file-share/12.9.0 Python/3.10.4 (Windows-10-10.0.17763-SP0)
x-ms-date:
- Fri, 11 Sep 2020 01:36:00 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
x-ms-version:
- '2020-02-10'
- '2021-06-08'
method: PUT
uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share
response:
Expand All @@ -25,41 +25,41 @@ interactions:
content-length:
- '0'
date:
- Fri, 11 Sep 2020 01:36:01 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
etag:
- '"0x8D855F30A798EAA"'
- '"0x8DA5935D00F2703"'
last-modified:
- Fri, 11 Sep 2020 01:36:01 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-02-10'
- '2021-06-08'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
- azsdk-python-storage-file-share/12.9.0 Python/3.10.4 (Windows-10-10.0.17763-SP0)
x-ms-date:
- Fri, 11 Sep 2020 01:36:00 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
x-ms-lease-action:
- acquire
x-ms-lease-duration:
- '15'
x-ms-proposed-lease-id:
- 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc
- c1a3c5c3-515b-4a2a-b87a-ef4990e2b78b
x-ms-version:
- '2020-02-10'
- '2021-06-08'
method: PUT
uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share
response:
Expand All @@ -69,41 +69,41 @@ interactions:
content-length:
- '0'
date:
- Fri, 11 Sep 2020 01:36:01 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
etag:
- '"0x8D855F30A798EAA"'
- '"0x8DA5935D00F2703"'
last-modified:
- Fri, 11 Sep 2020 01:36:01 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-id:
- 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc
- c1a3c5c3-515b-4a2a-b87a-ef4990e2b78b
x-ms-version:
- '2020-02-10'
- '2021-06-08'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
- azsdk-python-storage-file-share/12.9.0 Python/3.10.4 (Windows-10-10.0.17763-SP0)
x-ms-date:
- Fri, 11 Sep 2020 01:36:11 GMT
- Tue, 28 Jun 2022 18:41:39 GMT
x-ms-lease-action:
- renew
x-ms-lease-id:
- 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc
- c1a3c5c3-515b-4a2a-b87a-ef4990e2b78b
x-ms-version:
- '2020-02-10'
- '2021-06-08'
method: PUT
uri: https://storagename.file.core.windows.net/teste5000d7c?comp=lease&restype=share
response:
Expand All @@ -113,57 +113,57 @@ interactions:
content-length:
- '0'
date:
- Fri, 11 Sep 2020 01:36:11 GMT
- Tue, 28 Jun 2022 18:41:38 GMT
etag:
- '"0x8D855F30A798EAA"'
- '"0x8DA5935D00F2703"'
last-modified:
- Fri, 11 Sep 2020 01:36:01 GMT
- Tue, 28 Jun 2022 18:41:28 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-id:
- 7cd92f71-8e6c-4efa-8b16-47fa75cd82cc
- c1a3c5c3-515b-4a2a-b87a-ef4990e2b78b
x-ms-version:
- '2020-02-10'
- '2021-06-08'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- '*/*'
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
- azsdk-python-storage-file-share/12.9.0 Python/3.10.4 (Windows-10-10.0.17763-SP0)
x-ms-date:
- Fri, 11 Sep 2020 01:36:16 GMT
- Tue, 28 Jun 2022 18:41:44 GMT
x-ms-version:
- '2020-02-10'
- '2021-06-08'
method: DELETE
uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>LeaseIdMissing</Code><Message>There
is currently a lease on the file share and no lease ID was specified in the
request.\nRequestId:b32790a3-701a-003e-47db-874dbd000000\nTime:2020-09-11T01:36:16.8688480Z</Message></Error>"
request.\nRequestId:e04b5981-401a-0068-021e-8bbc52000000\nTime:2022-06-28T18:41:45.4102147Z</Message></Error>"
headers:
content-length:
- '273'
content-type:
- application/xml
date:
- Fri, 11 Sep 2020 01:36:16 GMT
- Tue, 28 Jun 2022 18:41:44 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-error-code:
- LeaseIdMissing
x-ms-version:
- '2020-02-10'
- '2021-06-08'
status:
code: 412
message: There is currently a lease on the file share and no lease ID was specified
Expand All @@ -172,19 +172,19 @@ interactions:
body: null
headers:
Accept:
- '*/*'
- application/xml
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-file-share/12.2.0 Python/3.8.5 (Windows-10-10.0.18362-SP0)
- azsdk-python-storage-file-share/12.9.0 Python/3.10.4 (Windows-10-10.0.17763-SP0)
x-ms-date:
- Fri, 11 Sep 2020 01:36:26 GMT
- Tue, 28 Jun 2022 18:41:57 GMT
x-ms-version:
- '2020-02-10'
- '2021-06-08'
method: DELETE
uri: https://storagename.file.core.windows.net/teste5000d7c?restype=share
response:
Expand All @@ -194,11 +194,11 @@ interactions:
content-length:
- '0'
date:
- Fri, 11 Sep 2020 01:36:26 GMT
- Tue, 28 Jun 2022 18:41:57 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2020-02-10'
- '2021-06-08'
status:
code: 202
message: Accepted
Expand Down
Loading

0 comments on commit 66dd3be

Please sign in to comment.