Skip to content

Commit

Permalink
Storage Recordings For Queues and Files (#6629)
Browse files Browse the repository at this point in the history
* initial commit

* recordings

* fix all tests

* update queue recordings

* file recordings

* queue recordings

* fix for encoding tests

* small fix

* change conftest

* remove recordings

* oops

* new recordings

* some fixes

* more fixes

* and more fixes

* and one more fix
  • Loading branch information
Rakshith Bhyravabhotla authored Aug 4, 2019
1 parent 050fa0c commit 48d2651
Show file tree
Hide file tree
Showing 428 changed files with 113,777 additions and 52,402 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def _get_next_cb(self, continuation_token):
return self._command(
marker=continuation_token or None,
maxresults=self.results_per_page,
prefix=self.prefix,
cls=return_context_and_deserialized,
use_location=self.location_mode)
except StorageErrorException as error:
Expand Down
3 changes: 2 additions & 1 deletion sdk/storage/azure-storage-file/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

import sys
import pytest
import platform


# Ignore async tests for Python < 3.5
collect_ignore_glob = []
if sys.version_info < (3, 5):
if sys.version_info < (3, 5) or platform.python_implementation() == 'PyPy':
collect_ignore_glob.append("tests/*_async.py")
Original file line number Diff line number Diff line change
Expand Up @@ -11,99 +11,13 @@ interactions:
Content-Length:
- '0'
User-Agent:
- python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1
- azsdk-python-storage-file/12.0.0b1 Python/3.7.3 (Windows-10-10.0.17763-SP0)
content-type:
- application/xml; charset=utf-8
x-ms-client-request-id:
- aea65914-97ce-11e9-b216-f45c89a7d159
- 2014dad4-b636-11e9-aeb9-2816a845e8c6
x-ms-date:
- Wed, 26 Jun 2019 04:55:56 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://blobstoragename.file.core.windows.net/utshare32270fb2/dir1?restype=directory
response:
body:
string: ''
headers:
Content-Length:
- '0'
Date:
- Wed, 26 Jun 2019 04:55:56 GMT
ETag:
- '"0x8D6F9F293720FF1"'
Last-Modified:
- Wed, 26 Jun 2019 04:55:57 GMT
Server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id:
- 0d366237-d01a-00a2-12db-2ba99c000000
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1
x-ms-client-request-id:
- 040dd5e8-981b-11e9-85b7-f45c89a7d159
x-ms-date:
- Wed, 26 Jun 2019 14:02:21 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://storagename.file.core.windows.net/utshare32270fb2/dir1?restype=directory
response:
body:
string: ''
headers:
Content-Length:
- '0'
Date:
- Wed, 26 Jun 2019 14:02:21 GMT
ETag:
- '"0x8D6FA3EE87A5B55"'
Last-Modified:
- Wed, 26 Jun 2019 14:02:21 GMT
Server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id:
- 471f956e-c01a-00b6-5027-2c6af8000000
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- python/3.6.5 (Darwin-16.7.0-x86_64-i386-64bit) azure-core/0.0.1
x-ms-client-request-id:
- 9ef59190-981b-11e9-8af4-f45c89a7d159
x-ms-date:
- Wed, 26 Jun 2019 14:06:40 GMT
- Sat, 03 Aug 2019 21:31:59 GMT
x-ms-version:
- '2018-11-09'
method: PUT
Expand All @@ -115,15 +29,15 @@ interactions:
Content-Length:
- '0'
Date:
- Wed, 26 Jun 2019 14:06:40 GMT
- Sat, 03 Aug 2019 21:31:58 GMT
ETag:
- '"0x8D6FA3F835882E0"'
- '"0x8D7185A03D3BF22"'
Last-Modified:
- Wed, 26 Jun 2019 14:06:41 GMT
- Sat, 03 Aug 2019 21:31:58 GMT
Server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id:
- 5d17b141-701a-008d-2928-2c28a6000000
- 54958223-a01a-00cb-6542-4af630000000
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
Expand Down
Loading

0 comments on commit 48d2651

Please sign in to comment.