diff --git a/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_create_largest_file.json b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_create_largest_file.json index 2a386dbc13ab..b8c8e041de95 100644 --- a/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_create_largest_file.json +++ b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_create_largest_file.json @@ -2,7 +2,7 @@ "recordings": [ { "method": "PUT", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140", "query": { "restype": "share" }, @@ -10,19 +10,17 @@ "status": 201, "response": "", "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:39 GMT", - "etag": "\"0x8D8143D35B3FBFC\"", - "last-modified": "Fri, 19 Jun 2020 10:40:39 GMT", + "etag": "\"0x8D8556C04500287\"", + "last-modified": "Thu, 10 Sep 2020 09:29:29 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "32aeb514-7625-4bf8-85ea-85f5a263b56b", - "x-ms-request-id": "9e66eb6e-c01a-005a-2526-4650ab000000", - "x-ms-version": "2019-12-12" + "x-ms-client-request-id": "445f5d50-a7da-43d7-93b7-c417cb182858", + "x-ms-request-id": "da0f1528-601a-0017-2354-87212a000000", + "x-ms-version": "2020-02-10" } }, { "method": "PUT", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555/dir159256324113807688", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140/dir159973016984001088", "query": { "restype": "directory" }, @@ -30,74 +28,49 @@ "status": 201, "response": "", "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:39 GMT", - "etag": "\"0x8D8143D360D452D\"", - "last-modified": "Fri, 19 Jun 2020 10:40:40 GMT", + "etag": "\"0x8D8556C04A60786\"", + "last-modified": "Thu, 10 Sep 2020 09:29:29 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "10f055e2-f719-4cac-ae61-85f7c99ba156", + "x-ms-client-request-id": "e005a8c3-09f9-473f-9bfa-d78fdaa59438", "x-ms-file-attributes": "Directory", - "x-ms-file-change-time": "2020-06-19T10:40:40.5325101Z", - "x-ms-file-creation-time": "2020-06-19T10:40:40.5325101Z", + "x-ms-file-change-time": "2020-09-10T09:29:29.5743878Z", + "x-ms-file-creation-time": "2020-09-10T09:29:29.5743878Z", "x-ms-file-id": "13835128424026341376", - "x-ms-file-last-write-time": "2020-06-19T10:40:40.5325101Z", + "x-ms-file-last-write-time": "2020-09-10T09:29:29.5743878Z", "x-ms-file-parent-id": "0", - "x-ms-file-permission-key": "4512302258392269635*6216600178912236746", - "x-ms-request-id": "9e66eb74-c01a-005a-2826-4650ab000000", + "x-ms-file-permission-key": "14827816195503570342*11897905858180131375", + "x-ms-request-id": "da0f152b-601a-0017-2554-87212a000000", "x-ms-request-server-encrypted": "true", - "x-ms-version": "2019-12-12" + "x-ms-version": "2020-02-10" } }, { "method": "PUT", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555", - "query": { - "restype": "share", - "comp": "properties" - }, - "requestBody": null, - "status": 200, - "response": "", - "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:40 GMT", - "etag": "\"0x8D8143D366545AA\"", - "last-modified": "Fri, 19 Jun 2020 10:40:41 GMT", - "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "f843f3cb-bffd-4686-93da-0bd1ba0f2a2e", - "x-ms-request-id": "9e66eb79-c01a-005a-2a26-4650ab000000", - "x-ms-version": "2019-12-12" - } - }, - { - "method": "PUT", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555/dir159256324113807688/file159256324170602662", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140/dir159973016984001088/file159973017039608104", "query": {}, "requestBody": null, "status": 201, "response": "", "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:40 GMT", - "etag": "\"0x8D8143D36B872F5\"", - "last-modified": "Fri, 19 Jun 2020 10:40:41 GMT", + "etag": "\"0x8D8556C04FB89C7\"", + "last-modified": "Thu, 10 Sep 2020 09:29:30 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "b99bc137-8f20-4420-b168-cd8937f3c786", + "x-ms-client-request-id": "b24e6990-4052-4f77-b531-23ed3608fa94", "x-ms-file-attributes": "Archive", - "x-ms-file-change-time": "2020-06-19T10:40:41.6543477Z", - "x-ms-file-creation-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-change-time": "2020-09-10T09:29:30.1347783Z", + "x-ms-file-creation-time": "2020-09-10T09:29:30.1347783Z", "x-ms-file-id": "11529285414812647424", - "x-ms-file-last-write-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-last-write-time": "2020-09-10T09:29:30.1347783Z", "x-ms-file-parent-id": "13835128424026341376", - "x-ms-file-permission-key": "18367126982671236164*6216600178912236746", - "x-ms-request-id": "9e66eb7c-c01a-005a-2c26-4650ab000000", + "x-ms-file-permission-key": "990002565778260641*11897905858180131375", + "x-ms-request-id": "da0f1530-601a-0017-2754-87212a000000", "x-ms-request-server-encrypted": "true", - "x-ms-version": "2019-12-12" + "x-ms-version": "2020-02-10" } }, { "method": "PUT", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555/dir159256324113807688/file159256324170602662", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140/dir159973016984001088/file159973017039608104", "query": { "comp": "properties" }, @@ -105,27 +78,25 @@ "status": 200, "response": "", "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:41 GMT", - "etag": "\"0x8D8143D370CBD98\"", - "last-modified": "Fri, 19 Jun 2020 10:40:42 GMT", + "etag": "\"0x8D8556C054E255E\"", + "last-modified": "Thu, 10 Sep 2020 09:29:30 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "4cc77f7f-8c50-424a-b4c4-9ce6eeb502b7", + "x-ms-client-request-id": "a3b300f3-b97b-4231-85a9-84edeb45b537", "x-ms-file-attributes": "Archive", - "x-ms-file-change-time": "2020-06-19T10:40:42.2067608Z", - "x-ms-file-creation-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-change-time": "2020-09-10T09:29:30.6761566Z", + "x-ms-file-creation-time": "2020-09-10T09:29:30.1347783Z", "x-ms-file-id": "11529285414812647424", - "x-ms-file-last-write-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-last-write-time": "2020-09-10T09:29:30.6761566Z", "x-ms-file-parent-id": "13835128424026341376", - "x-ms-file-permission-key": "18367126982671236164*6216600178912236746", - "x-ms-request-id": "9e66eb7f-c01a-005a-2e26-4650ab000000", + "x-ms-file-permission-key": "990002565778260641*11897905858180131375", + "x-ms-request-id": "da0f1532-601a-0017-2954-87212a000000", "x-ms-request-server-encrypted": "true", - "x-ms-version": "2019-12-12" + "x-ms-version": "2020-02-10" } }, { "method": "HEAD", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555/dir159256324113807688/file159256324170602662", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140/dir159973016984001088/file159973017039608104", "query": {}, "requestBody": null, "status": 200, @@ -133,29 +104,48 @@ "responseHeaders": { "content-length": "4398046511104", "content-type": "application/octet-stream", - "date": "Fri, 19 Jun 2020 10:40:41 GMT", - "etag": "\"0x8D8143D370CBD98\"", - "last-modified": "Fri, 19 Jun 2020 10:40:42 GMT", + "etag": "\"0x8D8556C054E255E\"", + "last-modified": "Thu, 10 Sep 2020 09:29:30 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "48f83eee-52d2-49da-b594-499f4736696f", + "x-ms-client-request-id": "eae04308-7612-4af9-a01d-672d0075ba2c", "x-ms-file-attributes": "Archive", - "x-ms-file-change-time": "2020-06-19T10:40:42.2067608Z", - "x-ms-file-creation-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-change-time": "2020-09-10T09:29:30.6761566Z", + "x-ms-file-creation-time": "2020-09-10T09:29:30.1347783Z", "x-ms-file-id": "11529285414812647424", - "x-ms-file-last-write-time": "2020-06-19T10:40:41.6543477Z", + "x-ms-file-last-write-time": "2020-09-10T09:29:30.6761566Z", "x-ms-file-parent-id": "13835128424026341376", - "x-ms-file-permission-key": "18367126982671236164*6216600178912236746", + "x-ms-file-permission-key": "990002565778260641*11897905858180131375", "x-ms-lease-state": "available", "x-ms-lease-status": "unlocked", - "x-ms-request-id": "9e66eb8f-c01a-005a-3d26-4650ab000000", + "x-ms-request-id": "da0f1534-601a-0017-2b54-87212a000000", "x-ms-server-encrypted": "true", "x-ms-type": "File", - "x-ms-version": "2019-12-12" + "x-ms-version": "2020-02-10" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140/dir159973016984001088/file159973017039608104", + "query": { + "comp": "range" + }, + "requestBody": "Hello World", + "status": 201, + "response": "", + "responseHeaders": { + "content-md5": "sQqNsWTgdUEFt6mb5y4/5Q==", + "etag": "\"0x8D8556C05F1AE96\"", + "last-modified": "Thu, 10 Sep 2020 09:29:31 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d2832481-35cf-4201-91c4-41ba776dddfa", + "x-ms-request-id": "da0f1536-601a-0017-2d54-87212a000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2020-02-10" } }, { "method": "DELETE", - "url": "https://fakestorageaccount.file.core.windows.net/share159256323960404555", + "url": "https://fakestorageaccount.file.core.windows.net/share159973016793906140", "query": { "restype": "share" }, @@ -163,22 +153,20 @@ "status": 202, "response": "", "responseHeaders": { - "date": "Fri, 19 Jun 2020 10:40:43 GMT", "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", - "transfer-encoding": "chunked", - "x-ms-client-request-id": "71ed7150-6223-4657-93d6-f34ecb6979ac", - "x-ms-request-id": "9e66eb9d-c01a-005a-4b26-4650ab000000", - "x-ms-version": "2019-12-12" + "x-ms-client-request-id": "551f765c-718b-4db7-836c-abb6f63e1ab9", + "x-ms-request-id": "da0f1539-601a-0017-2f54-87212a000000", + "x-ms-version": "2020-02-10" } } ], "uniqueTestInfo": { "uniqueName": { - "share": "share159256323960404555", - "dir": "dir159256324113807688", - "file": "file159256324170602662" + "share": "share159973016793906140", + "dir": "dir159973016984001088", + "file": "file159973017039608104" }, "newDate": {} }, - "hash": "c8a45c43f12bee2b017a2fbdf77e5125" + "hash": "c46a56d62d7f7393debea5f0262151df" } \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/node/fileclient/recording_create_largest_file.js b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_create_largest_file.js index 37fedbe25ad3..9bcb8067656b 100644 --- a/sdk/storage/storage-file-share/recordings/node/fileclient/recording_create_largest_file.js +++ b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_create_largest_file.js @@ -1,57 +1,57 @@ let nock = require('nock'); -module.exports.hash = "60b311a9da34394d5deb32f8e27a78eb"; +module.exports.hash = "1663c2df5ebd1cdca8b3c8eef32dfe82"; -module.exports.testInfo = {"uniqueName":{"share":"share159256179930406953","dir":"dir159256180063107425","file":"file159256180107703922"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"share":"share159972991476308408","dir":"dir159972991651208876","file":"file159972991679300560"},"newDate":{}} nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .put('/share159256179930406953') + .put('/share159972991476308408') .query(true) .reply(201, "", [ 'Transfer-Encoding', 'chunked', 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:39 GMT', + 'Thu, 10 Sep 2020 09:25:15 GMT', 'ETag', - '"0x8D81439DB0EA7D6"', + '"0x8D8556B6D5014FF"', 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba8a-601a-001e-5e22-46da94000000', + '233acd5e-a01a-0001-2054-87e0b4000000', 'x-ms-client-request-id', - '142546bf-2119-4a2f-aa72-df26a9de8fb4', + '05fa39fe-0acf-4841-9cc8-c557c6786ed6', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'Date', - 'Fri, 19 Jun 2020 10:16:39 GMT' + 'Thu, 10 Sep 2020 09:25:14 GMT' ]); nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .put('/share159256179930406953/dir159256180063107425') + .put('/share159972991476308408/dir159972991651208876') .query(true) .reply(201, "", [ 'Transfer-Encoding', 'chunked', 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:39 GMT', + 'Thu, 10 Sep 2020 09:25:15 GMT', 'ETag', - '"0x8D81439DB572DB3"', + '"0x8D8556B6D7D637E"', 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba8e-601a-001e-5f22-46da94000000', + '233acd6a-a01a-0001-2154-87e0b4000000', 'x-ms-client-request-id', - '7aa26ff4-af76-4308-84c4-e89df4977ab6', + '447a62b0-7321-4513-ab00-03a4f708c759', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'x-ms-file-change-time', - '2020-06-19T10:16:39.8540211Z', + '2020-09-10T09:25:15.9720830Z', 'x-ms-file-last-write-time', - '2020-06-19T10:16:39.8540211Z', + '2020-09-10T09:25:15.9720830Z', 'x-ms-file-creation-time', - '2020-06-19T10:16:39.8540211Z', + '2020-09-10T09:25:15.9720830Z', 'x-ms-file-permission-key', - '4512302258392269635*6216600178912236746', + '14827816195503570342*11897905858180131375', 'x-ms-file-attributes', 'Directory', 'x-ms-file-id', @@ -61,56 +61,34 @@ nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParam 'x-ms-request-server-encrypted', 'true', 'Date', - 'Fri, 19 Jun 2020 10:16:39 GMT' + 'Thu, 10 Sep 2020 09:25:15 GMT' ]); nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .put('/share159256179930406953') - .query(true) - .reply(200, "", [ - 'Transfer-Encoding', - 'chunked', - 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:40 GMT', - 'ETag', - '"0x8D81439DB8A677D"', - 'Server', - 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id', - '61abba8f-601a-001e-6022-46da94000000', - 'x-ms-client-request-id', - 'bffc2cb5-6d3c-438b-8667-6164c474d3e1', - 'x-ms-version', - '2019-12-12', - 'Date', - 'Fri, 19 Jun 2020 10:16:39 GMT' -]); - -nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .put('/share159256179930406953/dir159256180063107425/file159256180107703922') + .put('/share159972991476308408/dir159972991651208876/file159972991679300560') .reply(201, "", [ 'Transfer-Encoding', 'chunked', 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:40 GMT', + 'Thu, 10 Sep 2020 09:25:16 GMT', 'ETag', - '"0x8D81439DBECAC66"', + '"0x8D8556B6DA84BBF"', 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba91-601a-001e-6122-46da94000000', + '233acd6b-a01a-0001-2254-87e0b4000000', 'x-ms-client-request-id', - '02f5d8e0-a1d3-4fa5-bd94-9f0d66f6c8cb', + '27d42776-a2b7-49f5-8b97-7520bda4da97', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'x-ms-file-change-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.2532799Z', 'x-ms-file-last-write-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.2532799Z', 'x-ms-file-creation-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.2532799Z', 'x-ms-file-permission-key', - '18367126982671236164*6216600178912236746', + '990002565778260641*11897905858180131375', 'x-ms-file-attributes', 'Archive', 'x-ms-file-id', @@ -120,35 +98,35 @@ nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParam 'x-ms-request-server-encrypted', 'true', 'Date', - 'Fri, 19 Jun 2020 10:16:40 GMT' + 'Thu, 10 Sep 2020 09:25:15 GMT' ]); nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .put('/share159256179930406953/dir159256180063107425/file159256180107703922') + .put('/share159972991476308408/dir159972991651208876/file159972991679300560') .query(true) .reply(200, "", [ 'Transfer-Encoding', 'chunked', 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:41 GMT', + 'Thu, 10 Sep 2020 09:25:16 GMT', 'ETag', - '"0x8D81439DC521155"', + '"0x8D8556B6DD1FB3E"', 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba9c-601a-001e-6222-46da94000000', + '233acd6d-a01a-0001-2354-87e0b4000000', 'x-ms-client-request-id', - 'a7100e5a-efea-477c-9245-10d9ea199980', + '32c7a85d-8d2e-43a3-aa93-b76e0fa73f8b', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'x-ms-file-change-time', - '2020-06-19T10:16:41.4982485Z', + '2020-09-10T09:25:16.5264702Z', 'x-ms-file-last-write-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.5264702Z', 'x-ms-file-creation-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.2532799Z', 'x-ms-file-permission-key', - '18367126982671236164*6216600178912236746', + '990002565778260641*11897905858180131375', 'x-ms-file-attributes', 'Archive', 'x-ms-file-id', @@ -158,28 +136,28 @@ nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParam 'x-ms-request-server-encrypted', 'true', 'Date', - 'Fri, 19 Jun 2020 10:16:40 GMT' + 'Thu, 10 Sep 2020 09:25:15 GMT' ]); nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .head('/share159256179930406953/dir159256180063107425/file159256180107703922') + .head('/share159972991476308408/dir159972991651208876/file159972991679300560') .reply(200, "", [ 'Content-Length', '4398046511104', 'Content-Type', 'application/octet-stream', 'Last-Modified', - 'Fri, 19 Jun 2020 10:16:41 GMT', + 'Thu, 10 Sep 2020 09:25:16 GMT', 'ETag', - '"0x8D81439DC521155"', + '"0x8D8556B6DD1FB3E"', 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba9d-601a-001e-6322-46da94000000', + '233acd6e-a01a-0001-2454-87e0b4000000', 'x-ms-client-request-id', - '4ddc70bb-8b55-4416-b05d-e7235b377ce7', + 'b0466f3a-36ad-4da5-8816-81de1f6d8cd3', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'x-ms-type', 'File', 'x-ms-server-encrypted', @@ -189,25 +167,55 @@ nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParam 'x-ms-lease-state', 'available', 'x-ms-file-change-time', - '2020-06-19T10:16:41.4982485Z', + '2020-09-10T09:25:16.5264702Z', 'x-ms-file-last-write-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.5264702Z', 'x-ms-file-creation-time', - '2020-06-19T10:16:40.8337510Z', + '2020-09-10T09:25:16.2532799Z', 'x-ms-file-permission-key', - '18367126982671236164*6216600178912236746', + '990002565778260641*11897905858180131375', 'x-ms-file-attributes', 'Archive', 'x-ms-file-id', '11529285414812647424', 'x-ms-file-parent-id', '13835128424026341376', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Type,Last-Modified,ETag,x-ms-type,x-ms-server-encrypted,x-ms-lease-status,x-ms-lease-state,x-ms-file-change-time,x-ms-file-last-write-time,x-ms-file-creation-time,x-ms-file-permission-key,x-ms-file-attributes,x-ms-file-id,x-ms-file-parent-id', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Thu, 10 Sep 2020 09:25:15 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share159972991476308408/dir159972991651208876/file159972991679300560', "Hello World") + .query(true) + .reply(201, "", [ + 'Transfer-Encoding', + 'chunked', + 'Content-MD5', + 'sQqNsWTgdUEFt6mb5y4/5Q==', + 'Last-Modified', + 'Thu, 10 Sep 2020 09:25:17 GMT', + 'ETag', + '"0x8D8556B6E255A4A"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '233acd6f-a01a-0001-2554-87e0b4000000', + 'x-ms-client-request-id', + '5659561a-d347-459c-80a9-d4717f4e3018', + 'x-ms-version', + '2020-02-10', + 'x-ms-request-server-encrypted', + 'true', 'Date', - 'Fri, 19 Jun 2020 10:16:42 GMT' + 'Thu, 10 Sep 2020 09:25:16 GMT' ]); nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) - .delete('/share159256179930406953') + .delete('/share159972991476308408') .query(true) .reply(202, "", [ 'Transfer-Encoding', @@ -215,11 +223,11 @@ nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParam 'Server', 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id', - '61abba9e-601a-001e-6422-46da94000000', + '233acd71-a01a-0001-2654-87e0b4000000', 'x-ms-client-request-id', - 'fdd48eba-1b54-4aba-8f28-900a3a7747e0', + '8931bfa0-f051-4a61-a269-2c556fa6adf1', 'x-ms-version', - '2019-12-12', + '2020-02-10', 'Date', - 'Fri, 19 Jun 2020 10:16:42 GMT' + 'Thu, 10 Sep 2020 09:25:16 GMT' ]); diff --git a/sdk/storage/storage-file-share/src/Clients.ts b/sdk/storage/storage-file-share/src/Clients.ts index 3d690c268a7b..176fd39e789a 100644 --- a/sdk/storage/storage-file-share/src/Clients.ts +++ b/sdk/storage/storage-file-share/src/Clients.ts @@ -812,7 +812,7 @@ export class ShareClient extends StorageClient { * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file * * @param {string} fileName - * @param {number} size Specifies the maximum size in bytes for the file, up to 1 TB. + * @param {number} size Specifies the maximum size in bytes for the file, up to 4 TB. * @param {FileCreateOptions} [options] Options to File Create operation. * @returns {Promise<{ fileClient: ShareFileClient, fileCreateResponse: FileCreateResponse }>} File creation response data and the corresponding file client. * @memberof ShareClient @@ -2035,7 +2035,7 @@ export class ShareDirectoryClient extends StorageClient { * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file * * @param {string} fileName - * @param {number} size Specifies the maximum size in bytes for the file, up to 1 TB. + * @param {number} size Specifies the maximum size in bytes for the file, up to 4 TB. * @param {FileCreateOptions} [options] Options to File Create operation. * @returns {Promise<{ fileClient: ShareFileClient, fileCreateResponse: FileCreateResponse }>} File creation response data and the corresponding file client. * @memberof ShareDirectoryClient @@ -3857,7 +3857,7 @@ export class ShareFileClient extends StorageClient { * Creates a new file or replaces a file. Note it only initializes the file with no content. * @see https://docs.microsoft.com/en-us/rest/api/storageservices/create-file * - * @param {number} size Specifies the maximum size in bytes for the file, up to 1 TB. + * @param {number} size Specifies the maximum size in bytes for the file, up to 4 TB. * @param {FileCreateOptions} [options] Options to File Create operation. * @returns {Promise} Response data for the File Create operation. * @memberof ShareFileClient @@ -5249,7 +5249,7 @@ export class ShareFileClient extends StorageClient { * parameter, which will avoid Buffer.concat() operations. * * @param {Readable} stream Node.js Readable stream. Must be less or equal than file size. - * @param {number} size Size of file to be created. Maximum size allowed is 1TB. + * @param {number} size Size of file to be created. Maximum size allowed is 4 TB. * If this value is larger than stream size, there will be empty bytes in file tail. * @param {number} bufferSize Size of every buffer allocated in bytes, also the chunk/range size during * the uploaded file. Size must be > 0 and <= 4 * 1024 * 1024 (4MB) diff --git a/sdk/storage/storage-file-share/test/fileclient.spec.ts b/sdk/storage/storage-file-share/test/fileclient.spec.ts index d9e9fa6f86e2..2078da385fc0 100644 --- a/sdk/storage/storage-file-share/test/fileclient.spec.ts +++ b/sdk/storage/storage-file-share/test/fileclient.spec.ts @@ -4,7 +4,7 @@ import * as dotenv from "dotenv"; import { AbortController } from "@azure/abort-controller"; import { isNode, URLBuilder, URLQuery } from "@azure/core-http"; import { setTracer, SpanGraph, TestTracer } from "@azure/core-tracing"; -import { delay, record, Recorder, isPlaybackMode } from "@azure/test-utils-recorder"; +import { delay, record, Recorder } from "@azure/test-utils-recorder"; import { FileStartCopyOptions, ShareClient, ShareDirectoryClient, ShareFileClient } from "../src"; import { FileSystemAttributes } from "../src/FileSystemAttributes"; @@ -149,21 +149,21 @@ describe("FileClient", () => { assert.ok(properties.fileParentId!); }); - // need to skip this test in live as it requires Premium_LRS SKU for 2019-12-12. it("create largest file", async function() { // IE complains about "Arithmetic result exceeded 32 bits". - if (!isPlaybackMode() || (!isNode && isIE())) { + if (!isNode && isIE()) { this.skip(); } - const GB = 1024 * 1024 * 1024; - await shareClient.setQuota(FILE_MAX_SIZE_BYTES / GB); - const cResp = await fileClient.create(FILE_MAX_SIZE_BYTES); + const fileSize = FILE_MAX_SIZE_BYTES; + const cResp = await fileClient.create(fileSize); assert.equal(cResp.errorCode, undefined); - await fileClient.resize(FILE_MAX_SIZE_BYTES); + await fileClient.resize(fileSize); const updatedProperties = await fileClient.getProperties(); - assert.deepStrictEqual(updatedProperties.contentLength, FILE_MAX_SIZE_BYTES); + assert.deepStrictEqual(updatedProperties.contentLength, fileSize); + + await fileClient.uploadRange(content, fileSize - content.length, content.length); }); it("setProperties with default parameters", async () => {