From 689a25dbadead7742f0f49657a7595355e4d73ce Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Mon, 18 May 2020 13:59:44 +0800 Subject: [PATCH] record tests --- .../recording_createifnotexists.json | 87 ++++++++ .../blobclient/recording_deleteifexists.json | 90 ++++++++ .../recording_createifnotexists.json | 108 ++++++++++ .../recording_deleteifexists.json | 109 ++++++++++ .../recording_createifnotexists.json | 87 ++++++++ .../recording_createifnotexists.js | 89 ++++++++ .../blobclient/recording_deleteifexists.js | 93 +++++++++ .../recording_createifnotexists.js | 107 ++++++++++ .../recording_deleteifexists.js | 107 ++++++++++ .../recording_createifnotexists.js | 89 ++++++++ .../storage-blob/test/containerclient.spec.ts | 4 +- .../recording_createifnotexists.json | 108 ++++++++++ .../recording_deleteifexists.json | 108 ++++++++++ ...alakedirectoryclientcreateifnotexists.json | 153 ++++++++++++++ ...g_datalakefileclientcreateifnotexists.json | 132 ++++++++++++ ...ding_datalakepathclientdeleteifexists.json | 167 +++++++++++++++ .../recording_createifnotexists.js | 107 ++++++++++ .../recording_deleteifexists.js | 107 ++++++++++ ...atalakedirectoryclientcreateifnotexists.js | 155 ++++++++++++++ ...ing_datalakefileclientcreateifnotexists.js | 133 ++++++++++++ ...ording_datalakepathclientdeleteifexists.js | 171 ++++++++++++++++ .../test/filesystemclient.spec.ts | 4 +- .../test/pathclient.spec.ts | 4 +- .../recording_createifnotexists.json | 145 +++++++++++++ .../recording_deleteifexists.json | 145 +++++++++++++ .../directoryclient/recording_exists.json | 127 ++++++++++++ .../fileclient/recording_deleteifexists.json | 139 +++++++++++++ .../browsers/fileclient/recording_exists.json | 152 ++++++++++++++ .../recording_createifnotexists.json | 108 ++++++++++ .../shareclient/recording_deletifexists.json | 109 ++++++++++ .../shareclient/recording_exists.json | 93 +++++++++ .../recording_createifnotexists.js | 161 +++++++++++++++ .../recording_deleteifexists.js | 161 +++++++++++++++ .../node/directoryclient/recording_exists.js | 151 ++++++++++++++ .../fileclient/recording_deleteifexists.js | 158 ++++++++++++++ .../node/fileclient/recording_exists.js | 192 ++++++++++++++++++ .../recording_createifnotexists.js | 107 ++++++++++ .../shareclient/recording_deletifexists.js | 107 ++++++++++ .../node/shareclient/recording_exists.js | 103 ++++++++++ .../test/shareclient.spec.ts | 4 +- .../recording_createifnotexists.json | 85 ++++++++ .../queueclient/recording_deleteifexists.json | 104 ++++++++++ .../queueclient/recording_exists.json | 90 ++++++++ .../recording_createifnotexists.js | 81 ++++++++ .../queueclient/recording_deleteifexists.js | 99 +++++++++ .../node/queueclient/recording_exists.js | 93 +++++++++ .../storage-queue/review/storage-queue.api.md | 8 + 47 files changed, 5033 insertions(+), 8 deletions(-) create mode 100644 sdk/storage/storage-blob/recordings/browsers/appendblobclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-blob/recordings/browsers/blobclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-blob/recordings/browsers/containerclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-blob/recordings/browsers/containerclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-blob/recordings/browsers/pageblobclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-blob/recordings/node/appendblobclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-blob/recordings/node/blobclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-blob/recordings/node/containerclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-blob/recordings/node/containerclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-blob/recordings/node/pageblobclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.json create mode 100644 sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakefileclientcreateifnotexists.json create mode 100644 sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakepathclientdeleteifexists.json create mode 100644 sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.js create mode 100644 sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakefileclientcreateifnotexists.js create mode 100644 sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakepathclientdeleteifexists.js create mode 100644 sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_exists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_exists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_deletifexists.json create mode 100644 sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_exists.json create mode 100644 sdk/storage/storage-file-share/recordings/node/directoryclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/directoryclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/directoryclient/recording_exists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/fileclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/fileclient/recording_exists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/shareclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/shareclient/recording_deletifexists.js create mode 100644 sdk/storage/storage-file-share/recordings/node/shareclient/recording_exists.js create mode 100644 sdk/storage/storage-queue/recordings/browsers/queueclient/recording_createifnotexists.json create mode 100644 sdk/storage/storage-queue/recordings/browsers/queueclient/recording_deleteifexists.json create mode 100644 sdk/storage/storage-queue/recordings/browsers/queueclient/recording_exists.json create mode 100644 sdk/storage/storage-queue/recordings/node/queueclient/recording_createifnotexists.js create mode 100644 sdk/storage/storage-queue/recordings/node/queueclient/recording_deleteifexists.js create mode 100644 sdk/storage/storage-queue/recordings/node/queueclient/recording_exists.js diff --git a/sdk/storage/storage-blob/recordings/browsers/appendblobclient/recording_createifnotexists.json b/sdk/storage/storage-blob/recordings/browsers/appendblobclient/recording_createifnotexists.json new file mode 100644 index 000000000000..ee44d46262b4 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/browsers/appendblobclient/recording_createifnotexists.json @@ -0,0 +1,87 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219399200016", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:13 GMT", + "etag": "\"0x8D7FADACC557D8C\"", + "last-modified": "Mon, 18 May 2020 03:23:13 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "55cb7f47-55ad-402c-9783-7ccdfb46a8d4", + "x-ms-request-id": "d0a58ed4-e01e-0069-40c3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219399200016/blob158977219548204940", + "query": {}, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:13 GMT", + "etag": "\"0x8D7FADACCB1CC38\"", + "last-modified": "Mon, 18 May 2020 03:23:14 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "6aafb862-c55b-43b4-bbf4-875835fbc220", + "x-ms-request-id": "d0a590f8-e01e-0069-40c3-2c9b43000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219399200016/blob158977219548204940", + "query": {}, + "requestBody": null, + "status": 409, + "response": "BlobAlreadyExistsThe specified blob already exists.\nRequestId:d0a591db-e01e-0069-07c3-2c9b43000000\nTime:2020-05-18T03:23:14.3239981Z", + "responseHeaders": { + "content-length": "220", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 03:23:14 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "afa45086-11ad-43e2-b6cf-11e070fba3e0", + "x-ms-error-code": "BlobAlreadyExists", + "x-ms-request-id": "d0a591db-e01e-0069-07c3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219399200016", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:14 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3244ac67-6d9f-44be-931a-3d5a97b600c7", + "x-ms-request-id": "d0a5938c-e01e-0069-02c3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "container": "container158977219399200016", + "blob": "blob158977219548204940" + }, + "newDate": {} + }, + "hash": "e6efd2486db5d337378f976ca1aec73d" +} \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/browsers/blobclient/recording_deleteifexists.json b/sdk/storage/storage-blob/recordings/browsers/blobclient/recording_deleteifexists.json new file mode 100644 index 000000000000..7885e8b9e7f0 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/browsers/blobclient/recording_deleteifexists.json @@ -0,0 +1,90 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219699803469", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:15 GMT", + "etag": "\"0x8D7FADACD990B4A\"", + "last-modified": "Mon, 18 May 2020 03:23:15 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "5b694a9d-8a14-4dca-a8f7-89779d004726", + "x-ms-request-id": "d0a59518-e01e-0069-75c3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219699803469/blob158977219758900546", + "query": {}, + "requestBody": "Hello World", + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "content-md5": "sQqNsWTgdUEFt6mb5y4/5Q==", + "date": "Mon, 18 May 2020 03:23:15 GMT", + "etag": "\"0x8D7FADACDF38472\"", + "last-modified": "Mon, 18 May 2020 03:23:16 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "55f89ad9-c109-4872-8ff6-d786bf88dbe1", + "x-ms-content-crc64": "YeJLfssylmU=", + "x-ms-request-id": "d0a5970f-e01e-0069-44c3-2c9b43000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219699803469/blob2158977219818309279", + "query": {}, + "requestBody": null, + "status": 404, + "response": "BlobNotFoundThe specified blob does not exist.\nRequestId:d0a598fa-e01e-0069-12c3-2c9b43000000\nTime:2020-05-18T03:23:16.7166246Z", + "responseHeaders": { + "content-length": "215", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 03:23:16 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4f11cc72-e3ea-491b-bf39-a198f143ccff", + "x-ms-error-code": "BlobNotFound", + "x-ms-request-id": "d0a598fa-e01e-0069-12c3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977219699803469", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:17 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a39a5a01-0d77-47a1-a633-d08252101853", + "x-ms-request-id": "d0a59a7e-e01e-0069-6bc3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "container": "container158977219699803469", + "blob": "blob158977219758900546", + "blob2": "blob2158977219818309279" + }, + "newDate": {} + }, + "hash": "f2c5329b54568da32738b0633d76fd28" +} \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_createifnotexists.json b/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_createifnotexists.json new file mode 100644 index 000000000000..f9d5e76cded0 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_createifnotexists.json @@ -0,0 +1,108 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977898953304407", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:28 GMT", + "etag": "\"0x8D7FAEA9ED18633\"", + "last-modified": "Mon, 18 May 2020 05:16:29 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a706b535-f439-4b10-9f4f-fc96535e9610", + "x-ms-request-id": "315c5623-301e-0045-09d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977898953304407", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 409, + "response": "ContainerAlreadyExistsThe specified container already exists.\nRequestId:315c56be-301e-0045-11d3-2c77ec000000\nTime:2020-05-18T05:16:29.3239574Z", + "responseHeaders": { + "content-length": "230", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:16:29 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "0de123b2-34c3-4720-9a7c-74ac181526c6", + "x-ms-error-code": "ContainerAlreadyExists", + "x-ms-request-id": "315c56be-301e-0045-11d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container2158977899137404377", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:29 GMT", + "etag": "\"0x8D7FAEA9F5D8BF8\"", + "last-modified": "Mon, 18 May 2020 05:16:29 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "595f2b25-40b5-472e-b245-7574856ecb12", + "x-ms-request-id": "315c57a9-301e-0045-63d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container2158977899137404377", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:30 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "c3e3bd3a-c92a-4a7c-bc62-969cd7f61f6c", + "x-ms-request-id": "315c58ca-301e-0045-64d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977898953304407", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:30 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "14a99ed8-8cef-45c4-b66a-d39c3be248b2", + "x-ms-request-id": "315c5993-301e-0045-21d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "container": "container158977898953304407", + "container2": "container2158977899137404377" + }, + "newDate": {} + }, + "hash": "d9c7dc1b415f156c20d632e9cdd9c598" +} \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_deleteifexists.json b/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_deleteifexists.json new file mode 100644 index 000000000000..50c47c6caee5 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/browsers/containerclient/recording_deleteifexists.json @@ -0,0 +1,109 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977899316704540", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:31 GMT", + "etag": "\"0x8D7FAEAA06FA2BF\"", + "last-modified": "Mon, 18 May 2020 05:16:31 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "81e9dcd5-18b0-481a-a0cb-1c07caeb915d", + "x-ms-request-id": "315c5a4b-301e-0045-49d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container2158977899375807936", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:32 GMT", + "etag": "\"0x8D7FAEAA0CA2F44\"", + "last-modified": "Mon, 18 May 2020 05:16:32 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "636b04c7-a232-4bc9-87ec-8e9fc163c257", + "x-ms-request-id": "315c5b82-301e-0045-64d3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container2158977899375807936", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:32 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "945a5bf4-20b4-4b02-a49f-98f2215b45ac", + "x-ms-request-id": "315c5c96-301e-0045-5ed3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container3158977899499501634", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 404, + "response": "ContainerNotFoundThe specified container does not exist.\nRequestId:315c5d93-301e-0045-4ed3-2c77ec000000\nTime:2020-05-18T05:16:33.5409468Z", + "responseHeaders": { + "content-length": "225", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:16:33 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "00780ca7-79db-4c13-8ae0-057d5c604892", + "x-ms-error-code": "ContainerNotFound", + "x-ms-request-id": "315c5d93-301e-0045-4ed3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977899316704540", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:16:33 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "0bab51cb-5375-4e4d-8156-269aac8cc241", + "x-ms-request-id": "315c5e90-301e-0045-3dd3-2c77ec000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "container": "container158977899316704540", + "container2": "container2158977899375807936", + "container3": "container3158977899499501634" + }, + "newDate": {} + }, + "hash": "7fe5c2ec7e849c7c67cd500d20d7936f" +} \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/browsers/pageblobclient/recording_createifnotexists.json b/sdk/storage/storage-blob/recordings/browsers/pageblobclient/recording_createifnotexists.json new file mode 100644 index 000000000000..ca1e49cb5f29 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/browsers/pageblobclient/recording_createifnotexists.json @@ -0,0 +1,87 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977220378104726", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:22 GMT", + "etag": "\"0x8D7FADAD1A29D4B\"", + "last-modified": "Mon, 18 May 2020 03:23:22 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "0302bcdd-b732-4e4f-ba46-8f9ecece2041", + "x-ms-request-id": "d0a5ab5d-e01e-0069-5ac3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977220378104726/blob158977220436307580", + "query": {}, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:22 GMT", + "etag": "\"0x8D7FADAD1FC51B6\"", + "last-modified": "Mon, 18 May 2020 03:23:22 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7a1d4ac4-d5a7-48cd-aed5-e3978ab9b46f", + "x-ms-request-id": "d0a5ad4f-e01e-0069-76c3-2c9b43000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977220378104726/blob158977220436307580", + "query": {}, + "requestBody": null, + "status": 409, + "response": "BlobAlreadyExistsThe specified blob already exists.\nRequestId:d0a5ae8f-e01e-0069-0ac3-2c9b43000000\nTime:2020-05-18T03:23:23.1980329Z", + "responseHeaders": { + "content-length": "220", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 03:23:23 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a8ba571b-bc7e-4fb3-ad2f-f51bd8172d16", + "x-ms-error-code": "BlobAlreadyExists", + "x-ms-request-id": "d0a5ae8f-e01e-0069-0ac3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/container158977220378104726", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 03:23:23 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "371dd386-28eb-49da-adc8-0243fab17ed2", + "x-ms-request-id": "d0a5b0ce-e01e-0069-1bc3-2c9b43000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "container": "container158977220378104726", + "blob": "blob158977220436307580" + }, + "newDate": {} + }, + "hash": "ca54c170e36521285331b748fac5742d" +} \ No newline at end of file diff --git a/sdk/storage/storage-blob/recordings/node/appendblobclient/recording_createifnotexists.js b/sdk/storage/storage-blob/recordings/node/appendblobclient/recording_createifnotexists.js new file mode 100644 index 000000000000..fe60dbc7a632 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/node/appendblobclient/recording_createifnotexists.js @@ -0,0 +1,89 @@ +let nock = require('nock'); + +module.exports.hash = "182afcbcd051964f01dd6aa10ef0860b"; + +module.exports.testInfo = {"uniqueName":{"container":"container158977214749307469","blob":"blob158977214884105113"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977214749307469') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:26 GMT', + 'ETag', + '"0x8D7FADAB0876854"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed205b1-701e-006b-26c3-2c25fb000000', + 'x-ms-client-request-id', + '0d50f179-961f-49ca-b81f-df1963fa169b', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:26 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977214749307469/blob158977214884105113') + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:27 GMT', + 'ETag', + '"0x8D7FADAB0B95B93"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed20642-701e-006b-2bc3-2c25fb000000', + 'x-ms-client-request-id', + 'c1ef56ec-7bc1-42e2-b234-2e69e3acd3e5', + 'x-ms-version', + '2019-07-07', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 03:22:26 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977214749307469/blob158977214884105113') + .reply(409, "BlobAlreadyExistsThe specified blob already exists.\nRequestId:eed206d9-701e-006b-39c3-2c25fb000000\nTime:2020-05-18T03:22:27.3887334Z", [ + 'Content-Length', + '220', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed206d9-701e-006b-39c3-2c25fb000000', + 'x-ms-client-request-id', + 'f8e303d9-7164-4e8e-81b0-b9f76badc938', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'BlobAlreadyExists', + 'Date', + 'Mon, 18 May 2020 03:22:26 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977214749307469') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed2074d-701e-006b-24c3-2c25fb000000', + 'x-ms-client-request-id', + '8dc0e559-e40c-49d7-a639-0dd9db5ec42c', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:27 GMT' +]); diff --git a/sdk/storage/storage-blob/recordings/node/blobclient/recording_deleteifexists.js b/sdk/storage/storage-blob/recordings/node/blobclient/recording_deleteifexists.js new file mode 100644 index 000000000000..f35d0f933b83 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/node/blobclient/recording_deleteifexists.js @@ -0,0 +1,93 @@ +let nock = require('nock'); + +module.exports.hash = "72625ad7134389678fb0c0df03b89186"; + +module.exports.testInfo = {"uniqueName":{"container":"container158977214975808781","blob":"blob158977215005109674","blob2":"blob2158977215035103936"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977214975808781') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:27 GMT', + 'ETag', + '"0x8D7FADAB14310B4"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed207ca-701e-006b-16c3-2c25fb000000', + 'x-ms-client-request-id', + '432f8326-c155-46ae-8465-1d9d2e08f009', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:27 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977214975808781/blob158977215005109674', "Hello World") + .reply(201, "", [ + 'Content-Length', + '0', + 'Content-MD5', + 'sQqNsWTgdUEFt6mb5y4/5Q==', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:28 GMT', + 'ETag', + '"0x8D7FADAB170E45C"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed20857-701e-006b-16c3-2c25fb000000', + 'x-ms-client-request-id', + '093d954c-ac27-4498-898d-77f740b3f2e6', + 'x-ms-version', + '2019-07-07', + 'x-ms-content-crc64', + 'YeJLfssylmU=', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 03:22:27 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977214975808781/blob2158977215035103936') + .reply(404, "BlobNotFoundThe specified blob does not exist.\nRequestId:eed208dc-701e-006b-15c3-2c25fb000000\nTime:2020-05-18T03:22:28.5945493Z", [ + 'Content-Length', + '215', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed208dc-701e-006b-15c3-2c25fb000000', + 'x-ms-client-request-id', + '1c2262a3-b05c-4279-881a-9f4f7b075a17', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'BlobNotFound', + 'Date', + 'Mon, 18 May 2020 03:22:28 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977214975808781') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed2096e-701e-006b-19c3-2c25fb000000', + 'x-ms-client-request-id', + '873cbaea-1e8c-4db3-89e6-d299d06c83e3', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:28 GMT' +]); diff --git a/sdk/storage/storage-blob/recordings/node/containerclient/recording_createifnotexists.js b/sdk/storage/storage-blob/recordings/node/containerclient/recording_createifnotexists.js new file mode 100644 index 000000000000..2524cdd62ec4 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/node/containerclient/recording_createifnotexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "8f96742aa7f5f2c3fbf2ae2881ac6ebc"; + +module.exports.testInfo = {"uniqueName":{"container":"container158977895191804446","container2":"container2158977895359500682"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977895191804446') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:15:51 GMT', + 'ETag', + '"0x8D7FAEA884EF299"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '809198b4-101e-0052-37d3-2cdee7000000', + 'x-ms-client-request-id', + 'a0621908-73be-4777-8916-8053776f29ed', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:51 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977895191804446') + .query(true) + .reply(409, "ContainerAlreadyExistsThe specified container already exists.\nRequestId:8091998e-101e-0052-7cd3-2cdee7000000\nTime:2020-05-18T05:15:51.5483295Z", [ + 'Content-Length', + '230', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '8091998e-101e-0052-7cd3-2cdee7000000', + 'x-ms-client-request-id', + 'e684fde9-78bf-4850-a7f2-6bdd3d7b44b5', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ContainerAlreadyExists', + 'Date', + 'Mon, 18 May 2020 05:15:51 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container2158977895359500682') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:15:51 GMT', + 'ETag', + '"0x8D7FAEA88AD506A"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919a5f-101e-0052-3bd3-2cdee7000000', + 'x-ms-client-request-id', + '6acd8757-a34e-47c9-ac2e-cac79ed3a581', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:51 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container2158977895359500682') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919b5a-101e-0052-1fd3-2cdee7000000', + 'x-ms-client-request-id', + 'c809a7d3-468e-4b85-8420-f27265beb7a1', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:52 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977895191804446') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919c1f-101e-0052-44d3-2cdee7000000', + 'x-ms-client-request-id', + '7a566973-d4dc-4802-87f5-e8d7fe6511d1', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:52 GMT' +]); diff --git a/sdk/storage/storage-blob/recordings/node/containerclient/recording_deleteifexists.js b/sdk/storage/storage-blob/recordings/node/containerclient/recording_deleteifexists.js new file mode 100644 index 000000000000..d3e2498bda73 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/node/containerclient/recording_deleteifexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "b0e0629f46595c8ad0ac3aa52f63d434"; + +module.exports.testInfo = {"uniqueName":{"container":"container158977895451106039","container2":"container2158977895481308612","container3":"container3158977895541909286"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977895451106039') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:15:52 GMT', + 'ETag', + '"0x8D7FAEA893907F1"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919cf0-101e-0052-6cd3-2cdee7000000', + 'x-ms-client-request-id', + '9cce3650-a136-4f46-91d6-c41ed703acb5', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:52 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container2158977895481308612') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:15:53 GMT', + 'ETag', + '"0x8D7FAEA8967734C"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919daf-101e-0052-03d3-2cdee7000000', + 'x-ms-client-request-id', + '4f37487f-1488-47d4-8eaa-435c93fe22a9', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:53 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container2158977895481308612') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919e6f-101e-0052-1bd3-2cdee7000000', + 'x-ms-client-request-id', + 'b4d54db2-0264-4f17-afc1-1e733eca8987', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:53 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container3158977895541909286') + .query(true) + .reply(404, "ContainerNotFoundThe specified container does not exist.\nRequestId:80919f4e-101e-0052-57d3-2cdee7000000\nTime:2020-05-18T05:15:53.6808389Z", [ + 'Content-Length', + '225', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '80919f4e-101e-0052-57d3-2cdee7000000', + 'x-ms-client-request-id', + '5d8eaac9-b24b-43d3-8380-73d9c7d06711', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ContainerNotFound', + 'Date', + 'Mon, 18 May 2020 05:15:53 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977895451106039') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '8091a048-101e-0052-37d3-2cdee7000000', + 'x-ms-client-request-id', + '2f6a7c3c-2a7a-486a-b204-e54d8addfbe8', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:15:53 GMT' +]); diff --git a/sdk/storage/storage-blob/recordings/node/pageblobclient/recording_createifnotexists.js b/sdk/storage/storage-blob/recordings/node/pageblobclient/recording_createifnotexists.js new file mode 100644 index 000000000000..a99aa73e0ee0 --- /dev/null +++ b/sdk/storage/storage-blob/recordings/node/pageblobclient/recording_createifnotexists.js @@ -0,0 +1,89 @@ +let nock = require('nock'); + +module.exports.hash = "fbf6feac48348943de323529a76f3f2f"; + +module.exports.testInfo = {"uniqueName":{"container":"container158977215391405044","blob":"blob158977215420602835"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977215391405044') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:32 GMT', + 'ETag', + '"0x8D7FADAB3BD57B0"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed2111d-701e-006b-28c3-2c25fb000000', + 'x-ms-client-request-id', + '265a89bd-236b-42ee-8cb0-a0a7512ee5d3', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:31 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977215391405044/blob158977215420602835') + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 03:22:32 GMT', + 'ETag', + '"0x8D7FADAB3EA4124"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed211a2-701e-006b-20c3-2c25fb000000', + 'x-ms-client-request-id', + '5b7bd94e-7988-4280-8b38-f57bfd3c6b42', + 'x-ms-version', + '2019-07-07', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 03:22:31 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/container158977215391405044/blob158977215420602835') + .reply(409, "BlobAlreadyExistsThe specified blob already exists.\nRequestId:eed21257-701e-006b-46c3-2c25fb000000\nTime:2020-05-18T03:22:32.7423460Z", [ + 'Content-Length', + '220', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed21257-701e-006b-46c3-2c25fb000000', + 'x-ms-client-request-id', + '2b1114b5-0a8a-46e1-bbe6-8d408935ea0d', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'BlobAlreadyExists', + 'Date', + 'Mon, 18 May 2020 03:22:32 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/container158977215391405044') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'eed21374-701e-006b-55c3-2c25fb000000', + 'x-ms-client-request-id', + '6471de5c-8a27-4cdd-9aec-023a1fe5322e', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 03:22:32 GMT' +]); diff --git a/sdk/storage/storage-blob/test/containerclient.spec.ts b/sdk/storage/storage-blob/test/containerclient.spec.ts index 8297b4f048cd..bbca0f27b3e2 100644 --- a/sdk/storage/storage-blob/test/containerclient.spec.ts +++ b/sdk/storage/storage-blob/test/containerclient.spec.ts @@ -72,7 +72,7 @@ describe("ContainerClient", () => { const containerName2 = recorder.getUniqueName("container2"); const containerClient2 = blobServiceClient.getContainerClient(containerName2); const createRes = await containerClient2.createIfNotExists(); - assert.notEqual(createRes, null); + assert.notDeepStrictEqual(createRes, null); await containerClient2.delete(); }); @@ -81,7 +81,7 @@ describe("ContainerClient", () => { const containerClient2 = blobServiceClient.getContainerClient(containerName2); await containerClient2.create(); const res = await containerClient2.deleteIfExists(); - assert.notEqual(null, res); + assert.notDeepStrictEqual(null, res); const containerName3 = recorder.getUniqueName("container3"); const containerClient3 = blobServiceClient.getContainerClient(containerName3); diff --git a/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_createifnotexists.json b/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_createifnotexists.json new file mode 100644 index 000000000000..2e11b02947e3 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_createifnotexists.json @@ -0,0 +1,108 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978056950202862", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:48 GMT", + "etag": "\"0x8D7FAEE4C936B54\"", + "last-modified": "Mon, 18 May 2020 05:42:49 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b9ca1b09-f5c4-4aef-aa3b-673e9bc3c0df", + "x-ms-request-id": "15dabaa9-001e-00a5-54d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978056950202862158978057106306412", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:49 GMT", + "etag": "\"0x8D7FAEE4CEFF6E1\"", + "last-modified": "Mon, 18 May 2020 05:42:49 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "40b1f17b-f279-42a8-800c-82d2005fde14", + "x-ms-request-id": "15dabb85-001e-00a5-24d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978056950202862158978057106306412", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 409, + "response": "ContainerAlreadyExistsThe specified container already exists.\nRequestId:15dabbe7-001e-00a5-76d7-2c7e87000000\nTime:2020-05-18T05:42:49.9282287Z", + "responseHeaders": { + "content-length": "230", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:42:49 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "6d810382-9f01-4528-9ac2-6bc312c6c5a8", + "x-ms-error-code": "ContainerAlreadyExists", + "x-ms-request-id": "15dabbe7-001e-00a5-76d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978056950202862158978057106306412", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:50 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4a80f9c4-54ec-4368-abb3-e6a744bcb837", + "x-ms-request-id": "15dabca0-001e-00a5-1ed7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978056950202862", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:50 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "f3b831a8-dfff-43df-8f01-c5d87da43cc9", + "x-ms-request-id": "15dabd8d-001e-00a5-67d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "filesystem": "filesystem158978056950202862", + "filesystem158978056950202862": "filesystem158978056950202862158978057106306412" + }, + "newDate": {} + }, + "hash": "d2c1dddb7afb8e7cda0f3df363449343" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_deleteifexists.json b/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_deleteifexists.json new file mode 100644 index 000000000000..c3294e4332db --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/browsers/datalakefilesystemclient/recording_deleteifexists.json @@ -0,0 +1,108 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057319505927", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:51 GMT", + "etag": "\"0x8D7FAEE4E33DF4C\"", + "last-modified": "Mon, 18 May 2020 05:42:51 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9ee1136d-2c18-430f-82e5-6a25e95786ae", + "x-ms-request-id": "15dabe91-001e-00a5-6bd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057319505927158978057377701071", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 404, + "response": "ContainerNotFoundThe specified container does not exist.\nRequestId:15dac006-001e-00a5-1dd7-2c7e87000000\nTime:2020-05-18T05:42:52.3242191Z", + "responseHeaders": { + "content-length": "225", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:42:52 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b16ad610-63c2-443f-a5eb-e230e032bb0d", + "x-ms-error-code": "ContainerNotFound", + "x-ms-request-id": "15dac006-001e-00a5-1dd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057319505927158978057377701071", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:52 GMT", + "etag": "\"0x8D7FAEE4EE33057\"", + "last-modified": "Mon, 18 May 2020 05:42:52 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fd36e9a3-be56-424f-a92e-25ff040219ee", + "x-ms-request-id": "15dac126-001e-00a5-1ed7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057319505927158978057377701071", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:53 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "835b0d77-99fd-4e6f-955c-bdd8e10be154", + "x-ms-request-id": "15dac265-001e-00a5-74d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057319505927", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:53 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "92a91c39-3fa1-4d4b-bc19-d6b99dfae527", + "x-ms-request-id": "15dac357-001e-00a5-4fd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "filesystem": "filesystem158978057319505927", + "filesystem158978057319505927": "filesystem158978057319505927158978057377701071" + }, + "newDate": {} + }, + "hash": "fbb56cb4c4e266e407f6137fade18987" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.json b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.json new file mode 100644 index 000000000000..ce2fe7ad7593 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.json @@ -0,0 +1,153 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057610606087", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:54 GMT", + "etag": "\"0x8D7FAEE4FEFF779\"", + "last-modified": "Mon, 18 May 2020 05:42:54 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4cc8f9c4-aa0a-4d4e-8645-1b293df8347e", + "x-ms-request-id": "15dac458-001e-00a5-2cd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978057610606087/file158978057668701341", + "query": { + "resource": "file" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:55 GMT", + "etag": "\"0x8D7FAEE50E59DD8\"", + "last-modified": "Mon, 18 May 2020 05:42:56 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "29d57229-0f87-4e6a-b26c-08dc4aa61287", + "x-ms-request-id": "bdcbc679-101f-005f-01d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978057610606087/file158978057668701341", + "query": { + "position": "0", + "action": "append" + }, + "requestBody": "Hello World", + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:56 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fbae98a8-ccc4-4805-89d5-250799a1031d", + "x-ms-request-id": "bdcbc6a5-101f-005f-2dd7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978057610606087/file158978057668701341", + "query": { + "position": "11", + "action": "flush" + }, + "requestBody": "", + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:56 GMT", + "etag": "\"0x8D7FAEE519600BB\"", + "last-modified": "Mon, 18 May 2020 05:42:57 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "992185fd-5d73-4e00-9ff3-abf6795e8fa8", + "x-ms-request-id": "bdcbc6cd-101f-005f-55d7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978057610606087/dir158978057944601135", + "query": { + "resource": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:57 GMT", + "etag": "\"0x8D7FAEE51EDEF7C\"", + "last-modified": "Mon, 18 May 2020 05:42:57 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4ca7fa54-1b2e-4387-b0d8-ef39737019ec", + "x-ms-request-id": "bdcbc6f1-101f-005f-79d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978057610606087/dir158978057944601135", + "query": { + "resource": "directory" + }, + "requestBody": null, + "status": 409, + "response": "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:bdcbc702-101f-005f-0ad7-2cb760000000\\nTime:2020-05-18T05:42:58.2793770Z\"}}", + "responseHeaders": { + "content-length": "168", + "content-type": "application/json;charset=utf-8", + "date": "Mon, 18 May 2020 05:42:57 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "e9688972-709e-4d09-9fbb-7243827bf36d", + "x-ms-error-code": "PathAlreadyExists", + "x-ms-request-id": "bdcbc702-101f-005f-0ad7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978057610606087", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:58 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "89c67459-4247-436a-a306-05cec273a122", + "x-ms-request-id": "15dacb75-001e-00a5-0dd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "filesystem": "filesystem158978057610606087", + "file": "file158978057668701341", + "dir": "dir158978057944601135" + }, + "newDate": {} + }, + "hash": "334989a3215fedac66110333330bc920" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakefileclientcreateifnotexists.json b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakefileclientcreateifnotexists.json new file mode 100644 index 000000000000..81a25715c3e3 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakefileclientcreateifnotexists.json @@ -0,0 +1,132 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978058090909990", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:59 GMT", + "etag": "\"0x8D7FAEE52CCFF55\"", + "last-modified": "Mon, 18 May 2020 05:42:59 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "f2b928a0-2f16-4c9f-bac7-6bf32f0b47bf", + "x-ms-request-id": "15dacc48-001e-00a5-47d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058090909990/file158978058149204991", + "query": { + "resource": "file" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:59 GMT", + "etag": "\"0x8D7FAEE532B89BB\"", + "last-modified": "Mon, 18 May 2020 05:43:00 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "da84be6d-3585-4fa0-bad0-3f43064e3525", + "x-ms-request-id": "bdcbc765-101f-005f-6cd7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058090909990/file158978058149204991", + "query": { + "position": "0", + "action": "append" + }, + "requestBody": "Hello World", + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:42:59 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "61c134c2-a100-4c76-abb5-52c5d781eb86", + "x-ms-request-id": "bdcbc788-101f-005f-0fd7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058090909990/file158978058149204991", + "query": { + "position": "11", + "action": "flush" + }, + "requestBody": "", + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:00 GMT", + "etag": "\"0x8D7FAEE53DBF591\"", + "last-modified": "Mon, 18 May 2020 05:43:01 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4e5f1fa7-cc81-4229-9384-6c6b3034309b", + "x-ms-request-id": "bdcbc7ac-101f-005f-32d7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058090909990/file158978058149204991", + "query": { + "resource": "file" + }, + "requestBody": null, + "status": 409, + "response": "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:bdcbc7cd-101f-005f-53d7-2cb760000000\\nTime:2020-05-18T05:43:01.8033083Z\"}}", + "responseHeaders": { + "content-length": "168", + "content-type": "application/json;charset=utf-8", + "date": "Mon, 18 May 2020 05:43:01 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "41ed0375-b693-458c-90d3-024b5b3b87a1", + "x-ms-error-code": "PathAlreadyExists", + "x-ms-request-id": "bdcbc7cd-101f-005f-53d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978058090909990", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:02 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "31ed2f6b-8d84-4f06-b092-df630075b49e", + "x-ms-request-id": "15dad038-001e-00a5-4fd7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "filesystem": "filesystem158978058090909990", + "file": "file158978058149204991" + }, + "newDate": {} + }, + "hash": "f7176b5fa4ce66198ec0eed42335ec53" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakepathclientdeleteifexists.json b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakepathclientdeleteifexists.json new file mode 100644 index 000000000000..0c659dd6d461 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/browsers/datalakepathclient/recording_datalakepathclientdeleteifexists.json @@ -0,0 +1,167 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978058443504810", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:02 GMT", + "etag": "\"0x8D7FAEE54E7511A\"", + "last-modified": "Mon, 18 May 2020 05:43:02 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "dff23c05-a5ec-4373-90ee-30e207a5e3ff", + "x-ms-request-id": "15dad0e5-001e-00a5-70d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/file158978058502300502", + "query": { + "resource": "file" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:02 GMT", + "etag": "\"0x8D7FAEE554309AF\"", + "last-modified": "Mon, 18 May 2020 05:43:03 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "203b47a0-8987-4a74-b5f3-7a83236a3a4f", + "x-ms-request-id": "bdcbc82a-101f-005f-30d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/file158978058502300502", + "query": { + "position": "0", + "action": "append" + }, + "requestBody": "Hello World", + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:03 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8244c175-e24c-480e-babc-7213c46ce574", + "x-ms-request-id": "bdcbc83d-101f-005f-42d7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PATCH", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/file158978058502300502", + "query": { + "position": "11", + "action": "flush" + }, + "requestBody": "", + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:04 GMT", + "etag": "\"0x8D7FAEE55F4D69E\"", + "last-modified": "Mon, 18 May 2020 05:43:04 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1549c622-bf11-4591-adef-30f6b379e336", + "x-ms-request-id": "bdcbc843-101f-005f-48d7-2cb760000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/dir158978058677805985", + "query": {}, + "requestBody": null, + "status": 404, + "response": "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:bdcbc849-101f-005f-4ed7-2cb760000000\\nTime:2020-05-18T05:43:05.3252343Z\"}}", + "responseHeaders": { + "content-length": "163", + "content-type": "application/json;charset=utf-8", + "date": "Mon, 18 May 2020 05:43:04 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "6161d563-bed7-4640-bc99-354f2619cfe1", + "x-ms-error-code": "PathNotFound", + "x-ms-request-id": "bdcbc849-101f-005f-4ed7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/dir158978058677805985", + "query": { + "resource": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:05 GMT", + "etag": "\"0x8D7FAEE56A451B4\"", + "last-modified": "Mon, 18 May 2020 05:43:05 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4953c250-19ee-4956-98ab-ed4c0325a14a", + "x-ms-request-id": "bdcbc84b-101f-005f-50d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.dfs.core.windows.net/filesystem158978058443504810/dir158978058677805985", + "query": {}, + "requestBody": null, + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:05 GMT", + "server": "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fb996841-b205-4a4c-8d8d-49cb304aea74", + "x-ms-request-id": "bdcbc84c-101f-005f-51d7-2cb760000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.blob.core.windows.net/filesystem158978058443504810", + "query": { + "restype": "container" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:43:06 GMT", + "server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "e1f124b9-d414-403d-959d-34422f6fd935", + "x-ms-request-id": "15dad5b7-001e-00a5-52d7-2c7e87000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "filesystem": "filesystem158978058443504810", + "file": "file158978058502300502", + "dir": "dir158978058677805985" + }, + "newDate": {} + }, + "hash": "e6fccfcc91f368ed4b5bddba0212ceb0" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_createifnotexists.js b/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_createifnotexists.js new file mode 100644 index 000000000000..69c2b8cc70f6 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_createifnotexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "20dbc14eb779c9620f4adbba78aa35ca"; + +module.exports.testInfo = {"uniqueName":{"filesystem":"filesystem158977960418708486","filesystem158977960418708486":"filesystem158977960418708486158977960748306575"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977960418708486') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:45 GMT', + 'ETag', + '"0x8D7FAEC0E0BABF5"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bd6f8-a01e-002b-2dd4-2c3126000000', + 'x-ms-client-request-id', + '35e3dc14-51eb-48df-9027-262f222639a4', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:44 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977960418708486158977960748306575') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:45 GMT', + 'ETag', + '"0x8D7FAEC0E6EC870"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bd83c-a01e-002b-56d4-2c3126000000', + 'x-ms-client-request-id', + 'c0647c84-ab76-40ab-83af-7d601e52a85f', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:45 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977960418708486158977960748306575') + .query(true) + .reply(409, "ContainerAlreadyExistsThe specified container already exists.\nRequestId:dc4bd8f2-a01e-002b-7cd4-2c3126000000\nTime:2020-05-18T05:26:46.1284743Z", [ + 'Content-Length', + '230', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bd8f2-a01e-002b-7cd4-2c3126000000', + 'x-ms-client-request-id', + 'ee8432a2-2585-473d-aaa0-ee45e4902544', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ContainerAlreadyExists', + 'Date', + 'Mon, 18 May 2020 05:26:45 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977960418708486158977960748306575') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bd9a9-a01e-002b-1fd4-2c3126000000', + 'x-ms-client-request-id', + '9940ef89-f0f5-4695-a1e3-e52f2fd40fd3', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:46 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977960418708486') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdaa1-a01e-002b-08d4-2c3126000000', + 'x-ms-client-request-id', + 'bab87cc5-fa72-416d-92dc-6e7ace950c85', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:46 GMT' +]); diff --git a/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_deleteifexists.js b/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_deleteifexists.js new file mode 100644 index 000000000000..f38856042504 --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/node/datalakefilesystemclient/recording_deleteifexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "89c02adcefa8cfbd0c30ffd7ecf1b9bd"; + +module.exports.testInfo = {"uniqueName":{"filesystem":"filesystem158977960906408084","filesystem158977960906408084":"filesystem158977960906408084158977960937306987"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977960906408084') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:47 GMT', + 'ETag', + '"0x8D7FAEC0F5CDD31"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdb84-a01e-002b-60d4-2c3126000000', + 'x-ms-client-request-id', + '4ff67a02-50ad-47e1-8130-cf405eb5ed88', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:46 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977960906408084158977960937306987') + .query(true) + .reply(404, "ContainerNotFoundThe specified container does not exist.\nRequestId:dc4bdc35-a01e-002b-02d4-2c3126000000\nTime:2020-05-18T05:26:47.6287116Z", [ + 'Content-Length', + '225', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdc35-a01e-002b-02d4-2c3126000000', + 'x-ms-client-request-id', + '6efbbfbb-6911-4ee1-877e-5b5e9b0671f9', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ContainerNotFound', + 'Date', + 'Mon, 18 May 2020 05:26:47 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977960906408084158977960937306987') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:47 GMT', + 'ETag', + '"0x8D7FAEC0FB82FD2"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdcbd-a01e-002b-7cd4-2c3126000000', + 'x-ms-client-request-id', + '885c5736-4127-4782-964c-5afc78f653bb', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:47 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977960906408084158977960937306987') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdd75-a01e-002b-24d4-2c3126000000', + 'x-ms-client-request-id', + '6dbd449c-804c-4518-99b6-05554e219398', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:47 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977960906408084') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bde30-a01e-002b-4bd4-2c3126000000', + 'x-ms-client-request-id', + 'f1043536-e432-4db0-ab4b-8eceb05c3375', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:48 GMT' +]); diff --git a/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.js b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.js new file mode 100644 index 000000000000..eaa18644ca4b --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakedirectoryclientcreateifnotexists.js @@ -0,0 +1,155 @@ +let nock = require('nock'); + +module.exports.hash = "720d743ded24f582eadd4ae8659a2dac"; + +module.exports.testInfo = {"uniqueName":{"filesystem":"filesystem158977961057503329","file":"file158977961087608276","dir":"dir158977961287500504"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961057503329') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:48 GMT', + 'ETag', + '"0x8D7FAEC1043EB89"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bdec0-a01e-002b-55d4-2c3126000000', + 'x-ms-client-request-id', + '00321166-23da-4020-933d-48e55bea3769', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:48 GMT' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961057503329/file158977961087608276') + .query(true) + .reply(201, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:50 GMT', + 'ETag', + '"0x8D7FAEC111932E9"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4c4-b01f-0070-34d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '40831bcb-20fe-4ac8-86ac-37c5114c8a58', + 'Date', + 'Mon, 18 May 2020 05:26:49 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961057503329/file158977961087608276', "Hello World") + .query(true) + .reply(202, "", [ + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4c5-b01f-0070-35d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'c6847254-86cc-45cf-a643-9f2809ffc38b', + 'Date', + 'Mon, 18 May 2020 05:26:49 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961057503329/file158977961087608276') + .query(true) + .reply(200, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:50 GMT', + 'ETag', + '"0x8D7FAEC1176AF33"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4c6-b01f-0070-36d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'c94ddeea-b53d-42d7-8cf2-99cc40847db2', + 'Date', + 'Mon, 18 May 2020 05:26:50 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961057503329/dir158977961287500504') + .query(true) + .reply(201, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:51 GMT', + 'ETag', + '"0x8D7FAEC11A5403D"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4c7-b01f-0070-37d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'b59ba02f-cd21-4ac7-a31e-03ff0a9dd896', + 'Date', + 'Mon, 18 May 2020 05:26:50 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961057503329/dir158977961287500504') + .query(true) + .reply(409, {"error":{"code":"PathAlreadyExists","message":"The specified path already exists.\nRequestId:2823e4c8-b01f-0070-38d4-2c365a000000\nTime:2020-05-18T05:26:51.4395475Z"}}, [ + 'Content-Length', + '168', + 'Content-Type', + 'application/json;charset=utf-8', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-error-code', + 'PathAlreadyExists', + 'x-ms-request-id', + '2823e4c8-b01f-0070-38d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'd8f499fe-b4f6-4ffa-95ca-9e5f4f4dcbd9', + 'Date', + 'Mon, 18 May 2020 05:26:50 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977961057503329') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4be47a-a01e-002b-1ad4-2c3126000000', + 'x-ms-client-request-id', + '334ae9bc-1126-4104-857a-7a8b8475a696', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:51 GMT' +]); diff --git a/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakefileclientcreateifnotexists.js b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakefileclientcreateifnotexists.js new file mode 100644 index 000000000000..eb75056a2dbe --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakefileclientcreateifnotexists.js @@ -0,0 +1,133 @@ +let nock = require('nock'); + +module.exports.hash = "1811b46713226bbde364c95d60a8ea4e"; + +module.exports.testInfo = {"uniqueName":{"filesystem":"filesystem158977961377602903","file":"file158977961409907239"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961377602903') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:52 GMT', + 'ETag', + '"0x8D7FAEC122C2572"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4be52f-a01e-002b-41d4-2c3126000000', + 'x-ms-client-request-id', + 'a6024aa2-65f7-462d-943c-8c4e9b66d7b7', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:51 GMT' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961377602903/file158977961409907239') + .query(true) + .reply(201, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:52 GMT', + 'ETag', + '"0x8D7FAEC12608474"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4c9-b01f-0070-39d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '3eb0261a-53de-401f-b7bd-a1f56115bd5d', + 'Date', + 'Mon, 18 May 2020 05:26:51 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961377602903/file158977961409907239', "Hello World") + .query(true) + .reply(202, "", [ + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4ca-b01f-0070-3ad4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'e7b78740-0a29-4920-b6a3-20b7fcfe4617', + 'Date', + 'Mon, 18 May 2020 05:26:51 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961377602903/file158977961409907239') + .query(true) + .reply(200, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:52 GMT', + 'ETag', + '"0x8D7FAEC12BD0C71"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4cb-b01f-0070-3bd4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '4c1d3f4c-d135-417a-bcff-598df8be3f99', + 'Date', + 'Mon, 18 May 2020 05:26:52 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961377602903/file158977961409907239') + .query(true) + .reply(409, {"error":{"code":"PathAlreadyExists","message":"The specified path already exists.\nRequestId:2823e4cc-b01f-0070-3cd4-2c365a000000\nTime:2020-05-18T05:26:53.2810660Z"}}, [ + 'Content-Length', + '168', + 'Content-Type', + 'application/json;charset=utf-8', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-error-code', + 'PathAlreadyExists', + 'x-ms-request-id', + '2823e4cc-b01f-0070-3cd4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '6ccdf7be-52c6-4fa4-a3f8-8053c55146c6', + 'Date', + 'Mon, 18 May 2020 05:26:52 GMT' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977961377602903') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4be885-a01e-002b-4ad4-2c3126000000', + 'x-ms-client-request-id', + 'b2fd7748-868c-491a-9452-071f5fd652d3', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:53 GMT' +]); diff --git a/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakepathclientdeleteifexists.js b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakepathclientdeleteifexists.js new file mode 100644 index 000000000000..8f09f2ce2f3d --- /dev/null +++ b/sdk/storage/storage-file-datalake/recordings/node/datalakepathclient/recording_datalakepathclientdeleteifexists.js @@ -0,0 +1,171 @@ +let nock = require('nock'); + +module.exports.hash = "17316020828266734478147489dea269"; + +module.exports.testInfo = {"uniqueName":{"filesystem":"filesystem158977961561501572","file":"file158977961591704183","dir":"dir158977961681406305"},"newDate":{}} + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961561501572') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:26:53 GMT', + 'ETag', + '"0x8D7FAEC1344D59F"', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4be8fe-a01e-002b-3dd4-2c3126000000', + 'x-ms-client-request-id', + 'f1176dc0-3ffd-4118-9b61-164c76a56860', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:53 GMT' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961561501572/file158977961591704183') + .query(true) + .reply(201, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:54 GMT', + 'ETag', + '"0x8D7FAEC1375B2EC"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4cd-b01f-0070-3dd4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'eee57c09-aea5-46d0-aff0-aaa15e70f68f', + 'Date', + 'Mon, 18 May 2020 05:26:53 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961561501572/file158977961591704183', "Hello World") + .query(true) + .reply(202, "", [ + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4ce-b01f-0070-3ed4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '775db9f4-4231-48e3-a5ae-d45f2ff2a9ff', + 'Date', + 'Mon, 18 May 2020 05:26:53 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .patch('/filesystem158977961561501572/file158977961591704183') + .query(true) + .reply(200, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:54 GMT', + 'ETag', + '"0x8D7FAEC13CFFE23"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-server-encrypted', + 'true', + 'x-ms-request-id', + '2823e4d1-b01f-0070-41d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '03756e83-5941-4605-8a82-9a8c20c4f0f9', + 'Date', + 'Mon, 18 May 2020 05:26:54 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977961561501572/dir158977961681406305') + .reply(404, {"error":{"code":"PathNotFound","message":"The specified path does not exist.\nRequestId:2823e4d8-b01f-0070-48d4-2c365a000000\nTime:2020-05-18T05:26:55.0795499Z"}}, [ + 'Content-Length', + '163', + 'Content-Type', + 'application/json;charset=utf-8', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-error-code', + 'PathNotFound', + 'x-ms-request-id', + '2823e4d8-b01f-0070-48d4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '86eeec30-ee07-4e10-8706-1e07424755b2', + 'Date', + 'Mon, 18 May 2020 05:26:54 GMT' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .put('/filesystem158977961561501572/dir158977961681406305') + .query(true) + .reply(201, "", [ + 'Last-Modified', + 'Mon, 18 May 2020 05:26:55 GMT', + 'ETag', + '"0x8D7FAEC1429C71F"', + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4dd-b01f-0070-4cd4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + '76f58d30-797e-4cf0-8fe4-f4b783b9f5a3', + 'Date', + 'Mon, 18 May 2020 05:26:54 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.dfs.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977961561501572/dir158977961681406305') + .reply(200, "", [ + 'Server', + 'Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + '2823e4e0-b01f-0070-4fd4-2c365a000000', + 'x-ms-version', + '2019-07-07', + 'x-ms-client-request-id', + 'f3557731-2ac0-4591-8099-e4690aed2662', + 'Date', + 'Mon, 18 May 2020 05:26:54 GMT', + 'Content-Length', + '0' +]); + +nock('https://fakestorageaccount.blob.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/filesystem158977961561501572') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'dc4bed2c-a01e-002b-25d4-2c3126000000', + 'x-ms-client-request-id', + '3ddc4336-029d-484f-a62d-6935bc1ccd54', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:26:55 GMT' +]); diff --git a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts index 1beea5c951d5..1142f3ec90d2 100644 --- a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts @@ -127,7 +127,7 @@ describe("DataLakeFileSystemClient", () => { const metadata = { key: "value" }; const access = "filesystem"; const createRes = await cClient.createIfNotExists({ metadata, access }); - assert.notEqual(null, createRes); + assert.notDeepStrictEqual(null, createRes); const createRes2 = await cClient.createIfNotExists({ metadata, access }); assert.equal(null, createRes2); @@ -140,7 +140,7 @@ describe("DataLakeFileSystemClient", () => { assert.equal(null, await cClient.deleteIfExists()); await cClient.create(); - assert.notEqual(null, await cClient.deleteIfExists()); + assert.notDeepStrictEqual(null, await cClient.deleteIfExists()); }); it("delete", (done) => { diff --git a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts index d586cc1414da..91fa1dd91e0b 100644 --- a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts @@ -336,7 +336,7 @@ describe("DataLakePathClient", () => { it("DataLakeDirectoryClient-createIfNotExists", async () => { const directoryName = recorder.getUniqueName("dir"); const directoryClient = fileSystemClient.getDirectoryClient(directoryName); - assert.notEqual(null, await directoryClient.createIfNotExists()); + assert.notDeepStrictEqual(null, await directoryClient.createIfNotExists()); assert.equal(null, await directoryClient.createIfNotExists()); }); @@ -350,6 +350,6 @@ describe("DataLakePathClient", () => { assert.equal(null, await directoryClient.deleteIfExists()); await directoryClient.create(); - assert.notEqual(null, await directoryClient.deleteIfExists()); + assert.notDeepStrictEqual(null, await directoryClient.deleteIfExists()); }); }); diff --git a/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_createifnotexists.json b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_createifnotexists.json new file mode 100644 index 000000000000..7a6f1089b962 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_createifnotexists.json @@ -0,0 +1,145 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:51:58 GMT", + "etag": "\"0x8D7FAEF94AAB0B6\"", + "last-modified": "Mon, 18 May 2020 05:51:59 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "2b715a5e-99ac-4a96-87a1-6ee8ea2855a3", + "x-ms-request-id": "a9f6a5c8-601a-0048-71d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930/dir158978112149802377", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:51:59 GMT", + "etag": "\"0x8D7FAEF9505A7CC\"", + "last-modified": "Mon, 18 May 2020 05:52:00 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "67eb0636-6886-4de5-86f9-c13a6adae9ec", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:00.0518092Z", + "x-ms-file-creation-time": "2020-05-18T05:52:00.0518092Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:00.0518092Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5cc-601a-0048-74d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930/dir158978112149802377", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 409, + "response": "ResourceAlreadyExistsThe specified resource already exists.\nRequestId:a9f6a5cd-601a-0048-75d8-2cbf38000000\nTime:2020-05-18T05:52:00.3482887Z", + "responseHeaders": { + "content-length": "228", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:51:59 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "15cac587-9e6a-4c34-b646-f4415d3fb1b4", + "x-ms-error-code": "ResourceAlreadyExists", + "x-ms-request-id": "a9f6a5cd-601a-0048-75d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930/dir158978112149802377158978112238709606", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:00 GMT", + "etag": "\"0x8D7FAEF958CF0E5\"", + "last-modified": "Mon, 18 May 2020 05:52:00 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7b5c2bc7-ee97-44b7-82d6-fb650c00dc5a", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:00.9384165Z", + "x-ms-file-creation-time": "2020-05-18T05:52:00.9384165Z", + "x-ms-file-id": "16140971433240035328", + "x-ms-file-last-write-time": "2020-05-18T05:52:00.9384165Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5d0-601a-0048-77d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930/dir158978112149802377158978112238709606", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:00 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b22848a8-82e9-4369-b225-58622c54ce66", + "x-ms-request-id": "a9f6a5d3-601a-0048-79d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112004901930", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:01 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fd510c33-9df7-40e3-9972-b2a968ee4400", + "x-ms-request-id": "a9f6a5d6-601a-0048-7bd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978112004901930", + "dir": "dir158978112149802377", + "dir158978112149802377": "dir158978112149802377158978112238709606" + }, + "newDate": {} + }, + "hash": "44f320098f57e5f1787fd83ab90a12bc" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_deleteifexists.json b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_deleteifexists.json new file mode 100644 index 000000000000..0cb8187516f9 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_deleteifexists.json @@ -0,0 +1,145 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:01 GMT", + "etag": "\"0x8D7FAEF9697225F\"", + "last-modified": "Mon, 18 May 2020 05:52:02 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b4d5657d-504f-4c0b-834c-0085e1571895", + "x-ms-request-id": "a9f6a5d9-601a-0048-7dd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930/dir158978112471809255", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:02 GMT", + "etag": "\"0x8D7FAEF96F08FDD\"", + "last-modified": "Mon, 18 May 2020 05:52:03 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8996ecdc-3fd1-4710-88fe-edcac0a93adc", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:03.2690141Z", + "x-ms-file-creation-time": "2020-05-18T05:52:03.2690141Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:03.2690141Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5dc-601a-0048-7fd8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930/dir158978112471809255158978112530103895", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 404, + "response": "ResourceNotFoundThe specified resource does not exist.\nRequestId:a9f6a5de-601a-0048-01d8-2cbf38000000\nTime:2020-05-18T05:52:03.8447627Z", + "responseHeaders": { + "content-length": "223", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:02 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d81332d2-963d-4e25-b5c6-d44fa1210376", + "x-ms-error-code": "ResourceNotFound", + "x-ms-request-id": "a9f6a5de-601a-0048-01d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930/dir158978112471809255158978112530103895", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:03 GMT", + "etag": "\"0x8D7FAEF979FDA5E\"", + "last-modified": "Mon, 18 May 2020 05:52:04 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8c215a39-f38d-46f3-b949-ff5095219d56", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:04.4178014Z", + "x-ms-file-creation-time": "2020-05-18T05:52:04.4178014Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2020-05-18T05:52:04.4178014Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5e2-601a-0048-03d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930/dir158978112471809255158978112530103895", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:04 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "71ca6580-1691-4302-8b55-85d0267f5716", + "x-ms-request-id": "a9f6a5e4-601a-0048-05d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112412800930", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:04 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fdffcbcb-6321-4f30-b132-0685be2ad035", + "x-ms-request-id": "a9f6a5e7-601a-0048-07d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978112412800930", + "dir": "dir158978112471809255", + "dir158978112471809255": "dir158978112471809255158978112530103895" + }, + "newDate": {} + }, + "hash": "dec25781899b6294b96ed0ad9313628a" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_exists.json b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_exists.json new file mode 100644 index 000000000000..51491af36967 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/directoryclient/recording_exists.json @@ -0,0 +1,127 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112763200734", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:05 GMT", + "etag": "\"0x8D7FAEF98ABBCA7\"", + "last-modified": "Mon, 18 May 2020 05:52:06 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3184ab5a-c2fe-4379-bcbd-5de9335e85ec", + "x-ms-request-id": "a9f6a5e9-601a-0048-09d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112763200734/dir158978112820509613", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:05 GMT", + "etag": "\"0x8D7FAEF99046415\"", + "last-modified": "Mon, 18 May 2020 05:52:06 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b7646bcd-195d-4147-aaa2-6bedd208bb01", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-creation-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5ed-601a-0048-0bd8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112763200734/dir158978112820509613", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:06 GMT", + "etag": "\"0x8D7FAEF99046415\"", + "last-modified": "Mon, 18 May 2020 05:52:06 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "2e5d5098-144f-4906-8a95-1fac48a25b82", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-creation-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:06.7544085Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5ef-601a-0048-0dd8-2cbf38000000", + "x-ms-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112763200734/dir158978112820509613158978112936208676", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 404, + "response": "ResourceNotFoundThe specified resource does not exist.\nRequestId:a9f6a5f3-601a-0048-10d8-2cbf38000000\nTime:2020-05-18T05:52:07.9136362Z", + "responseHeaders": { + "content-length": "223", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:07 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1d56bf0e-c139-4387-92dc-0beb2aa68ddb", + "x-ms-error-code": "ResourceNotFound", + "x-ms-request-id": "a9f6a5f3-601a-0048-10d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978112763200734", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:07 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "c449059b-914d-4b72-ae01-2b0ed8236eb3", + "x-ms-request-id": "a9f6a5f6-601a-0048-12d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978112763200734", + "dir": "dir158978112820509613", + "dir158978112820509613": "dir158978112820509613158978112936208676" + }, + "newDate": {} + }, + "hash": "b8a79749eb645a2f892fbec5c54ff311" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_deleteifexists.json b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_deleteifexists.json new file mode 100644 index 000000000000..8e4dbb86f3d9 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_deleteifexists.json @@ -0,0 +1,139 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:08 GMT", + "etag": "\"0x8D7FAEF9A683BF3\"", + "last-modified": "Mon, 18 May 2020 05:52:09 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9402a792-34a7-432d-b68f-30c77a83df3d", + "x-ms-request-id": "a9f6a5fa-601a-0048-15d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763/dir158978113112008111", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:08 GMT", + "etag": "\"0x8D7FAEF9AC0E112\"", + "last-modified": "Mon, 18 May 2020 05:52:09 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d1b1bc4d-0da6-448c-9ae5-5b4180786dce", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:09.6674066Z", + "x-ms-file-creation-time": "2020-05-18T05:52:09.6674066Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:09.6674066Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a5fd-601a-0048-17d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763/dir158978113112008111/file158978113169901410", + "query": {}, + "requestBody": null, + "status": 404, + "response": "ResourceNotFoundThe specified resource does not exist.\nRequestId:a9f6a5ff-601a-0048-19d8-2cbf38000000\nTime:2020-05-18T05:52:10.2452831Z", + "responseHeaders": { + "content-length": "223", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:09 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7cfdb98d-7d2d-4071-bbac-f70049bb6cf5", + "x-ms-error-code": "ResourceNotFound", + "x-ms-request-id": "a9f6a5ff-601a-0048-19d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763/dir158978113112008111/file158978113169901410", + "query": {}, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:09 GMT", + "etag": "\"0x8D7FAEF9B70C7E2\"", + "last-modified": "Mon, 18 May 2020 05:52:10 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "f2669caf-bfbb-4c42-b614-c8bf08134e76", + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2020-05-18T05:52:10.8201954Z", + "x-ms-file-creation-time": "2020-05-18T05:52:10.8201954Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2020-05-18T05:52:10.8201954Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "1978041915872117222*12957844477200427368", + "x-ms-request-id": "a9f6a601-601a-0048-1bd8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763/dir158978113112008111/file158978113169901410", + "query": {}, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:10 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "22256165-6c67-4c03-8aa9-2a97f9f2cb2d", + "x-ms-request-id": "a9f6a603-601a-0048-1dd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113053702763", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:11 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8c7e07bf-64f0-47b1-af79-30820214744d", + "x-ms-request-id": "a9f6a606-601a-0048-1fd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978113053702763", + "dir": "dir158978113112008111", + "file": "file158978113169901410" + }, + "newDate": {} + }, + "hash": "c4251098f40ea448eb84b3a0b939eb6b" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_exists.json b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_exists.json new file mode 100644 index 000000000000..d9d705b81d03 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/fileclient/recording_exists.json @@ -0,0 +1,152 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:11 GMT", + "etag": "\"0x8D7FAEF9C7ADA23\"", + "last-modified": "Mon, 18 May 2020 05:52:12 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1d4bc071-10c9-4840-b6c2-cac3f4f157b6", + "x-ms-request-id": "a9f6a609-601a-0048-21d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379/dir158978113459700504", + "query": { + "restype": "directory" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:12 GMT", + "etag": "\"0x8D7FAEF9CD3553C\"", + "last-modified": "Mon, 18 May 2020 05:52:13 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a2781f8f-e667-4078-b78e-17c1b0eedfaa", + "x-ms-file-attributes": "Directory", + "x-ms-file-change-time": "2020-05-18T05:52:13.1437884Z", + "x-ms-file-creation-time": "2020-05-18T05:52:13.1437884Z", + "x-ms-file-id": "13835128424026341376", + "x-ms-file-last-write-time": "2020-05-18T05:52:13.1437884Z", + "x-ms-file-parent-id": "0", + "x-ms-file-permission-key": "15783046271365971681*12957844477200427368", + "x-ms-request-id": "a9f6a60c-601a-0048-23d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "HEAD", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379/dir158978113459700504/file158978113517502681", + "query": {}, + "requestBody": null, + "status": 404, + "response": "", + "responseHeaders": { + "date": "Mon, 18 May 2020 05:52:12 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "transfer-encoding": "chunked", + "x-ms-client-request-id": "e54c34d7-4708-4172-9357-0f0a09d27c5c", + "x-ms-error-code": "ResourceNotFound", + "x-ms-request-id": "a9f6a60e-601a-0048-25d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379/dir158978113459700504/file158978113517502681", + "query": {}, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:13 GMT", + "etag": "\"0x8D7FAEF9D833C1A\"", + "last-modified": "Mon, 18 May 2020 05:52:14 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "e2c419c9-b5fa-4d2f-bdc0-d0d97e338243", + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-creation-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "1978041915872117222*12957844477200427368", + "x-ms-request-id": "a9f6a611-601a-0048-27d8-2cbf38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "HEAD", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379/dir158978113459700504/file158978113517502681", + "query": {}, + "requestBody": null, + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "11", + "content-type": "application/octet-stream", + "date": "Mon, 18 May 2020 05:52:13 GMT", + "etag": "\"0x8D7FAEF9D833C1A\"", + "last-modified": "Mon, 18 May 2020 05:52:14 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "dba1de30-408b-4837-9c09-05a725fa2f15", + "x-ms-file-attributes": "Archive", + "x-ms-file-change-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-creation-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-id": "11529285414812647424", + "x-ms-file-last-write-time": "2020-05-18T05:52:14.2965786Z", + "x-ms-file-parent-id": "13835128424026341376", + "x-ms-file-permission-key": "1978041915872117222*12957844477200427368", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-request-id": "a9f6a613-601a-0048-29d8-2cbf38000000", + "x-ms-server-encrypted": "true", + "x-ms-type": "File", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113402108379", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:14 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d4a5da1e-4cc2-4703-8924-d39ce74a0c12", + "x-ms-request-id": "a9f6a615-601a-0048-2bd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978113402108379", + "dir": "dir158978113459700504", + "file": "file158978113517502681" + }, + "newDate": {} + }, + "hash": "5c254c3d7520a6dafeb3cd746396176b" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_createifnotexists.json b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_createifnotexists.json new file mode 100644 index 000000000000..b5aeb7e76b74 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_createifnotexists.json @@ -0,0 +1,108 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113981605831", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:17 GMT", + "etag": "\"0x8D7FAEF9FEF6B40\"", + "last-modified": "Mon, 18 May 2020 05:52:18 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "62575038-2b36-4c43-ab4d-e8b7f6b02f82", + "x-ms-request-id": "a9f6a626-601a-0048-37d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113981605831158978114039400925", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:18 GMT", + "etag": "\"0x8D7FAEFA0475F39\"", + "last-modified": "Mon, 18 May 2020 05:52:18 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "51688ada-5dff-4694-b619-c5ad7cfa28b8", + "x-ms-request-id": "a9f6a62a-601a-0048-39d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113981605831158978114039400925", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 409, + "response": "ShareAlreadyExistsThe specified share already exists.\nRequestId:a9f6a62d-601a-0048-3ad8-2cbf38000000\nTime:2020-05-18T05:52:19.2336358Z", + "responseHeaders": { + "content-length": "222", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:18 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1fc8d7a8-f2e3-4824-80d7-a7eb230a1a75", + "x-ms-error-code": "ShareAlreadyExists", + "x-ms-request-id": "a9f6a62d-601a-0048-3ad8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113981605831158978114039400925", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:18 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a07789c5-e59e-415b-afbd-4e1747766246", + "x-ms-request-id": "a9f6a630-601a-0048-3cd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113981605831", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:19 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "37144726-b6e1-475a-b2e9-6fe11a31da75", + "x-ms-request-id": "a9f6a633-601a-0048-3ed8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978113981605831", + "share158978113981605831": "share158978113981605831158978114039400925" + }, + "newDate": {} + }, + "hash": "1d5ed99d3f822200dacdcfac7f67f5fa" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_deletifexists.json b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_deletifexists.json new file mode 100644 index 000000000000..1a4a54f6d61a --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_deletifexists.json @@ -0,0 +1,109 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978114242308721", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:20 GMT", + "etag": "\"0x8D7FAEFA17DCD4E\"", + "last-modified": "Mon, 18 May 2020 05:52:20 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "51f88630-c302-43b5-be82-5e1448fdeeb3", + "x-ms-request-id": "a9f6a637-601a-0048-40d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978114242308721158978114300508815", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:20 GMT", + "etag": "\"0x8D7FAEFA1D5E847\"", + "last-modified": "Mon, 18 May 2020 05:52:21 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "be6c73f2-0ab6-4978-8c5a-5c473db49b39", + "x-ms-request-id": "a9f6a63b-601a-0048-42d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978114242308721158978114300508815", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:21 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "e02eeb72-be21-4cdb-b537-4c66f757dbd7", + "x-ms-request-id": "a9f6a63f-601a-0048-44d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share1589781142423087213158978114415803871", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 404, + "response": "ShareNotFoundThe specified share does not exist.\nRequestId:a9f6a642-601a-0048-46d8-2cbf38000000\nTime:2020-05-18T05:52:22.7020860Z", + "responseHeaders": { + "content-length": "217", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:21 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fdf1072c-71a6-405e-9dbe-4824b6fd59b4", + "x-ms-error-code": "ShareNotFound", + "x-ms-request-id": "a9f6a642-601a-0048-46d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978114242308721", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:22 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b14ba131-ddc4-4ba4-bed1-645d82fa91ad", + "x-ms-request-id": "a9f6a645-601a-0048-48d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978114242308721", + "share158978114242308721": "share158978114242308721158978114300508815", + "share1589781142423087213": "share1589781142423087213158978114415803871" + }, + "newDate": {} + }, + "hash": "27fb753ff4c53facca241255df04cd2c" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_exists.json b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_exists.json new file mode 100644 index 000000000000..954956fd61ee --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/browsers/shareclient/recording_exists.json @@ -0,0 +1,93 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113750506578", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:15 GMT", + "etag": "\"0x8D7FAEF9E8EFF3B\"", + "last-modified": "Mon, 18 May 2020 05:52:16 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7d170480-afa2-46c7-9367-3ef90c81e699", + "x-ms-request-id": "a9f6a617-601a-0048-2dd8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113750506578", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 200, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:15 GMT", + "etag": "\"0x8D7FAEF9E8EFF3B\"", + "last-modified": "Mon, 18 May 2020 05:52:16 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "74ce1c17-bce9-429a-91f9-df373304c8f4", + "x-ms-has-immutability-policy": "false", + "x-ms-has-legal-hold": "false", + "x-ms-request-id": "a9f6a61c-601a-0048-30d8-2cbf38000000", + "x-ms-share-quota": "5120", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113750506578158978113865604206", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 404, + "response": "ShareNotFoundThe specified share does not exist.\nRequestId:a9f6a61e-601a-0048-32d8-2cbf38000000\nTime:2020-05-18T05:52:17.2001946Z", + "responseHeaders": { + "content-length": "217", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:52:16 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9a860e0a-90b9-4637-ac0c-d35a9cf3226a", + "x-ms-error-code": "ShareNotFound", + "x-ms-request-id": "a9f6a61e-601a-0048-32d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.file.core.windows.net/share158978113750506578", + "query": { + "restype": "share" + }, + "requestBody": null, + "status": 202, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:52:16 GMT", + "server": "Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3303b283-07ed-46d5-8c23-e0584a8b1a3c", + "x-ms-request-id": "a9f6a623-601a-0048-35d8-2cbf38000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "share": "share158978113750506578", + "share158978113750506578": "share158978113750506578158978113865604206" + }, + "newDate": {} + }, + "hash": "af6a0e2cc9ade6366722f18ab328d4be" +} \ No newline at end of file diff --git a/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_createifnotexists.js b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_createifnotexists.js new file mode 100644 index 000000000000..22368c142289 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_createifnotexists.js @@ -0,0 +1,161 @@ +let nock = require('nock'); + +module.exports.hash = "8efaa05b167dfd91d7eb2869d74482bf"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978107550705372","dir":"dir158978107688705269","dir158978107688705269":"dir158978107688705269158978107751909767"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107550705372') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:14 GMT', + 'ETag', + '"0x8D7FAEF7A118948"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2631-401a-0012-0dd8-2cd9df000000', + 'x-ms-client-request-id', + '6404a1f5-4c3a-4802-b00b-7280f1a4927d', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:14 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107550705372/dir158978107688705269') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:15 GMT', + 'ETag', + '"0x8D7FAEF7A4564D3"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2634-401a-0012-0ed8-2cd9df000000', + 'x-ms-client-request-id', + 'c75fd2f1-d619-4c83-8480-4680de9dfd87', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:15.1710419Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:15.1710419Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:15.1710419Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:14 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107550705372/dir158978107688705269') + .query(true) + .reply(409, "ResourceAlreadyExistsThe specified resource already exists.\nRequestId:b2da2635-401a-0012-0fd8-2cd9df000000\nTime:2020-05-18T05:51:15.4766432Z", [ + 'Content-Length', + '228', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2635-401a-0012-0fd8-2cd9df000000', + 'x-ms-client-request-id', + 'c826c54b-9e80-4f9c-b92c-c5c02e901f6d', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ResourceAlreadyExists', + 'Date', + 'Mon, 18 May 2020 05:51:15 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107550705372/dir158978107688705269158978107751909767') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:15 GMT', + 'ETag', + '"0x8D7FAEF7AA2894B"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2637-401a-0012-10d8-2cd9df000000', + 'x-ms-client-request-id', + '8c6cf1da-52ca-4f6b-ab7f-c8201865edae', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:15.7814603Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:15.7814603Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:15.7814603Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '16140971433240035328', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:15 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978107550705372/dir158978107688705269158978107751909767') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2638-401a-0012-11d8-2cd9df000000', + 'x-ms-client-request-id', + 'bac363a4-2225-41c4-9c55-2d1e45517b08', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:15 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978107550705372') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2639-401a-0012-12d8-2cd9df000000', + 'x-ms-client-request-id', + '1b352fec-5233-4a4c-97cd-a0e53822303b', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:16 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_deleteifexists.js b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_deleteifexists.js new file mode 100644 index 000000000000..9f3c84060e7d --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_deleteifexists.js @@ -0,0 +1,161 @@ +let nock = require('nock'); + +module.exports.hash = "1049ebc97f564d93f265d8c9f984849e"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978107842601513","dir":"dir158978107872208254","dir158978107872208254":"dir158978107872208254158978107908607949"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107842601513') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:16 GMT', + 'ETag', + '"0x8D7FAEF7B2CF0A7"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da263a-401a-0012-13d8-2cd9df000000', + 'x-ms-client-request-id', + '200a9e33-01f3-436d-9f7f-c10551c38385', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:16 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107842601513/dir158978107872208254') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:17 GMT', + 'ETag', + '"0x8D7FAEF7B644D98"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da263c-401a-0012-14d8-2cd9df000000', + 'x-ms-client-request-id', + 'a2836029-5f8f-4cbd-911b-90bb05c6f6de', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:17.0513304Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:17.0513304Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:17.0513304Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:16 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978107842601513/dir158978107872208254158978107908607949') + .query(true) + .reply(404, "ResourceNotFoundThe specified resource does not exist.\nRequestId:b2da263f-401a-0012-15d8-2cd9df000000\nTime:2020-05-18T05:51:17.3529760Z", [ + 'Content-Length', + '223', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da263f-401a-0012-15d8-2cd9df000000', + 'x-ms-client-request-id', + '84fa0ba6-abbd-4111-8da3-1b9d4d906acc', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ResourceNotFound', + 'Date', + 'Mon, 18 May 2020 05:51:16 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978107842601513/dir158978107872208254158978107908607949') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:17 GMT', + 'ETag', + '"0x8D7FAEF7BBF009E"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2641-401a-0012-17d8-2cd9df000000', + 'x-ms-client-request-id', + '6422d90a-444f-4afd-9de6-156688a8df16', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:17.6457374Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:17.6457374Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:17.6457374Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '11529285414812647424', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:17 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978107842601513/dir158978107872208254158978107908607949') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2642-401a-0012-18d8-2cd9df000000', + 'x-ms-client-request-id', + '47281c29-a266-4485-9270-bfccd47f85ed', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:17 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978107842601513') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2644-401a-0012-19d8-2cd9df000000', + 'x-ms-client-request-id', + '15ef2946-7047-4c03-8533-15b80456486b', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:17 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_exists.js b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_exists.js new file mode 100644 index 000000000000..f87e507226d8 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/directoryclient/recording_exists.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "76ab00b4ac39f66a41605dd37adec5e3"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108027809479","dir":"dir158978108058109414","dir158978108058109414":"dir158978108058109414158978108118100008"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108027809479') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:18 GMT', + 'ETag', + '"0x8D7FAEF7C48582C"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2645-401a-0012-1ad8-2cd9df000000', + 'x-ms-client-request-id', + 'ec84b59b-61ca-4474-9444-b907b8fb24ce', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:18 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108027809479/dir158978108058109414') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:18 GMT', + 'ETag', + '"0x8D7FAEF7C763BC9"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2647-401a-0012-1bd8-2cd9df000000', + 'x-ms-client-request-id', + '144b5fa8-6b19-465c-98f3-2b484bf4d37c', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:18 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .get('/share158978108027809479/dir158978108058109414') + .query(true) + .reply(200, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:18 GMT', + 'ETag', + '"0x8D7FAEF7C763BC9"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2648-401a-0012-1cd8-2cd9df000000', + 'x-ms-client-request-id', + '18f964a3-bbf1-4613-b8e3-3469f3ebbf10', + 'x-ms-version', + '2019-07-07', + 'x-ms-server-encrypted', + 'true', + 'x-ms-file-change-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:18.8465609Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Last-Modified,ETag,x-ms-server-encrypted,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,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:18 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .get('/share158978108027809479/dir158978108058109414158978108118100008') + .query(true) + .reply(404, "ResourceNotFoundThe specified resource does not exist.\nRequestId:b2da2649-401a-0012-1dd8-2cd9df000000\nTime:2020-05-18T05:51:19.4484607Z", [ + 'Content-Length', + '223', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2649-401a-0012-1dd8-2cd9df000000', + 'x-ms-client-request-id', + 'd734061e-9d17-4007-a447-e4c0c8c7867b', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ResourceNotFound', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:19 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108027809479') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da264a-401a-0012-1ed8-2cd9df000000', + 'x-ms-client-request-id', + 'ebbd0dbc-0e6a-4bbe-91ea-47c71e60e832', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:19 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/fileclient/recording_deleteifexists.js b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_deleteifexists.js new file mode 100644 index 000000000000..f7e2071316c2 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_deleteifexists.js @@ -0,0 +1,158 @@ +let nock = require('nock'); + +module.exports.hash = "3cd044cf62a7627d4095071099982981"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108193707360","dir":"dir158978108223407005","file":"file158978108253102790"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108193707360') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:20 GMT', + 'ETag', + '"0x8D7FAEF7D44C05A"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da264b-401a-0012-1fd8-2cd9df000000', + 'x-ms-client-request-id', + '54bf16e2-c3d5-458e-8226-a019278efe2b', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:19 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108193707360/dir158978108223407005') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:20 GMT', + 'ETag', + '"0x8D7FAEF7D725432"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da264d-401a-0012-20d8-2cd9df000000', + 'x-ms-client-request-id', + 'e5c7370e-8ce6-4ca2-85d8-586332da8800', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:20.4986930Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:20.4986930Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:20.4986930Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:20 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108193707360/dir158978108223407005/file158978108253102790') + .reply(404, "ResourceNotFoundThe specified resource does not exist.\nRequestId:b2da264f-401a-0012-21d8-2cd9df000000\nTime:2020-05-18T05:51:20.7944189Z", [ + 'Content-Length', + '223', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da264f-401a-0012-21d8-2cd9df000000', + 'x-ms-client-request-id', + '29097611-39e0-4049-978e-4abd8343d90b', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ResourceNotFound', + 'Date', + 'Mon, 18 May 2020 05:51:20 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108193707360/dir158978108223407005/file158978108253102790') + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:21 GMT', + 'ETag', + '"0x8D7FAEF7DCC43D0"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2650-401a-0012-22d8-2cd9df000000', + 'x-ms-client-request-id', + '2b617c12-89f0-4af0-ba05-a9b28b43ad85', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:21.0880976Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:21.0880976Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:21.0880976Z', + 'x-ms-file-permission-key', + '1978041915872117222*12957844477200427368', + 'x-ms-file-attributes', + 'Archive', + 'x-ms-file-id', + '11529285414812647424', + 'x-ms-file-parent-id', + '13835128424026341376', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:20 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108193707360/dir158978108223407005/file158978108253102790') + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2651-401a-0012-23d8-2cd9df000000', + 'x-ms-client-request-id', + '6dc42b3f-9023-48c2-b128-a9cb8c90a25c', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:21 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108193707360') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2652-401a-0012-24d8-2cd9df000000', + 'x-ms-client-request-id', + '264f64c5-66b1-46a2-8a65-176b977ee4a0', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:21 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/fileclient/recording_exists.js b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_exists.js new file mode 100644 index 000000000000..24525dbf9b7c --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/fileclient/recording_exists.js @@ -0,0 +1,192 @@ +let nock = require('nock'); + +module.exports.hash = "9d35b839f8787ab888e77eb6d4ce6c08"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108371900572","dir":"dir158978108401803708","file":"file158978108431706300"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108371900572') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:21 GMT', + 'ETag', + '"0x8D7FAEF7E552973"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2653-401a-0012-25d8-2cd9df000000', + 'x-ms-client-request-id', + 'd24a9bbc-3e4e-4683-b62a-520501705ca1', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:21 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108371900572/dir158978108401803708') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:22 GMT', + 'ETag', + '"0x8D7FAEF7E826D55"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2656-401a-0012-26d8-2cd9df000000', + 'x-ms-client-request-id', + '8853c31d-dbf0-42b9-93c5-547efcd2883b', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:22.2819157Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:22.2819157Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:22.2819157Z', + 'x-ms-file-permission-key', + '15783046271365971681*12957844477200427368', + 'x-ms-file-attributes', + 'Directory', + 'x-ms-file-id', + '13835128424026341376', + 'x-ms-file-parent-id', + '0', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:21 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .head('/share158978108371900572/dir158978108401803708/file158978108431706300') + .reply(404, "", [ + 'Transfer-Encoding', + 'chunked', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2658-401a-0012-28d8-2cd9df000000', + 'x-ms-client-request-id', + 'aeca4849-acf4-444f-be33-12061be7f0eb', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ResourceNotFound', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:22 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108371900572/dir158978108401803708/file158978108431706300') + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:22 GMT', + 'ETag', + '"0x8D7FAEF7EDD4778"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2659-401a-0012-29d8-2cd9df000000', + 'x-ms-client-request-id', + '4fee2dc2-d702-4738-a6fc-e8d8b8cc9d8c', + 'x-ms-version', + '2019-07-07', + 'x-ms-file-change-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-permission-key', + '1978041915872117222*12957844477200427368', + 'x-ms-file-attributes', + 'Archive', + 'x-ms-file-id', + '11529285414812647424', + 'x-ms-file-parent-id', + '13835128424026341376', + 'x-ms-request-server-encrypted', + 'true', + 'Date', + 'Mon, 18 May 2020 05:51:22 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .head('/share158978108371900572/dir158978108401803708/file158978108431706300') + .reply(200, "", [ + 'Content-Length', + '11', + 'Content-Type', + 'application/octet-stream', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:22 GMT', + 'ETag', + '"0x8D7FAEF7EDD4778"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da265b-401a-0012-2ad8-2cd9df000000', + 'x-ms-client-request-id', + '263ba5e7-f47c-43fc-ba21-ef446e4d8c96', + 'x-ms-version', + '2019-07-07', + 'x-ms-type', + 'File', + 'x-ms-server-encrypted', + 'true', + 'x-ms-lease-status', + 'unlocked', + 'x-ms-lease-state', + 'available', + 'x-ms-file-change-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-last-write-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-creation-time', + '2020-05-18T05:51:22.8773240Z', + 'x-ms-file-permission-key', + '1978041915872117222*12957844477200427368', + '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,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:22 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108371900572') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da265d-401a-0012-2bd8-2cd9df000000', + 'x-ms-client-request-id', + '07ecb2b0-62ab-458c-a83e-22fcc20b5376', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:23 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/shareclient/recording_createifnotexists.js b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_createifnotexists.js new file mode 100644 index 000000000000..aec0ab714d07 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_createifnotexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "22482e1dd1c751c45cc4c4047970c845"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108669701515","share158978108669701515":"share158978108669701515158978108699400572"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108669701515') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:24 GMT', + 'ETag', + '"0x8D7FAEF801AF9A4"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da266f-401a-0012-30d8-2cd9df000000', + 'x-ms-client-request-id', + 'a6b025ec-c745-4c58-9d45-dd0a3696a79a', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:24 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108669701515158978108699400572') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:25 GMT', + 'ETag', + '"0x8D7FAEF80487A8E"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2671-401a-0012-31d8-2cd9df000000', + 'x-ms-client-request-id', + '5dbe7c10-39f8-47d1-8c2b-ba11df145182', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:24 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108669701515158978108699400572') + .query(true) + .reply(409, "ShareAlreadyExistsThe specified share already exists.\nRequestId:b2da2673-401a-0012-32d8-2cd9df000000\nTime:2020-05-18T05:51:25.5537999Z", [ + 'Content-Length', + '222', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2673-401a-0012-32d8-2cd9df000000', + 'x-ms-client-request-id', + 'f9a13168-6513-48e8-80b3-f0e2c0a68f36', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ShareAlreadyExists', + 'Date', + 'Mon, 18 May 2020 05:51:25 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108669701515158978108699400572') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2675-401a-0012-33d8-2cd9df000000', + 'x-ms-client-request-id', + '20401e55-ebd4-494c-88ee-be585955beb8', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:25 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108669701515') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2676-401a-0012-34d8-2cd9df000000', + 'x-ms-client-request-id', + '07d6b264-8e4c-4478-b02e-acdd70c58935', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:25 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/shareclient/recording_deletifexists.js b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_deletifexists.js new file mode 100644 index 000000000000..83d8cfb6ba11 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_deletifexists.js @@ -0,0 +1,107 @@ +let nock = require('nock'); + +module.exports.hash = "e97179d82a50d9d87f011bdafbd816d3"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108818205267","share158978108818205267":"share158978108818205267158978108847803646","share1589781088182052673":"share1589781088182052673158978108907107388"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108818205267') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:26 GMT', + 'ETag', + '"0x8D7FAEF80FD9396"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2677-401a-0012-35d8-2cd9df000000', + 'x-ms-client-request-id', + '50c45b56-e31d-403a-9225-abe367d527e7', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:26 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108818205267158978108847803646') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:26 GMT', + 'ETag', + '"0x8D7FAEF812B1472"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da267a-401a-0012-37d8-2cd9df000000', + 'x-ms-client-request-id', + '65306e07-9751-4a86-9400-cc9ecd8d9a26', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:26 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108818205267158978108847803646') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da267c-401a-0012-38d8-2cd9df000000', + 'x-ms-client-request-id', + '5dac858c-28ee-475b-ba7d-d7dfc6b5c32d', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:26 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share1589781088182052673158978108907107388') + .query(true) + .reply(404, "ShareNotFoundThe specified share does not exist.\nRequestId:b2da267e-401a-0012-39d8-2cd9df000000\nTime:2020-05-18T05:51:27.3350614Z", [ + 'Content-Length', + '217', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da267e-401a-0012-39d8-2cd9df000000', + 'x-ms-client-request-id', + 'a3c80b81-8ca9-46e3-b221-f88c8750c8a2', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ShareNotFound', + 'Date', + 'Mon, 18 May 2020 05:51:26 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108818205267') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da267f-401a-0012-3ad8-2cd9df000000', + 'x-ms-client-request-id', + '702686cb-608a-418e-8ea1-e3fb0808adc8', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:27 GMT' +]); diff --git a/sdk/storage/storage-file-share/recordings/node/shareclient/recording_exists.js b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_exists.js new file mode 100644 index 000000000000..9cfceacdd117 --- /dev/null +++ b/sdk/storage/storage-file-share/recordings/node/shareclient/recording_exists.js @@ -0,0 +1,103 @@ +let nock = require('nock'); + +module.exports.hash = "e795b67a4f961b23b646fb0f8c21444d"; + +module.exports.testInfo = {"uniqueName":{"share":"share158978108551204482","share158978108551204482":"share158978108551204482158978108609708713"},"newDate":{}} + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .put('/share158978108551204482') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:23 GMT', + 'ETag', + '"0x8D7FAEF7F65B975"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2666-401a-0012-2cd8-2cd9df000000', + 'x-ms-client-request-id', + '2bde80ff-3265-4fba-92dc-5d3dbed518fb', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:23 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .get('/share158978108551204482') + .query(true) + .reply(200, "", [ + 'Content-Length', + '0', + 'Last-Modified', + 'Mon, 18 May 2020 05:51:23 GMT', + 'ETag', + '"0x8D7FAEF7F65B975"', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da2669-401a-0012-2dd8-2cd9df000000', + 'x-ms-client-request-id', + '5c766a9b-37d8-4f97-b65f-a835d0e46de4', + 'x-ms-version', + '2019-07-07', + 'x-ms-has-immutability-policy', + 'false', + 'x-ms-has-legal-hold', + 'false', + 'x-ms-share-quota', + '5120', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Last-Modified,ETag,x-ms-has-immutability-policy,x-ms-has-legal-hold,x-ms-share-quota,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:23 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .get('/share158978108551204482158978108609708713') + .query(true) + .reply(404, "ShareNotFoundThe specified share does not exist.\nRequestId:b2da266c-401a-0012-2ed8-2cd9df000000\nTime:2020-05-18T05:51:24.3649542Z", [ + 'Content-Length', + '217', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da266c-401a-0012-2ed8-2cd9df000000', + 'x-ms-client-request-id', + '6acc5f58-83c4-42a6-a45d-f0f54d215a0e', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'ShareNotFound', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:51:23 GMT' +]); + +nock('https://fakestorageaccount.file.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/share158978108551204482') + .query(true) + .reply(202, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'b2da266e-401a-0012-2fd8-2cd9df000000', + 'x-ms-client-request-id', + 'c968185d-87d4-49bb-a6b5-5ee222b73423', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:51:24 GMT' +]); diff --git a/sdk/storage/storage-file-share/test/shareclient.spec.ts b/sdk/storage/storage-file-share/test/shareclient.spec.ts index 6404a8306242..962d5c82f54e 100644 --- a/sdk/storage/storage-file-share/test/shareclient.spec.ts +++ b/sdk/storage/storage-file-share/test/shareclient.spec.ts @@ -69,7 +69,7 @@ describe("ShareClient", () => { it("createIfNotExists", async () => { const shareClient2 = serviceClient.getShareClient(recorder.getUniqueName(shareName)); const res = await shareClient2.createIfNotExists(); - assert.notEqual(null, res); + assert.notDeepStrictEqual(null, res); const res2 = await shareClient2.createIfNotExists(); assert.equal(null, res2); await shareClient2.delete(); @@ -85,7 +85,7 @@ describe("ShareClient", () => { await shareClient2.create(); await shareClient2.deletIfExists(); - const shareClient3 = serviceClient.getShareClient(recorder.getUniqueName(shareName)); + const shareClient3 = serviceClient.getShareClient(recorder.getUniqueName(shareName + '3')); await shareClient3.deletIfExists(); }); diff --git a/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_createifnotexists.json b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_createifnotexists.json new file mode 100644 index 000000000000..5bcfa7fa70ed --- /dev/null +++ b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_createifnotexists.json @@ -0,0 +1,85 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152434109586", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:42 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "493c1131-ba4a-4a01-8b64-3f88aa2ccb48", + "x-ms-request-id": "3d8b7a45-5003-001e-1ed9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152434109586", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 204, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:42 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "844535f0-6ff1-4d10-9910-a511869c3d4d", + "x-ms-request-id": "3d8b7c83-5003-001e-55d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152434109586", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 409, + "response": "QueueAlreadyExistsThe specified queue already exists.\nRequestId:3d8b80f1-5003-001e-30d9-2c4ed7000000\nTime:2020-05-18T05:58:43.7722180Z", + "responseHeaders": { + "content-length": "222", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:58:43 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "af893455-8680-4268-9537-be4456ec2f18", + "x-ms-error-code": "QueueAlreadyExists", + "x-ms-request-id": "3d8b80f1-5003-001e-30d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152434109586", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 204, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:44 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "93e45113-0f50-4158-8647-b0862a123933", + "x-ms-request-id": "3d8b8641-5003-001e-64d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "queue": "queue158978152434109586" + }, + "newDate": {} + }, + "hash": "2dfd66cca269eb00ecd875c757db0440" +} \ No newline at end of file diff --git a/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_deleteifexists.json b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_deleteifexists.json new file mode 100644 index 000000000000..37d5320f4f44 --- /dev/null +++ b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_deleteifexists.json @@ -0,0 +1,104 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152639806367", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:44 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "72ff95af-5bfa-4dcc-9281-c61a876b4e49", + "x-ms-request-id": "3d8b899b-5003-001e-2fd9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152639806367158978152698101446", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 404, + "response": "QueueNotFoundThe specified queue does not exist.\nRequestId:3d8b8dc3-5003-001e-45d9-2c4ed7000000\nTime:2020-05-18T05:58:45.5314591Z", + "responseHeaders": { + "content-length": "217", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:58:45 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "88ed4a52-0c97-48ef-ab30-6aee7f949cd1", + "x-ms-error-code": "QueueNotFound", + "x-ms-request-id": "3d8b8dc3-5003-001e-45d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152639806367158978152698101446", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:45 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "47ee701b-0405-4d75-9604-ae1c9daf3909", + "x-ms-request-id": "3d8b92a0-5003-001e-03d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152639806367158978152698101446", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 204, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:46 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b3fb7bad-d544-4d6d-baa4-118cc2589d6a", + "x-ms-request-id": "3d8b9706-5003-001e-50d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152639806367", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 204, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:46 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fd9ba84f-6259-4438-8361-d2b2906337bf", + "x-ms-request-id": "3d8b9b2c-5003-001e-64d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "queue": "queue158978152639806367", + "queue158978152639806367": "queue158978152639806367158978152698101446" + }, + "newDate": {} + }, + "hash": "6a4f2d1b9350f0624e76226aa5bccfa5" +} \ No newline at end of file diff --git a/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_exists.json b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_exists.json new file mode 100644 index 000000000000..06783932f659 --- /dev/null +++ b/sdk/storage/storage-queue/recordings/browsers/queueclient/recording_exists.json @@ -0,0 +1,90 @@ +{ + "recordings": [ + { + "method": "PUT", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152108502408", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 201, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:40 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "793552df-6525-4732-b9de-d14d683a111a", + "x-ms-request-id": "3d8b668d-5003-001e-53d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152108502408", + "query": { + "comp": "metadata", + "timeout": "30" + }, + "requestBody": null, + "status": 200, + "response": "", + "responseHeaders": { + "cache-control": "no-cache", + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:40 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-approximate-messages-count": "0", + "x-ms-client-request-id": "5908d4f5-f42d-4adc-a27b-c25ded6aa59c", + "x-ms-request-id": "3d8b6aec-5003-001e-18d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "GET", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152108502408158978152313603258", + "query": { + "comp": "metadata", + "timeout": "30" + }, + "requestBody": null, + "status": 404, + "response": "QueueNotFoundThe specified queue does not exist.\nRequestId:3d8b6f17-5003-001e-22d9-2c4ed7000000\nTime:2020-05-18T05:58:41.7027617Z", + "responseHeaders": { + "content-length": "217", + "content-type": "application/xml", + "date": "Mon, 18 May 2020 05:58:41 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "12cf103f-f6c1-4a4d-bc46-d435e3b4981f", + "x-ms-error-code": "QueueNotFound", + "x-ms-request-id": "3d8b6f17-5003-001e-22d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + }, + { + "method": "DELETE", + "url": "https://fakestorageaccount.queue.core.windows.net/queue158978152108502408", + "query": { + "timeout": "30" + }, + "requestBody": null, + "status": 204, + "response": "", + "responseHeaders": { + "content-length": "0", + "date": "Mon, 18 May 2020 05:58:41 GMT", + "server": "Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7529fb45-f9eb-45a9-a082-fcf9f77436db", + "x-ms-request-id": "3d8b74f5-5003-001e-64d9-2c4ed7000000", + "x-ms-version": "2019-07-07" + } + } + ], + "uniqueTestInfo": { + "uniqueName": { + "queue": "queue158978152108502408", + "queue158978152108502408": "queue158978152108502408158978152313603258" + }, + "newDate": {} + }, + "hash": "b378eed67d5e32bad7a662a0828b1601" +} \ No newline at end of file diff --git a/sdk/storage/storage-queue/recordings/node/queueclient/recording_createifnotexists.js b/sdk/storage/storage-queue/recordings/node/queueclient/recording_createifnotexists.js new file mode 100644 index 000000000000..701288ae4f78 --- /dev/null +++ b/sdk/storage/storage-queue/recordings/node/queueclient/recording_createifnotexists.js @@ -0,0 +1,81 @@ +let nock = require('nock'); + +module.exports.hash = "40ed65f81a62b4b9c0e44b0c82d4a02e"; + +module.exports.testInfo = {"uniqueName":{"queue":"queue158978149547700911"},"newDate":{}} + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149547700911') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46faa11-8003-0050-79d9-2c605f000000', + 'x-ms-client-request-id', + '0351f48a-f4c4-43d1-98f9-ff6b62df0751', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:13 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149547700911') + .query(true) + .reply(204, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fab08-8003-0050-62d9-2c605f000000', + 'x-ms-client-request-id', + 'd96c803b-f773-4ece-b9af-18ad3b7a69e4', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:13 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149547700911') + .query(true) + .reply(409, "QueueAlreadyExistsThe specified queue already exists.\nRequestId:f46fac03-8003-0050-52d9-2c605f000000\nTime:2020-05-18T05:58:14.3411781Z", [ + 'Content-Length', + '222', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fac03-8003-0050-52d9-2c605f000000', + 'x-ms-client-request-id', + 'a425cd6c-4a10-4ec0-b87c-916af7d39185', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'QueueAlreadyExists', + 'Date', + 'Mon, 18 May 2020 05:58:14 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/queue158978149547700911') + .query(true) + .reply(204, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46facf2-8003-0050-36d9-2c605f000000', + 'x-ms-client-request-id', + '62b3bb18-cc28-4e10-b6e0-070d3e352bb4', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:14 GMT' +]); diff --git a/sdk/storage/storage-queue/recordings/node/queueclient/recording_deleteifexists.js b/sdk/storage/storage-queue/recordings/node/queueclient/recording_deleteifexists.js new file mode 100644 index 000000000000..68b9f9ee9c3d --- /dev/null +++ b/sdk/storage/storage-queue/recordings/node/queueclient/recording_deleteifexists.js @@ -0,0 +1,99 @@ +let nock = require('nock'); + +module.exports.hash = "1aaaf9d056b4eabfcaa061f70b932ee7"; + +module.exports.testInfo = {"uniqueName":{"queue":"queue158978149667203283","queue158978149667203283":"queue158978149667203283158978149696809280"},"newDate":{}} + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149667203283') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fadea-8003-0050-25d9-2c605f000000', + 'x-ms-client-request-id', + '97dba666-e09c-43ff-a6e9-8d1264da40a2', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:14 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/queue158978149667203283158978149696809280') + .query(true) + .reply(404, "QueueNotFoundThe specified queue does not exist.\nRequestId:f46faf0c-8003-0050-3dd9-2c605f000000\nTime:2020-05-18T05:58:15.2348136Z", [ + 'Content-Length', + '217', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46faf0c-8003-0050-3dd9-2c605f000000', + 'x-ms-client-request-id', + 'f2a699b8-2645-4d28-9303-0b42f19c0d1c', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'QueueNotFound', + 'Date', + 'Mon, 18 May 2020 05:58:15 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149667203283158978149696809280') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fb02b-8003-0050-4dd9-2c605f000000', + 'x-ms-client-request-id', + '3487828b-b346-4b88-9ce9-8a39413172af', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:15 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/queue158978149667203283158978149696809280') + .query(true) + .reply(204, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fb0f6-8003-0050-0ed9-2c605f000000', + 'x-ms-client-request-id', + 'fa2a9c75-74c3-4c61-8eb7-3443a601389a', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:15 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/queue158978149667203283') + .query(true) + .reply(204, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fb1dd-8003-0050-71d9-2c605f000000', + 'x-ms-client-request-id', + '2512a572-210b-40a8-a697-5dd82fcc8041', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:15 GMT' +]); diff --git a/sdk/storage/storage-queue/recordings/node/queueclient/recording_exists.js b/sdk/storage/storage-queue/recordings/node/queueclient/recording_exists.js new file mode 100644 index 000000000000..58d04b489b17 --- /dev/null +++ b/sdk/storage/storage-queue/recordings/node/queueclient/recording_exists.js @@ -0,0 +1,93 @@ +let nock = require('nock'); + +module.exports.hash = "ef71ed1d7a755db09faa585b94f68a33"; + +module.exports.testInfo = {"uniqueName":{"queue":"queue158978149318207514","queue158978149318207514":"queue158978149318207514158978149486703820"},"newDate":{}} + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .put('/queue158978149318207514') + .query(true) + .reply(201, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fa64d-8003-0050-68d9-2c605f000000', + 'x-ms-client-request-id', + 'a25183a1-affc-48dc-96b5-33a26535f00d', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:12 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .get('/queue158978149318207514') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fa72f-8003-0050-3dd9-2c605f000000', + 'x-ms-client-request-id', + '7ed17f4e-0dcc-4e43-9493-75f5ce167a08', + 'x-ms-version', + '2019-07-07', + 'x-ms-approximate-messages-count', + '0', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-approximate-messages-count,Cache-Control,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:58:12 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .get('/queue158978149318207514158978149486703820') + .query(true) + .reply(404, "QueueNotFoundThe specified queue does not exist.\nRequestId:f46fa838-8003-0050-39d9-2c605f000000\nTime:2020-05-18T05:58:13.1343246Z", [ + 'Content-Length', + '217', + 'Content-Type', + 'application/xml', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fa838-8003-0050-39d9-2c605f000000', + 'x-ms-client-request-id', + '4bdcd298-4f43-4226-84b3-a0fa348d650b', + 'x-ms-version', + '2019-07-07', + 'x-ms-error-code', + 'QueueNotFound', + 'Access-Control-Expose-Headers', + 'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding', + 'Access-Control-Allow-Origin', + '*', + 'Date', + 'Mon, 18 May 2020 05:58:12 GMT' +]); + +nock('https://fakestorageaccount.queue.core.windows.net:443', {"encodedQueryParams":true}) + .delete('/queue158978149318207514') + .query(true) + .reply(204, "", [ + 'Content-Length', + '0', + 'Server', + 'Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0', + 'x-ms-request-id', + 'f46fa938-8003-0050-29d9-2c605f000000', + 'x-ms-client-request-id', + '21ec402a-eb02-441f-a8be-fa104430e8ed', + 'x-ms-version', + '2019-07-07', + 'Date', + 'Mon, 18 May 2020 05:58:13 GMT' +]); diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index 2802b01534ab..69cb13a5d812 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -357,8 +357,11 @@ export class QueueClient extends StorageClient { constructor(url: string, pipeline: Pipeline); clearMessages(options?: QueueClearMessagesOptions): Promise; create(options?: QueueCreateOptions): Promise; + createIfNotExists(options?: QueueCreateOptions): Promise; delete(options?: QueueDeleteOptions): Promise; + deleteIfExists(options?: QueueDeleteOptions): Promise; deleteMessage(messageId: string, popReceipt: string, options?: QueueDeleteMessageOptions): Promise; + exists(options?: QueueExistsOptions): Promise; getAccessPolicy(options?: QueueGetAccessPolicyOptions): Promise; getProperties(options?: QueueGetPropertiesOptions): Promise; get name(): string; @@ -423,6 +426,11 @@ export type QueueDeleteResponse = QueueDeleteHeaders & { }; }; +// @public +export interface QueueExistsOptions extends CommonOptions { + abortSignal?: AbortSignalLike; +} + // @public export interface QueueGetAccessPolicyHeaders { clientRequestId?: string;