diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_blob_service_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_blob_service_properties.json
new file mode 100644
index 000000000000..0750f450b08f
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_blob_service_properties.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "585",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:53 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:53 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:54 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:53 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_disabled_static_website_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_disabled_static_website_properties.json
new file mode 100644
index 000000000000..a5f24109ed61
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_disabled_static_website_properties.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "147",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_empty_set_service_properties_exception.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_empty_set_service_properties_exception.json
new file mode 100644
index 000000000000..f721723386d8
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_empty_set_service_properties_exception.json
@@ -0,0 +1,4 @@
+{
+ "Entries": [],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_no_days.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_no_days.json
new file mode 100644
index 000000000000..f721723386d8
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_no_days.json
@@ -0,0 +1,4 @@
+{
+ "Entries": [],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_too_long.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_too_long.json
new file mode 100644
index 000000000000..570fc57afe17
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_retention_too_long.json
@@ -0,0 +1,40 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "273",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E366\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "376",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:03 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:19514c3a-301e-009b-3d93-9c3724000000\n",
+ "Time:2022-07-20T23:50:03.6531306Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E176\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_cors.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_cors.json
new file mode 100644
index 000000000000..877d78ece044
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_cors.json
@@ -0,0 +1,60 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "631",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedHeaders\u003Ex-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foo\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_default_service_version.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_default_service_version.json
new file mode 100644
index 000000000000..ba3906f17ca4
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_default_service_version.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "149",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:53 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:54 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy.json
new file mode 100644
index 000000000000..3dbeb368a67d
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E2\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:54 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:54 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E2\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy_edge_cases.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy_edge_cases.json
new file mode 100644
index 000000000000..b4bdb554f364
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_delete_retention_policy_edge_cases.json
@@ -0,0 +1,233 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E1\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E1\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "178",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E0\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "375",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:195149e0-301e-009b-2b93-9c3724000000\n",
+ "Time:2022-07-20T23:49:55.9036845Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E89\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "178",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E366\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "375",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:195149fb-301e-009b-3d93-9c3724000000\n",
+ "Time:2022-07-20T23:49:56.1685970Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E91\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:55 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_disabled_delete_retention_policy.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_disabled_delete_retention_policy.json
new file mode 100644
index 000000000000..1dce61905439
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_disabled_delete_retention_policy.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "163",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_hour_metrics.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_hour_metrics.json
new file mode 100644
index 000000000000..a21c67255ba9
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_hour_metrics.json
@@ -0,0 +1,60 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "267",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_logging.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_logging.json
new file mode 100644
index 000000000000..2388db2288c7
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_logging.json
@@ -0,0 +1,60 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "262",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_minute_metrics.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_minute_metrics.json
new file mode 100644
index 000000000000..ac413bcecff6
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_minute_metrics.json
@@ -0,0 +1,60 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "271",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties.json
new file mode 100644
index 000000000000..2807ee4efb8f
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "258",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:56 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_missing_field.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_missing_field.json
new file mode 100644
index 000000000000..76f36509bc95
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_missing_field.json
@@ -0,0 +1,167 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "146",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "217",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "187",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_with_default_index_document_path.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_with_default_index_document_path.json
new file mode 100644
index 000000000000..4c28b00076c3
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_properties_with_default_index_document_path.json
@@ -0,0 +1,59 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "280",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003CDefaultIndexDocumentPath\u003Eindex.html\u003C/DefaultIndexDocumentPath\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:49:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:57 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003CDefaultIndexDocumentPath\u003Eindex.html\u003C/DefaultIndexDocumentPath\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_props_dont_impact_other_props.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_props_dont_impact_other_props.json
new file mode 100644
index 000000000000..741fe81c988f
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_set_static_website_props_dont_impact_other_props.json
@@ -0,0 +1,115 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "631",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedHeaders\u003Ex-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foo\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "258",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:49:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_too_many_cors_rules.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_too_many_cors_rules.json
new file mode 100644
index 000000000000..6e96ded34197
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.pyTestServicePropertiestest_too_many_cors_rules.json
@@ -0,0 +1,40 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Connection": "keep-alive",
+ "Content-Length": "1143",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:50:03 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "294",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:50:02 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:19514c34-301e-009b-3b93-9c3724000000\n",
+ "Time:2022-07-20T23:50:03.2762547Z\u003C/Message\u003E\u003CLineNumber\u003E0\u003C/LineNumber\u003E\u003CLinePosition\u003E0\u003C/LinePosition\u003E\u003CReason /\u003E\u003C/Error\u003E"
+ ]
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_blob_service_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_blob_service_properties.yaml
deleted file mode 100644
index 2b65e0bf009e..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_blob_service_properties.yaml
+++ /dev/null
@@ -1,80 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse2014-02-14'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '585'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.7.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Wed, 16 Dec 2020 19:00:37 GMT
- x-ms-version:
- - '2020-04-08'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Wed, 16 Dec 2020 19:00:41 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2020-04-08'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.7.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Wed, 16 Dec 2020 19:00:42 GMT
- x-ms-version:
- - '2020-04-08'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsetrue365falsefalse2014-02-14"
- headers:
- access-control-allow-origin:
- - '*'
- access-control-expose-headers:
- - x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type:
- - application/xml
- date:
- - Wed, 16 Dec 2020 19:00:41 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-04-08'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_disabled_static_website_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_disabled_static_website_properties.yaml
deleted file mode 100644
index cbceaaff5ee9..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_disabled_static_website_properties.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-interactions:
-- request:
- body: '
-
- false'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '147'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:49 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:48 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:49 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:48 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_retention_too_long.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_retention_too_long.yaml
deleted file mode 100644
index 7f2199d3d821..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_retention_too_long.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue366'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '273'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:49 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:1c130a0f-201e-004a-335d-8bb650000000\nTime:2019-10-25T17:53:49.7382668Z2176Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length:
- - '376'
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:49 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code:
- - InvalidXmlDocument
- x-ms-version:
- - '2019-02-02'
- status:
- code: 400
- message: XML specified is not syntactically valid.
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_cors.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_cors.yaml
deleted file mode 100644
index 0b8d3596f7e0..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_cors.yaml
+++ /dev/null
@@ -1,78 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.com,www.ab.com,www.bc.comGET,PUTx-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foox-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd500'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '631'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:48 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:49 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_default_service_version.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_default_service_version.yaml
deleted file mode 100644
index a9a1b04bb96d..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_default_service_version.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- 2014-02-14'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '149'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy.yaml
deleted file mode 100644
index 1ac0b914640e..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- true2'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '176'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500true2false2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy_edge_cases.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy_edge_cases.yaml
deleted file mode 100644
index c75248b4781f..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_delete_retention_policy_edge_cases.yaml
+++ /dev/null
@@ -1,322 +0,0 @@
-interactions:
-- request:
- body: '
-
- true1'
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '176'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:11:32 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Thu, 26 Nov 2020 20:11:33 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2020-02-10'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:11:33 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true1falsefalse2018-03-28"
- headers:
- access-control-allow-origin:
- - '*'
- access-control-expose-headers:
- - x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:11:34 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-02-10'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- true365'
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '178'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:11:34 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Thu, 26 Nov 2020 20:11:35 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2020-02-10'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:11:35 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin:
- - '*'
- access-control-expose-headers:
- - x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:11:35 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-02-10'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- true0'
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '176'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:11:51 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:9281d95d-d01e-0018-6730-c405a5000000\nTime:2020-11-26T20:11:51.9354010Z289Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length:
- - '375'
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:11:51 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code:
- - InvalidXmlDocument
- x-ms-version:
- - '2020-02-10'
- status:
- code: 400
- message: XML specified is not syntactically valid.
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:12:05 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin:
- - '*'
- access-control-expose-headers:
- - x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:12:05 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-02-10'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- true366'
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '178'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:12:28 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:9281fa8b-d01e-0018-4630-c405a5000000\nTime:2020-11-26T20:12:29.1136388Z291Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length:
- - '375'
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:12:28 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code:
- - InvalidXmlDocument
- x-ms-version:
- - '2020-02-10'
- status:
- code: 400
- message: XML specified is not syntactically valid.
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:12:45 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin:
- - '*'
- access-control-expose-headers:
- - x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type:
- - application/xml
- date:
- - Thu, 26 Nov 2020 20:12:45 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-02-10'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_disabled_delete_retention_policy.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_disabled_delete_retention_policy.yaml
deleted file mode 100644
index 99b16749cbaa..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_disabled_delete_retention_policy.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- false'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '163'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:50 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_hour_metrics.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_hour_metrics.yaml
deleted file mode 100644
index e93a7fab61fd..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_hour_metrics.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue5'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '267'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue51.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_logging.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_logging.yaml
deleted file mode 100644
index e3a17051b28c..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_logging.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetruetrue5'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '262'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:52 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:51 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_minute_metrics.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_minute_metrics.yaml
deleted file mode 100644
index b6c08b9c01c2..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_minute_metrics.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue5'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '271'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:52 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:52 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:52 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:52 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties.yaml
deleted file mode 100644
index 7b34a46522d8..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-interactions:
-- request:
- body: '
-
- trueindex.htmlerrors/error/404error.html'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '258'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.htmlerrors/error/404error.html2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_missing_field.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_missing_field.yaml
deleted file mode 100644
index 680810384b67..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_missing_field.yaml
+++ /dev/null
@@ -1,227 +0,0 @@
-interactions:
-- request:
- body: '
-
- true'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '146'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrue2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- trueerrors/error/404error.html'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '217'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueerrors/error/404error.html2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- trueindex.html'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '187'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-02-02'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.html2014-02-14"
- headers:
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2019-02-02'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_with_default_index_document_path.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_with_default_index_document_path.yaml
deleted file mode 100644
index 3ae3e323be1a..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_properties_with_default_index_document_path.yaml
+++ /dev/null
@@ -1,75 +0,0 @@
-interactions:
-- request:
- body: '
-
- trueerrors/error/404error.htmlindex.html'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '280'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.4.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Thu, 06 Aug 2020 22:52:17 GMT
- x-ms-version:
- - '2019-12-12'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length:
- - '0'
- date:
- - Thu, 06 Aug 2020 22:52:17 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version:
- - '2019-12-12'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.4.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Thu, 06 Aug 2020 22:52:18 GMT
- x-ms-version:
- - '2019-12-12'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsetrue7trueerrors/error/404error.htmlindex.html"
- headers:
- content-type:
- - application/xml
- date:
- - Thu, 06 Aug 2020 22:52:18 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2019-12-12'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_props_dont_impact_other_props.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_props_dont_impact_other_props.yaml
deleted file mode 100644
index 7d7ac1159c42..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_set_static_website_props_dont_impact_other_props.yaml
+++ /dev/null
@@ -1,145 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.com,www.ab.com,www.bc.comGET,PUTx-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foox-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd500'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '631'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.6.1 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 10 Dec 2020 17:24:15 GMT
- x-ms-version:
- - '2020-04-08'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- date:
- - Thu, 10 Dec 2020 17:24:19 GMT
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-04-08'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.1 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 10 Dec 2020 17:24:25 GMT
- x-ms-version:
- - '2020-04-08'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalsefalse"
- headers:
- content-type:
- - application/xml
- date:
- - Thu, 10 Dec 2020 17:24:27 GMT
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2020-04-08'
- status:
- code: 200
- message: OK
-- request:
- body: '
-
- trueindex.htmlerrors/error/404error.html'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '258'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.6.1 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 10 Dec 2020 17:46:46 GMT
- x-ms-version:
- - '2020-04-08'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- date:
- - Thu, 10 Dec 2020 17:46:49 GMT
- transfer-encoding:
- - chunked
- x-ms-version:
- - '2020-04-08'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - azsdk-python-storage-blob/12.6.1 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 10 Dec 2020 17:46:49 GMT
- x-ms-version:
- - '2020-04-08'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalsetrueindex.htmlerrors/error/404error.html"
- headers:
- content-type:
- - application/xml
- date:
- - Thu, 10 Dec 2020 17:46:50 GMT
- transfer-encoding:
- - chunked
- vary:
- - Origin
- x-ms-version:
- - '2020-04-08'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_too_many_cors_rules.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_too_many_cors_rules.yaml
deleted file mode 100644
index 9142f34ffd40..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties.test_too_many_cors_rules.yaml
+++ /dev/null
@@ -1,52 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '1143'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:53:54 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:82e3fa03-601e-0009-3b5d-8b9cb9000000\nTime:2019-10-25T17:53:54.6874569Z00"
- headers:
- content-length:
- - '294'
- content-type:
- - application/xml
- date:
- - Fri, 25 Oct 2019 17:53:53 GMT
- server:
- - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code:
- - InvalidXmlDocument
- x-ms-version:
- - '2019-02-02'
- status:
- code: 400
- message: XML specified is not syntactically valid.
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_blob_service_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_blob_service_properties.json
new file mode 100644
index 000000000000..0e97af10882f
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_blob_service_properties.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "585",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:52:58 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:52:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:52:58 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_disabled_static_website_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_disabled_static_website_properties.json
new file mode 100644
index 000000000000..401c68487217
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_disabled_static_website_properties.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "147",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_empty_set_service_properties_exception.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_empty_set_service_properties_exception.json
new file mode 100644
index 000000000000..f721723386d8
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_empty_set_service_properties_exception.json
@@ -0,0 +1,4 @@
+{
+ "Entries": [],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_no_days.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_no_days.json
new file mode 100644
index 000000000000..f721723386d8
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_no_days.json
@@ -0,0 +1,4 @@
+{
+ "Entries": [],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_too_long.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_too_long.json
new file mode 100644
index 000000000000..b2108382ed2f
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_retention_too_long.json
@@ -0,0 +1,39 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "273",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:10 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E366\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "376",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:09 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:c48da5b5-001e-00cd-3693-9cc6cb000000\n",
+ "Time:2022-07-20T23:53:10.1843704Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E176\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_cors.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_cors.json
new file mode 100644
index 000000000000..acadeed6939a
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_cors.json
@@ -0,0 +1,58 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "631",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:09 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedHeaders\u003Ex-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foo\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:09 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_default_service_version.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_default_service_version.json
new file mode 100644
index 000000000000..131ff71428f0
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_default_service_version.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "149",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:52:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:52:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy.json
new file mode 100644
index 000000000000..e07ca5e90106
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E2\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:52:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:52:59 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E2\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy_edge_cases.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy_edge_cases.json
new file mode 100644
index 000000000000..cd327ba99ae0
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_delete_retention_policy_edge_cases.json
@@ -0,0 +1,225 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E1\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E1\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "178",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "176",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E0\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "375",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:c48da1e0-001e-00cd-6e93-9cc6cb000000\n",
+ "Time:2022-07-20T23:53:01.2573564Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E89\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "178",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E366\u003C/Days\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "375",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:c48da1ff-001e-00cd-0593-9cc6cb000000\n",
+ "Time:2022-07-20T23:53:01.5242670Z\u003C/Message\u003E\u003CLineNumber\u003E2\u003C/LineNumber\u003E\u003CLinePosition\u003E91\u003C/LinePosition\u003E\u003CReason\u003ERetention days must be greater than 0 and less than or equal to 365 days.\u003C/Reason\u003E\u003C/Error\u003E"
+ ]
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:00 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E365\u003C/Days\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_disabled_delete_retention_policy.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_disabled_delete_retention_policy.json
new file mode 100644
index 000000000000..0cbb95b70470
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_disabled_delete_retention_policy.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "163",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/DeleteRetentionPolicy\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_hour_metrics.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_hour_metrics.json
new file mode 100644
index 000000000000..59fb758fbdd8
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_hour_metrics.json
@@ -0,0 +1,58 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "267",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_logging.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_logging.json
new file mode 100644
index 000000000000..9b7000fcdf7a
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_logging.json
@@ -0,0 +1,58 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "262",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_minute_metrics.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_minute_metrics.json
new file mode 100644
index 000000000000..0316fd396998
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_minute_metrics.json
@@ -0,0 +1,58 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "271",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:08 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:08 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:07 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Etrue\u003C/Read\u003E\u003CWrite\u003Etrue\u003C/Write\u003E\u003CDelete\u003Etrue\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIncludeAPIs\u003Etrue\u003C/IncludeAPIs\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CDays\u003E5\u003C/Days\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_web_props_missing_field.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_web_props_missing_field.json
new file mode 100644
index 000000000000..acacfb78b4ca
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_web_props_missing_field.json
@@ -0,0 +1,161 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "146",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "217",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "187",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_webprops_no_impact_other_props.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_webprops_no_impact_other_props.json
new file mode 100644
index 000000000000..3014ab5e3cca
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_webprops_no_impact_other_props.json
@@ -0,0 +1,111 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "631",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedHeaders\u003Ex-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foo\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:04 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "258",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:06 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:05 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "Vary": "Origin",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedMethods\u003EGET,PUT\u003C/AllowedMethods\u003E\u003CAllowedOrigins\u003Ewww.xyz.com,www.ab.com,www.bc.com\u003C/AllowedOrigins\u003E\u003CAllowedHeaders\u003Ex-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*\u003C/AllowedHeaders\u003E\u003CExposedHeaders\u003Ex-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*\u003C/ExposedHeaders\u003E\u003CMaxAgeInSeconds\u003E500\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties.json
new file mode 100644
index 000000000000..4ce895f4fdbe
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "258",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:01 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CIndexDocument\u003Eindex.html\u003C/IndexDocument\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties_with_default_index_document_path.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties_with_default_index_document_path.json
new file mode 100644
index 000000000000..2205eb174c8d
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_set_static_website_properties_with_default_index_document_path.json
@@ -0,0 +1,57 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "280",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003CDefaultIndexDocumentPath\u003Eindex.html\u003C/DefaultIndexDocumentPath\u003E\u003C/StaticWebsite\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 202,
+ "ResponseHeaders": {
+ "Content-Length": "0",
+ "Date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": null
+ },
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "GET",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:03 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": null,
+ "StatusCode": 200,
+ "ResponseHeaders": {
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:02 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Transfer-Encoding": "chunked",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CStorageServiceProperties\u003E\u003CLogging\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CRead\u003Efalse\u003C/Read\u003E\u003CWrite\u003Efalse\u003C/Write\u003E\u003CDelete\u003Efalse\u003C/Delete\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/Logging\u003E\u003CHourMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/HourMetrics\u003E\u003CMinuteMetrics\u003E\u003CVersion\u003E1.0\u003C/Version\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003C/RetentionPolicy\u003E\u003C/MinuteMetrics\u003E\u003CCors /\u003E\u003CDeleteRetentionPolicy\u003E\u003CEnabled\u003Efalse\u003C/Enabled\u003E\u003CAllowPermanentDelete\u003Efalse\u003C/AllowPermanentDelete\u003E\u003C/DeleteRetentionPolicy\u003E\u003CStaticWebsite\u003E\u003CEnabled\u003Etrue\u003C/Enabled\u003E\u003CErrorDocument404Path\u003Eerrors/error/404error.html\u003C/ErrorDocument404Path\u003E\u003CDefaultIndexDocumentPath\u003Eindex.html\u003C/DefaultIndexDocumentPath\u003E\u003C/StaticWebsite\u003E\u003CDefaultServiceVersion\u003E2014-02-14\u003C/DefaultServiceVersion\u003E\u003C/StorageServiceProperties\u003E"
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_too_many_cors_rules.json b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_too_many_cors_rules.json
new file mode 100644
index 000000000000..3dc0fdcfeb27
--- /dev/null
+++ b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.pyTestServicePropertiesTesttest_too_many_cors_rules.json
@@ -0,0 +1,39 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "https://storagename.blob.core.windows.net/?restype=service\u0026comp=properties",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/xml",
+ "Accept-Encoding": "gzip, deflate",
+ "Content-Length": "1143",
+ "Content-Type": "application/xml",
+ "User-Agent": "azsdk-python-storage-blob/12.14.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)",
+ "x-ms-date": "Wed, 20 Jul 2022 23:53:10 GMT",
+ "x-ms-version": "2021-08-06"
+ },
+ "RequestBody": [
+ "\u003C?xml version=\u00271.0\u0027 encoding=\u0027utf-8\u0027?\u003E\n",
+ "\u003CStorageServiceProperties\u003E\u003CCors\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003CCorsRule\u003E\u003CAllowedOrigins\u003Ewww.xyz.com\u003C/AllowedOrigins\u003E\u003CAllowedMethods\u003EGET\u003C/AllowedMethods\u003E\u003CAllowedHeaders /\u003E\u003CExposedHeaders /\u003E\u003CMaxAgeInSeconds\u003E0\u003C/MaxAgeInSeconds\u003E\u003C/CorsRule\u003E\u003C/Cors\u003E\u003C/StorageServiceProperties\u003E"
+ ],
+ "StatusCode": 400,
+ "ResponseHeaders": {
+ "Content-Length": "294",
+ "Content-Type": "application/xml",
+ "Date": "Wed, 20 Jul 2022 23:53:08 GMT",
+ "Server": [
+ "Windows-Azure-Blob/1.0",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-error-code": "InvalidXmlDocument",
+ "x-ms-version": "2021-08-06"
+ },
+ "ResponseBody": [
+ "\uFEFF\u003C?xml version=\u00221.0\u0022 encoding=\u0022utf-8\u0022?\u003E\u003CError\u003E\u003CCode\u003EInvalidXmlDocument\u003C/Code\u003E\u003CMessage\u003EXML specified is not syntactically valid.\n",
+ "RequestId:c48da584-001e-00cd-1193-9cc6cb000000\n",
+ "Time:2022-07-20T23:53:09.8334881Z\u003C/Message\u003E\u003CLineNumber\u003E0\u003C/LineNumber\u003E\u003CLinePosition\u003E0\u003C/LinePosition\u003E\u003CReason /\u003E\u003C/Error\u003E"
+ ]
+ }
+ ],
+ "Variables": {}
+}
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_blob_service_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_blob_service_properties.yaml
deleted file mode 100644
index 27438bb3ca30..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_blob_service_properties.yaml
+++ /dev/null
@@ -1,59 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0falsefalsefalsefalse1.0falsefalse1.0falsefalse2014-02-14'
- headers:
- Content-Length:
- - '585'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.7.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Wed, 16 Dec 2020 19:02:02 GMT
- x-ms-version:
- - '2020-04-08'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Wed, 16 Dec 2020 19:02:02 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2020-04-08'
- status:
- code: 202
- message: Accepted
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.7.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Wed, 16 Dec 2020 19:02:03 GMT
- x-ms-version:
- - '2020-04-08'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsetrue365falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Wed, 16 Dec 2020 19:02:02 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2020-04-08'
- status:
- code: 200
- message: OK
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_disabled_static_website_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_disabled_static_website_properties.yaml
deleted file mode 100644
index e5a93b038ab0..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_disabled_static_website_properties.yaml
+++ /dev/null
@@ -1,72 +0,0 @@
-interactions:
-- request:
- body: '
-
- false'
- headers:
- Content-Length:
- - '147'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:12 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalsefalsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:12 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_retention_too_long.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_retention_too_long.yaml
deleted file mode 100644
index dd65ac9949ab..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_retention_too_long.yaml
+++ /dev/null
@@ -1,42 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue366'
- headers:
- Content-Length:
- - '273'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:a00e2207-d01e-0081-665d-8b465f000000\nTime:2019-10-25T17:57:13.1839393Z2176Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length: '376'
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:12 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code: InvalidXmlDocument
- x-ms-version: '2019-02-02'
- status:
- code: 400
- message: XML specified is not syntactically valid.
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_cors.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_cors.yaml
deleted file mode 100644
index dc1e40c045e7..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_cors.yaml
+++ /dev/null
@@ -1,74 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.com,www.ab.com,www.bc.comGET,PUTx-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foox-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd500'
- headers:
- Content-Length:
- - '631'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:12 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:12 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_default_service_version.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_default_service_version.yaml
deleted file mode 100644
index 6b79ed172721..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_default_service_version.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- 2014-02-14'
- headers:
- Content-Length:
- - '149'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:13 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:13 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy.yaml
deleted file mode 100644
index 608d2074299c..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- true2'
- headers:
- Content-Length:
- - '176'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:13 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:13 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:15 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500true2false2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:13 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy_edge_cases.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy_edge_cases.yaml
deleted file mode 100644
index b42bf7e942cf..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_delete_retention_policy_edge_cases.yaml
+++ /dev/null
@@ -1,250 +0,0 @@
-interactions:
-- request:
- body: '
-
- true1'
- headers:
- Accept:
- - application/xml
- Content-Length:
- - '176'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:31 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Thu, 26 Nov 2020 20:15:31 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2020-02-10'
- status:
- code: 202
- message: Accepted
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:31 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true1falsefalse2018-03-28"
- headers:
- access-control-allow-origin: '*'
- access-control-expose-headers: x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:31 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2020-02-10'
- status:
- code: 200
- message: OK
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: '
-
- true365'
- headers:
- Accept:
- - application/xml
- Content-Length:
- - '178'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:31 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Thu, 26 Nov 2020 20:15:31 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2020-02-10'
- status:
- code: 202
- message: Accepted
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:31 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin: '*'
- access-control-expose-headers: x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:31 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2020-02-10'
- status:
- code: 200
- message: OK
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: '
-
- true0'
- headers:
- Accept:
- - application/xml
- Content-Length:
- - '176'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:31 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:26876581-701e-0001-2d30-c4851e000000\nTime:2020-11-26T20:15:32.0632830Z289Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length: '375'
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:31 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code: InvalidXmlDocument
- x-ms-version: '2020-02-10'
- status:
- code: 400
- message: XML specified is not syntactically valid.
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:32 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin: '*'
- access-control-expose-headers: x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:32 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2020-02-10'
- status:
- code: 200
- message: OK
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: '
-
- true366'
- headers:
- Accept:
- - application/xml
- Content-Length:
- - '178'
- Content-Type:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:32 GMT
- x-ms-version:
- - '2020-02-10'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:26876677-701e-0001-0a30-c4851e000000\nTime:2020-11-26T20:15:33.0630007Z291Retention
- days must be greater than 0 and less than or equal to 365 days."
- headers:
- content-length: '375'
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:32 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code: InvalidXmlDocument
- x-ms-version: '2020-02-10'
- status:
- code: 400
- message: XML specified is not syntactically valid.
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.6.0 Python/3.8.5 (Windows-10-10.0.19041-SP0)
- x-ms-date:
- - Thu, 26 Nov 2020 20:15:35 GMT
- x-ms-version:
- - '2020-02-10'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETmicrosoft.comx-ms-version60DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH***86400true365falsefalse2018-03-28"
- headers:
- access-control-allow-origin: '*'
- access-control-expose-headers: x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Content-Length,Date,Transfer-Encoding
- content-type: application/xml
- date: Thu, 26 Nov 2020 20:15:35 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2020-02-10'
- status:
- code: 200
- message: OK
- url: https://seanmcccanary3.blob.core.windows.net/?restype=service&comp=properties
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_disabled_delete_retention_policy.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_disabled_delete_retention_policy.yaml
deleted file mode 100644
index 158b9bc53631..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_disabled_delete_retention_policy.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- false'
- headers:
- Content-Length:
- - '163'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:15 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:16 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0falsefalse1.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_hour_metrics.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_hour_metrics.yaml
deleted file mode 100644
index 3759d55ea49c..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_hour_metrics.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue5'
- headers:
- Content-Length:
- - '267'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:16 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:15 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:16 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue51.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:15 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_logging.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_logging.yaml
deleted file mode 100644
index 6e1605c7f66f..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_logging.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetruetrue5'
- headers:
- Content-Length:
- - '262'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:16 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0falsefalseGETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_minute_metrics.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_minute_metrics.yaml
deleted file mode 100644
index 2144a82d4082..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_minute_metrics.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- 1.0truetruetrue5'
- headers:
- Content-Length:
- - '271'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsefalse2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:16 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_web_props_missing_field.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_web_props_missing_field.yaml
deleted file mode 100644
index bb939d83a0fc..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_web_props_missing_field.yaml
+++ /dev/null
@@ -1,215 +0,0 @@
-interactions:
-- request:
- body: '
-
- true'
- headers:
- Content-Length:
- - '146'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrue2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: '
-
- trueerrors/error/404error.html'
- headers:
- Content-Length:
- - '217'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueerrors/error/404error.html2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: '
-
- trueindex.html'
- headers:
- Content-Length:
- - '187'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.html2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_webprops_no_impact_other_props.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_webprops_no_impact_other_props.yaml
deleted file mode 100644
index 0c189b607342..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_webprops_no_impact_other_props.yaml
+++ /dev/null
@@ -1,145 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.com,www.ab.com,www.bc.comGET,PUTx-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foox-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd500'
- headers:
- Content-Length:
- - '631'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:17 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.html2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: '
-
- trueindex.htmlerrors/error/404error.html'
- headers:
- Content-Length:
- - '258'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.htmlerrors/error/404error.html2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties.yaml
deleted file mode 100644
index 7f780de265e0..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
-interactions:
-- request:
- body: '
-
- trueindex.htmlerrors/error/404error.html'
- headers:
- Content-Length:
- - '258'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Fri, 25 Oct 2019 17:57:18 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-02-02'
- status:
- code: 202
- message: Accepted
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0truetruetruetrue51.0truetruetrue51.0truetruetrue5GETwww.xyz.com0GET,PUTwww.xyz.com,www.ab.com,www.bc.comx-ms-meta-xyz,x-ms-meta-foo,x-ms-meta-data*,x-ms-meta-target*x-ms-meta-abc,x-ms-meta-bcd,x-ms-meta-data*,x-ms-meta-source*500falsetrueindex.htmlerrors/error/404error.html2014-02-14"
- headers:
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:18 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- vary: Origin
- x-ms-version: '2019-02-02'
- status:
- code: 200
- message: OK
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties_with_default_index_document_path.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties_with_default_index_document_path.yaml
deleted file mode 100644
index b9de5dfea46b..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_set_static_website_properties_with_default_index_document_path.yaml
+++ /dev/null
@@ -1,58 +0,0 @@
-interactions:
-- request:
- body: '
-
- trueerrors/error/404error.htmlindex.html'
- headers:
- Content-Length:
- - '280'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.4.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Thu, 06 Aug 2020 22:53:29 GMT
- x-ms-version:
- - '2019-12-12'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: ''
- headers:
- content-length: '0'
- date: Thu, 06 Aug 2020 22:53:29 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-version: '2019-12-12'
- status:
- code: 202
- message: Accepted
- url: https://emilyeuap.blob.core.windows.net/?restype=service&comp=properties
-- request:
- body: null
- headers:
- Accept:
- - application/xml
- User-Agent:
- - azsdk-python-storage-blob/12.4.0b1 Python/3.7.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Thu, 06 Aug 2020 22:53:29 GMT
- x-ms-version:
- - '2019-12-12'
- method: GET
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFF1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalsetrue7trueerrors/error/404error.htmlindex.html"
- headers:
- content-type: application/xml
- date: Thu, 06 Aug 2020 22:53:29 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- transfer-encoding: chunked
- x-ms-version: '2019-12-12'
- status:
- code: 200
- message: OK
- url: https://emilyeuap.blob.core.windows.net/?restype=service&comp=properties
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_too_many_cors_rules.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_too_many_cors_rules.yaml
deleted file mode 100644
index 684f6061f589..000000000000
--- a/sdk/storage/azure-storage-blob/tests/recordings/test_blob_service_properties_async.test_too_many_cors_rules.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-interactions:
-- request:
- body: '
-
- www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0www.xyz.comGET0'
- headers:
- Content-Length:
- - '1143'
- Content-Type:
- - application/xml; charset=utf-8
- User-Agent:
- - azsdk-python-storage-blob/12.0.0b5 Python/3.6.3 (Windows-10-10.0.18362-SP0)
- x-ms-date:
- - Fri, 25 Oct 2019 17:57:18 GMT
- x-ms-version:
- - '2019-02-02'
- method: PUT
- uri: https://storagename.blob.core.windows.net/?restype=service&comp=properties
- response:
- body:
- string: "\uFEFFInvalidXmlDocumentXML
- specified is not syntactically valid.\nRequestId:8aa8db0d-901e-00eb-265d-8b1af4000000\nTime:2019-10-25T17:57:18.5036789Z00"
- headers:
- content-length: '294'
- content-type: application/xml
- date: Fri, 25 Oct 2019 17:57:17 GMT
- server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
- x-ms-error-code: InvalidXmlDocument
- x-ms-version: '2019-02-02'
- status:
- code: 400
- message: XML specified is not syntactically valid.
- url: !!python/object/new:yarl.URL
- state: !!python/tuple
- - !!python/object/new:urllib.parse.SplitResult
- - https
- - pyacrstorageidjk2ou5leed.blob.core.windows.net
- - /
- - restype=service&comp=properties
- - ''
-version: 1
diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py
index 06e5ff990f13..508ee9a0c1d0 100644
--- a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py
+++ b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py
@@ -1,5 +1,3 @@
-# coding: utf-8
-
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
@@ -14,23 +12,25 @@
BlobAnalyticsLogging,
BlobServiceClient,
CorsRule,
+ generate_account_sas,
Metrics,
ResourceTypes,
RetentionPolicy,
- StaticWebsite,
- generate_account_sas,
+ StaticWebsite
)
+from devtools_testutils import recorded_by_proxy
+from devtools_testutils.storage import StorageRecordedTestCase
from settings.testcase import BlobPreparer
-from devtools_testutils.storage import StorageTestCase
+
# ------------------------------------------------------------------------------
-class ServicePropertiesTest(StorageTestCase):
+class TestServiceProperties(StorageRecordedTestCase):
# --Helpers-----------------------------------------------------------------
def _assert_properties_default(self, prop):
- self.assertIsNotNone(prop)
+ assert prop is not None
self._assert_logging_equal(prop['analytics_logging'], BlobAnalyticsLogging())
self._assert_metrics_equal(prop['hour_metrics'], Metrics())
@@ -39,75 +39,78 @@ def _assert_properties_default(self, prop):
def _assert_logging_equal(self, log1, log2):
if log1 is None or log2 is None:
- self.assertEqual(log1, log2)
+ assert log1 == log2
return
- self.assertEqual(log1.version, log2.version)
- self.assertEqual(log1.read, log2.read)
- self.assertEqual(log1.write, log2.write)
- self.assertEqual(log1.delete, log2.delete)
+ assert log1.version == log2.version
+ assert log1.read == log2.read
+ assert log1.write == log2.write
+ assert log1.delete == log2.delete
self._assert_retention_equal(log1.retention_policy, log2.retention_policy)
def _assert_delete_retention_policy_equal(self, policy1, policy2):
if policy1 is None or policy2 is None:
- self.assertEqual(policy1, policy2)
+ assert policy1 == policy2
return
- self.assertEqual(policy1.enabled, policy2.enabled)
- self.assertEqual(policy1.days, policy2.days)
+ assert policy1.enabled == policy2.enabled
+ assert policy1.days == policy2.days
def _assert_static_website_equal(self, prop1, prop2):
if prop1 is None or prop2 is None:
- self.assertEqual(prop1, prop2)
+ assert prop1 == prop2
return
- self.assertEqual(prop1.enabled, prop2.enabled)
- self.assertEqual(prop1.index_document, prop2.index_document)
- self.assertEqual(prop1.error_document404_path, prop2.error_document404_path)
- self.assertEqual(prop1.default_index_document_path, prop2.default_index_document_path)
+ assert prop1.enabled == prop2.enabled
+ assert prop1.index_document == prop2.index_document
+ assert prop1.error_document404_path == prop2.error_document404_path
+ assert prop1.default_index_document_path == prop2.default_index_document_path
def _assert_delete_retention_policy_not_equal(self, policy1, policy2):
if policy1 is None or policy2 is None:
- self.assertNotEqual(policy1, policy2)
+ assert policy1 != policy2
return
- self.assertFalse(policy1.enabled == policy2.enabled
- and policy1.days == policy2.days)
+ assert (policy1.enabled == policy2.enabled and policy1.days == policy2.days) is False
def _assert_metrics_equal(self, metrics1, metrics2):
if metrics1 is None or metrics2 is None:
- self.assertEqual(metrics1, metrics2)
+ assert metrics1 == metrics2
return
- self.assertEqual(metrics1.version, metrics2.version)
- self.assertEqual(metrics1.enabled, metrics2.enabled)
- self.assertEqual(metrics1.include_apis, metrics2.include_apis)
+ assert metrics1.version == metrics2.version
+ assert metrics1.enabled == metrics2.enabled
+ assert metrics1.include_apis == metrics2.include_apis
self._assert_retention_equal(metrics1.retention_policy, metrics2.retention_policy)
def _assert_cors_equal(self, cors1, cors2):
if cors1 is None or cors2 is None:
- self.assertEqual(cors1, cors2)
+ assert cors1 == cors2
return
- self.assertEqual(len(cors1), len(cors2))
+ assert len(cors1) == len(cors2)
for i in range(0, len(cors1)):
rule1 = cors1[i]
rule2 = cors2[i]
- self.assertEqual(len(rule1.allowed_origins), len(rule2.allowed_origins))
- self.assertEqual(len(rule1.allowed_methods), len(rule2.allowed_methods))
- self.assertEqual(rule1.max_age_in_seconds, rule2.max_age_in_seconds)
- self.assertEqual(len(rule1.exposed_headers), len(rule2.exposed_headers))
- self.assertEqual(len(rule1.allowed_headers), len(rule2.allowed_headers))
+ assert len(rule1.allowed_origins) == len(rule2.allowed_origins)
+ assert len(rule1.allowed_methods) == len(rule2.allowed_methods)
+ assert rule1.max_age_in_seconds == rule2.max_age_in_seconds
+ assert len(rule1.exposed_headers) == len(rule2.exposed_headers)
+ assert len(rule1.allowed_headers) == len(rule2.allowed_headers)
def _assert_retention_equal(self, ret1, ret2):
- self.assertEqual(ret1.enabled, ret2.enabled)
- self.assertEqual(ret1.days, ret2.days)
+ assert ret1.enabled == ret2.enabled
+ assert ret1.days == ret2.days
# --Test cases per service ---------------------------------------
@BlobPreparer()
- def test_blob_service_properties(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_blob_service_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Arrange
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
# Act
@@ -120,20 +123,28 @@ def test_blob_service_properties(self, storage_account_name, storage_account_key
)
# Assert
- self.assertIsNone(resp)
+ assert resp is None
props = bsc.get_service_properties()
self._assert_properties_default(props)
- self.assertEqual('2014-02-14', props['target_version'])
+ assert '2014-02-14' == props['target_version']
# --Test cases per feature ---------------------------------------
@BlobPreparer()
- def test_empty_set_service_properties_exception(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_empty_set_service_properties_exception(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
- with self.assertRaises(ValueError):
+ with pytest.raises(ValueError):
bsc.set_service_properties()
@BlobPreparer()
- def test_set_default_service_version(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_default_service_version(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Arrange
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
# Act
@@ -141,10 +152,14 @@ def test_set_default_service_version(self, storage_account_name, storage_account
# Assert
received_props = bsc.get_service_properties()
- self.assertEqual(received_props['target_version'], '2014-02-14')
+ assert received_props['target_version'] == '2014-02-14'
@BlobPreparer()
- def test_set_delete_retention_policy(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_delete_retention_policy(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=True, days=2)
@@ -156,7 +171,11 @@ def test_set_delete_retention_policy(self, storage_account_name, storage_account
self._assert_delete_retention_policy_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- def test_set_delete_retention_policy_edge_cases(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_delete_retention_policy_edge_cases(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=True, days=1)
bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
@@ -176,7 +195,7 @@ def test_set_delete_retention_policy_edge_cases(self, storage_account_name, stor
# Should not work with 0 days
delete_retention_policy = RetentionPolicy(enabled=True, days=0)
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
# Assert
@@ -186,7 +205,7 @@ def test_set_delete_retention_policy_edge_cases(self, storage_account_name, stor
# Should not work with 366 days
delete_retention_policy = RetentionPolicy(enabled=True, days=366)
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
# Assert
@@ -194,7 +213,11 @@ def test_set_delete_retention_policy_edge_cases(self, storage_account_name, stor
self._assert_delete_retention_policy_not_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- def test_set_disabled_delete_retention_policy(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_disabled_delete_retention_policy(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=False)
@@ -206,7 +229,11 @@ def test_set_disabled_delete_retention_policy(self, storage_account_name, storag
self._assert_delete_retention_policy_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- def test_set_static_website_properties(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_static_website_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(
enabled=True,
@@ -221,7 +248,11 @@ def test_set_static_website_properties(self, storage_account_name, storage_accou
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- def test_set_static_website_properties_with_default_index_document_path(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_static_website_properties_with_default_index_document_path(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(
enabled=True,
@@ -236,7 +267,11 @@ def test_set_static_website_properties_with_default_index_document_path(self, st
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- def test_set_static_website_properties_missing_field(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_static_website_properties_missing_field(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
# Case1: Arrange both missing
@@ -270,7 +305,11 @@ def test_set_static_website_properties_missing_field(self, storage_account_name,
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- def test_disabled_static_website_properties(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_disabled_static_website_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(enabled=False, index_document="index.html",
error_document404_path="errors/error/404error.html")
@@ -283,7 +322,11 @@ def test_disabled_static_website_properties(self, storage_account_name, storage_
self._assert_static_website_equal(received_props['static_website'], StaticWebsite(enabled=False))
@BlobPreparer()
- def test_set_static_website_props_dont_impact_other_props(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_static_website_props_dont_impact_other_props(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors_rule1 = CorsRule(['www.xyz.com'], ['GET'])
@@ -321,7 +364,11 @@ def test_set_static_website_props_dont_impact_other_props(self, storage_account_
self._assert_cors_equal(received_props['cors'], cors)
@BlobPreparer()
- def test_set_logging(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_logging(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
logging = BlobAnalyticsLogging(read=True, write=True, delete=True, retention_policy=RetentionPolicy(enabled=True, days=5))
@@ -333,7 +380,11 @@ def test_set_logging(self, storage_account_name, storage_account_key):
self._assert_logging_equal(received_props['analytics_logging'], logging)
@BlobPreparer()
- def test_set_hour_metrics(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_hour_metrics(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
hour_metrics = Metrics(enabled=True, include_apis=True, retention_policy=RetentionPolicy(enabled=True, days=5))
@@ -345,7 +396,11 @@ def test_set_hour_metrics(self, storage_account_name, storage_account_key):
self._assert_metrics_equal(received_props['hour_metrics'], hour_metrics)
@BlobPreparer()
- def test_set_minute_metrics(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_minute_metrics(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
minute_metrics = Metrics(enabled=True, include_apis=True,
retention_policy=RetentionPolicy(enabled=True, days=5))
@@ -358,7 +413,11 @@ def test_set_minute_metrics(self, storage_account_name, storage_account_key):
self._assert_metrics_equal(received_props['minute_metrics'], minute_metrics)
@BlobPreparer()
- def test_set_cors(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_set_cors(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors_rule1 = CorsRule(['www.xyz.com'], ['GET'])
@@ -385,7 +444,10 @@ def test_set_cors(self, storage_account_name, storage_account_key):
@pytest.mark.live_test_only
@BlobPreparer()
- def test_get_service_properties_account_sas(self, storage_account_name, storage_account_key):
+ def test_get_service_properties_account_sas(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Arrange
sas_token = generate_account_sas(
account_name=storage_account_name,
@@ -400,35 +462,47 @@ def test_get_service_properties_account_sas(self, storage_account_name, storage_
props = bsc.get_service_properties()
# Assert
- self.assertIsNotNone(props)
+ assert props is not None
# --Test cases for errors ---------------------------------------
@BlobPreparer()
- def test_retention_no_days(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_retention_no_days(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
- self.assertRaises(ValueError,
+ pytest.raises(ValueError,
RetentionPolicy,
True, None)
@BlobPreparer()
- def test_too_many_cors_rules(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_too_many_cors_rules(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors = []
for i in range(0, 6):
cors.append(CorsRule(['www.xyz.com'], ['GET']))
# Assert
- self.assertRaises(HttpResponseError,
+ pytest.raises(HttpResponseError,
bsc.set_service_properties, None, None, None, cors)
@BlobPreparer()
- def test_retention_too_long(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy
+ def test_retention_too_long(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
minute_metrics = Metrics(enabled=True, include_apis=True,
retention_policy=RetentionPolicy(enabled=True, days=366))
# Assert
- self.assertRaises(HttpResponseError,
+ pytest.raises(HttpResponseError,
bsc.set_service_properties,
None, None, minute_metrics)
diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py
index 452d7da35a4e..6cf2fcace4e2 100644
--- a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py
+++ b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py
@@ -1,5 +1,3 @@
-# coding: utf-8
-
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
@@ -9,41 +7,30 @@
from datetime import datetime, timedelta
from azure.core.exceptions import HttpResponseError
-from azure.core.pipeline.transport import AioHttpTransport
-from multidict import CIMultiDict, CIMultiDictProxy
-
-from azure.storage.blob.aio import (
- BlobServiceClient,
-)
from azure.storage.blob import (
AccountSasPermissions,
BlobAnalyticsLogging,
CorsRule,
+ generate_account_sas,
Metrics,
ResourceTypes,
RetentionPolicy,
- StaticWebsite,
- generate_account_sas,
+ StaticWebsite
)
+from azure.storage.blob.aio import BlobServiceClient
+
+from devtools_testutils.aio import recorded_by_proxy_async
+from devtools_testutils.storage.aio import AsyncStorageRecordedTestCase
from settings.testcase import BlobPreparer
-from devtools_testutils.storage.aio import AsyncStorageTestCase
# ------------------------------------------------------------------------------
-class AiohttpTestTransport(AioHttpTransport):
- """Workaround to vcrpy bug: https://github.com/kevin1024/vcrpy/pull/461
- """
- async def send(self, request, **config):
- response = await super(AiohttpTestTransport, self).send(request, **config)
- if not isinstance(response.headers, CIMultiDictProxy):
- response.headers = CIMultiDictProxy(CIMultiDict(response.internal_response.headers))
- response.content_type = response.headers.get("content-type")
- return response
-
-class ServicePropertiesTestAsync(AsyncStorageTestCase):
+
+
+class TestServicePropertiesTest(AsyncStorageRecordedTestCase):
# --Helpers-----------------------------------------------------------------
def _assert_properties_default(self, prop):
- self.assertIsNotNone(prop)
+ assert prop is not None
self._assert_logging_equal(prop['analytics_logging'], BlobAnalyticsLogging())
self._assert_metrics_equal(prop['hour_metrics'], Metrics())
@@ -52,83 +39,88 @@ def _assert_properties_default(self, prop):
def _assert_logging_equal(self, log1, log2):
if log1 is None or log2 is None:
- self.assertEqual(log1, log2)
+ assert log1 == log2
return
- self.assertEqual(log1.version, log2.version)
- self.assertEqual(log1.read, log2.read)
- self.assertEqual(log1.write, log2.write)
- self.assertEqual(log1.delete, log2.delete)
+ assert log1.version == log2.version
+ assert log1.read == log2.read
+ assert log1.write == log2.write
+ assert log1.delete == log2.delete
self._assert_retention_equal(log1.retention_policy, log2.retention_policy)
def _assert_delete_retention_policy_equal(self, policy1, policy2):
if policy1 is None or policy2 is None:
- self.assertEqual(policy1, policy2)
+ assert policy1 == policy2
return
- self.assertEqual(policy1.enabled, policy2.enabled)
- self.assertEqual(policy1.days, policy2.days)
+ assert policy1.enabled == policy2.enabled
+ assert policy1.days == policy2.days
def _assert_static_website_equal(self, prop1, prop2):
if prop1 is None or prop2 is None:
- self.assertEqual(prop1, prop2)
+ assert prop1 == prop2
return
- self.assertEqual(prop1.enabled, prop2.enabled)
- self.assertEqual(prop1.index_document, prop2.index_document)
- self.assertEqual(prop1.error_document404_path, prop2.error_document404_path)
- self.assertEqual(prop1.default_index_document_path, prop2.default_index_document_path)
+ assert prop1.enabled == prop2.enabled
+ assert prop1.index_document == prop2.index_document
+ assert prop1.error_document404_path == prop2.error_document404_path
+ assert prop1.default_index_document_path == prop2.default_index_document_path
def _assert_delete_retention_policy_not_equal(self, policy1, policy2):
if policy1 is None or policy2 is None:
- self.assertNotEqual(policy1, policy2)
+ assert policy1 != policy2
return
- self.assertFalse(policy1.enabled == policy2.enabled
- and policy1.days == policy2.days)
+ assert (policy1.enabled == policy2.enabled and policy1.days == policy2.days) is False
def _assert_metrics_equal(self, metrics1, metrics2):
if metrics1 is None or metrics2 is None:
- self.assertEqual(metrics1, metrics2)
+ assert metrics1 == metrics2
return
- self.assertEqual(metrics1.version, metrics2.version)
- self.assertEqual(metrics1.enabled, metrics2.enabled)
- self.assertEqual(metrics1.include_apis, metrics2.include_apis)
+ assert metrics1.version == metrics2.version
+ assert metrics1.enabled == metrics2.enabled
+ assert metrics1.include_apis == metrics2.include_apis
self._assert_retention_equal(metrics1.retention_policy, metrics2.retention_policy)
def _assert_cors_equal(self, cors1, cors2):
if cors1 is None or cors2 is None:
- self.assertEqual(cors1, cors2)
+ assert cors1 == cors2
return
- self.assertEqual(len(cors1), len(cors2))
+ assert len(cors1) == len(cors2)
for i in range(0, len(cors1)):
rule1 = cors1[i]
rule2 = cors2[i]
- self.assertEqual(len(rule1.allowed_origins), len(rule2.allowed_origins))
- self.assertEqual(len(rule1.allowed_methods), len(rule2.allowed_methods))
- self.assertEqual(rule1.max_age_in_seconds, rule2.max_age_in_seconds)
- self.assertEqual(len(rule1.exposed_headers), len(rule2.exposed_headers))
- self.assertEqual(len(rule1.allowed_headers), len(rule2.allowed_headers))
+ assert len(rule1.allowed_origins) == len(rule2.allowed_origins)
+ assert len(rule1.allowed_methods) == len(rule2.allowed_methods)
+ assert rule1.max_age_in_seconds == rule2.max_age_in_seconds
+ assert len(rule1.exposed_headers) == len(rule2.exposed_headers)
+ assert len(rule1.allowed_headers) == len(rule2.allowed_headers)
def _assert_retention_equal(self, ret1, ret2):
- self.assertEqual(ret1.enabled, ret2.enabled)
- self.assertEqual(ret1.days, ret2.days)
+ assert ret1.enabled == ret2.enabled
+ assert ret1.days == ret2.days
# --Test cases per service ---------------------------------------
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_empty_set_service_properties_exception(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
- with self.assertRaises(ValueError):
+ @recorded_by_proxy_async
+ async def test_empty_set_service_properties_exception(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
+ with pytest.raises(ValueError):
await bsc.set_service_properties()
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_blob_service_properties(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_blob_service_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
# Act
resp = await bsc.set_service_properties(
@@ -140,28 +132,34 @@ async def test_blob_service_properties(self, storage_account_name, storage_accou
)
# Assert
- self.assertIsNone(resp)
+ assert resp is None
props = await bsc.get_service_properties()
self._assert_properties_default(props)
- self.assertEqual('2014-02-14', props['target_version'])
+ assert '2014-02-14' == props['target_version']
# --Test cases per feature ---------------------------------------
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_default_service_version(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_default_service_version(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
# Act
await bsc.set_service_properties(target_version='2014-02-14')
# Assert
received_props = await bsc.get_service_properties()
- self.assertEqual(received_props['target_version'], '2014-02-14')
+ assert received_props['target_version'] == '2014-02-14'
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_delete_retention_policy(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_delete_retention_policy(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=True, days=2)
# Act
@@ -172,10 +170,13 @@ async def test_set_delete_retention_policy(self, storage_account_name, storage_a
self._assert_delete_retention_policy_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_delete_retention_policy_edge_cases(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy_async
+ async def test_set_delete_retention_policy_edge_cases(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Should work with minimum settings
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=True, days=1)
await bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
@@ -195,7 +196,7 @@ async def test_set_delete_retention_policy_edge_cases(self, storage_account_name
# Should not work with 0 days
delete_retention_policy = RetentionPolicy(enabled=True, days=0)
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
await bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
# Assert
@@ -205,7 +206,7 @@ async def test_set_delete_retention_policy_edge_cases(self, storage_account_name
# Should not work with 366 days
delete_retention_policy = RetentionPolicy(enabled=True, days=366)
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
await bsc.set_service_properties(delete_retention_policy=delete_retention_policy)
# Assert
@@ -213,9 +214,12 @@ async def test_set_delete_retention_policy_edge_cases(self, storage_account_name
self._assert_delete_retention_policy_not_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_disabled_delete_retention_policy(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_disabled_delete_retention_policy(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
delete_retention_policy = RetentionPolicy(enabled=False)
# Act
@@ -226,9 +230,12 @@ async def test_set_disabled_delete_retention_policy(self, storage_account_name,
self._assert_delete_retention_policy_equal(received_props['delete_retention_policy'], delete_retention_policy)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_static_website_properties(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_static_website_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(
enabled=True,
index_document="index.html",
@@ -242,9 +249,12 @@ async def test_set_static_website_properties(self, storage_account_name, storage
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_static_website_properties_with_default_index_document_path(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_static_website_properties_with_default_index_document_path(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(
enabled=True,
error_document404_path="errors/error/404error.html",
@@ -258,10 +268,13 @@ async def test_set_static_website_properties_with_default_index_document_path(se
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_static_web_props_missing_field(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy_async
+ async def test_set_static_web_props_missing_field(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Case1: Arrange both missing
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(enabled=True)
@@ -293,9 +306,12 @@ async def test_set_static_web_props_missing_field(self, storage_account_name, st
self._assert_static_website_equal(received_props['static_website'], static_website)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_disabled_static_website_properties(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_disabled_static_website_properties(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(enabled=False, index_document="index.html",
error_document404_path="errors/error/404error.html")
@@ -307,9 +323,12 @@ async def test_disabled_static_website_properties(self, storage_account_name, st
self._assert_static_website_equal(received_props['static_website'], StaticWebsite(enabled=False))
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_static_webprops_no_impact_other_props(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_static_webprops_no_impact_other_props(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors_rule1 = CorsRule(['www.xyz.com'], ['GET'])
allowed_origins = ['www.xyz.com', "www.ab.com", "www.bc.com"]
@@ -333,7 +352,7 @@ async def test_set_static_webprops_no_impact_other_props(self, storage_account_n
received_props = await bsc.get_service_properties()
self._assert_cors_equal(received_props['cors'], cors)
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
static_website = StaticWebsite(enabled=True, index_document="index.html",
error_document404_path="errors/error/404error.html")
@@ -346,9 +365,12 @@ async def test_set_static_webprops_no_impact_other_props(self, storage_account_n
self._assert_cors_equal(received_props['cors'], cors)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_logging(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_logging(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
logging = BlobAnalyticsLogging(read=True, write=True, delete=True, retention_policy=RetentionPolicy(enabled=True, days=5))
# Act
@@ -359,9 +381,12 @@ async def test_set_logging(self, storage_account_name, storage_account_key):
self._assert_logging_equal(received_props['analytics_logging'], logging)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_hour_metrics(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_hour_metrics(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
hour_metrics = Metrics(enabled=True, include_apis=True, retention_policy=RetentionPolicy(enabled=True, days=5))
# Act
@@ -372,9 +397,12 @@ async def test_set_hour_metrics(self, storage_account_name, storage_account_key)
self._assert_metrics_equal(received_props['hour_metrics'], hour_metrics)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_minute_metrics(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_minute_metrics(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
minute_metrics = Metrics(enabled=True, include_apis=True,
retention_policy=RetentionPolicy(enabled=True, days=5))
@@ -386,9 +414,12 @@ async def test_set_minute_metrics(self, storage_account_name, storage_account_ke
self._assert_metrics_equal(received_props['minute_metrics'], minute_metrics)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_set_cors(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_set_cors(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors_rule1 = CorsRule(['www.xyz.com'], ['GET'])
allowed_origins = ['www.xyz.com', "www.ab.com", "www.bc.com"]
@@ -414,8 +445,10 @@ async def test_set_cors(self, storage_account_name, storage_account_key):
@pytest.mark.live_test_only
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_get_service_properties_account_sas(self, storage_account_name, storage_account_key):
+ async def test_get_service_properties_account_sas(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Arrange
sas_token = generate_account_sas(
account_name=storage_account_name,
@@ -430,37 +463,46 @@ async def test_get_service_properties_account_sas(self, storage_account_name, st
props = await bsc.get_service_properties()
# Assert
- self.assertIsNotNone(props)
+ assert props is not None
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_retention_no_days(self, storage_account_name, storage_account_key):
+ @recorded_by_proxy_async
+ async def test_retention_no_days(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
# Assert
- self.assertRaises(ValueError,
+ pytest.raises(ValueError,
RetentionPolicy,
True, None)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_too_many_cors_rules(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_too_many_cors_rules(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
cors = []
for i in range(0, 6):
cors.append(CorsRule(['www.xyz.com'], ['GET']))
# Assert
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
await bsc.set_service_properties(None, None, None, cors)
@BlobPreparer()
- @AsyncStorageTestCase.await_prepared_test
- async def test_retention_too_long(self, storage_account_name, storage_account_key):
- bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key, transport=AiohttpTestTransport())
+ @recorded_by_proxy_async
+ async def test_retention_too_long(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ bsc = BlobServiceClient(self.account_url(storage_account_name, "blob"), credential=storage_account_key)
minute_metrics = Metrics(enabled=True, include_apis=True,
retention_policy=RetentionPolicy(enabled=True, days=366))
# Assert
- with self.assertRaises(HttpResponseError):
+ with pytest.raises(HttpResponseError):
await bsc.set_service_properties(None, None, minute_metrics)
# ------------------------------------------------------------------------------