From ef3f1ac6c02135e07e7cbc61ca6dc2fb5d1f568a Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Thu, 14 Oct 2021 15:54:01 -0700 Subject: [PATCH 1/4] settings files --- .../tests/settings/settings_real.py | 84 +++++++++++++++++++ .../tests/settings/settings_real.py | 28 +++++++ .../tests/settings/settings_real.py | 28 +++++++ .../tests/settings/settings_real.py | 28 +++++++ 4 files changed, 168 insertions(+) create mode 100644 sdk/storage/azure-storage-blob/tests/settings/settings_real.py create mode 100644 sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py create mode 100644 sdk/storage/azure-storage-file-share/tests/settings/settings_real.py create mode 100644 sdk/storage/azure-storage-queue/tests/settings/settings_real.py diff --git a/sdk/storage/azure-storage-blob/tests/settings/settings_real.py b/sdk/storage/azure-storage-blob/tests/settings/settings_real.py new file mode 100644 index 000000000000..b8617f73ba56 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/settings/settings_real.py @@ -0,0 +1,84 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +STORAGE_ACCOUNT_NAME = "tamerdevtest" +STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" + +SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" +SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" +BLOB_STORAGE_ACCOUNT_NAME = "fakename" +BLOB_STORAGE_ACCOUNT_KEY = "fakekey" +VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" +VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" +PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" +PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" +STORAGE_RESOURCE_GROUP_NAME = "fakename" + +TENANT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" + +ACCOUNT_URL_SUFFIX = 'core.windows.net' +RUN_IN_LIVE = "True" +SKIP_LIVE_RECORDING = "True" + +PROTOCOL = "https" + + + +#----------------------------------------------------------------------------------------------------------------------- +# # ------------------------------------------------------------------------- +# # Copyright (c) Microsoft Corporation. All rights reserved. +# # Licensed under the MIT License. See License.txt in the project root for +# # license information. +# # -------------------------------------------------------------------------- +# +# # NOTE: these keys are fake, but valid base-64 data, they were generated using: +# # base64.b64encode(os.urandom(64)) +# +# import os +# +# STORAGE_DATA_LAKE_ACCOUNT_NAME = "seannsecanary" +# STORAGE_DATA_LAKE_ACCOUNT_KEY = "jQSiRFbxmqawspccEYDwStgh/uZY68gpSx4qDsgJTYGNjI0GhX/HmEz2i1zReWtmzE1tyruYRzbjxJp6jIIhYw==" +# +# # Configurations related to Active Directory, which is used to obtain a token credential +# ACTIVE_DIRECTORY_TENANT_ID = os.getenv('ACTIVE_DIRECTORY_TENANT_ID', "72f988bf-86f1-41af-91ab-2d7cd011db47") +# ACTIVE_DIRECTORY_APPLICATION_ID = os.getenv('ACTIVE_DIRECTORY_APPLICATION_ID', "68390a19-a643-458b-b726-408abf67b4fc") +# ACTIVE_DIRECTORY_APPLICATION_SECRET = os.getenv('ACTIVE_DIRECTORY_APPLICATION_SECRET', "nc~7Kk3fEyo_4oVE7ziNWs1~g2l7CFO_AN") +# +# # Use instead of STORAGE_ACCOUNT_NAME and STORAGE_ACCOUNT_KEY if custom settings are needed +# CONNECTION_STRING = os.getenv('CONNECTION_STRING', "DefaultEndpointsProtocol=https;AccountName=emilydevtest;AccountKey=RprwXjTuqZirPsnX980WinVcRQaP382OhXSFI4gJWSX6pJsK4dqBaStS78/2uScIFIqXgVMHhnmCdMLH5kbFaQ==;EndpointSuffix=core.windows.net==;EndpointSuffix=core.windows.net") +# +# # Use 'https' or 'http' protocol for sending requests, 'https' highly recommended +# PROTOCOL = "https" +# +# # Set to true if server side file encryption is enabled +# IS_SERVER_SIDE_FILE_ENCRYPTION_ENABLED = True +# +# # Decide which test mode to run against. Possible options: +# # - Playback: run against stored recordings +# # - Record: run tests against live storage and update recordings +# # - RunLiveNoRecord: run tests against live storage without altering recordings +# TEST_MODE = "Record" +# +# # Set to true to enable logging for the tests +# # logging is not enabled by default because it pollutes the CI logs +# ENABLE_LOGGING = False +# +# # Set up proxy support +# USE_PROXY = False +# PROXY_HOST = "192.168.15.116" +# PROXY_PORT = "8118" +# PROXY_USER = "" +# PROXY_PASSWORD = "" +# +# STORAGE_ACCOUNT_KEY = "ZZzqTjkCd0t+eu2YDRcKW/dr7B1ASmLbMQlnE8EwZu7/zpi5nY7b4ACIcJtXXFsJ0J5HJInIyBA7OR4SKnkRLg==" +# STORAGE_ACCOUNT_NAME = "seanstageoauth" +# AZURE_STORAGE_CONNECTION_STRING = "DefaultEndpointsProtocol=https;AccountName=seanstageoauth;AccountKey=ZZzqTjkCd0t+eu2YDRcKW/dr7B1ASmLbMQlnE8EwZu7/zpi5nY7b4ACIcJtXXFsJ0J5HJInIyBA7OR4SKnkRLg==;EndpointSuffix=core.windows.net" +# RUN_IN_LIVE = "True" +# SKIP_LIVE_RECORDING = "False" +# ACCOUNT_URL_SUFFIX = 'core.windows.net' +# diff --git a/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py b/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py new file mode 100644 index 000000000000..e80604585750 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py @@ -0,0 +1,28 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +STORAGE_ACCOUNT_NAME = "tamerdevtest" +STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" + +SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" +SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" +BLOB_STORAGE_ACCOUNT_NAME = "fakename" +BLOB_STORAGE_ACCOUNT_KEY = "fakekey" +VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" +VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" +PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" +PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" +STORAGE_RESOURCE_GROUP_NAME = "fakename" + +TENANT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" + +ACCOUNT_URL_SUFFIX = 'core.windows.net' +RUN_IN_LIVE = "True" +SKIP_LIVE_RECORDING = "True" + +PROTOCOL = "https" \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py b/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py new file mode 100644 index 000000000000..e80604585750 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py @@ -0,0 +1,28 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +STORAGE_ACCOUNT_NAME = "tamerdevtest" +STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" + +SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" +SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" +BLOB_STORAGE_ACCOUNT_NAME = "fakename" +BLOB_STORAGE_ACCOUNT_KEY = "fakekey" +VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" +VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" +PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" +PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" +STORAGE_RESOURCE_GROUP_NAME = "fakename" + +TENANT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" + +ACCOUNT_URL_SUFFIX = 'core.windows.net' +RUN_IN_LIVE = "True" +SKIP_LIVE_RECORDING = "True" + +PROTOCOL = "https" \ No newline at end of file diff --git a/sdk/storage/azure-storage-queue/tests/settings/settings_real.py b/sdk/storage/azure-storage-queue/tests/settings/settings_real.py new file mode 100644 index 000000000000..e80604585750 --- /dev/null +++ b/sdk/storage/azure-storage-queue/tests/settings/settings_real.py @@ -0,0 +1,28 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +STORAGE_ACCOUNT_NAME = "tamerdevtest" +STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" + +SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" +SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" +BLOB_STORAGE_ACCOUNT_NAME = "fakename" +BLOB_STORAGE_ACCOUNT_KEY = "fakekey" +VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" +VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" +PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" +PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" +STORAGE_RESOURCE_GROUP_NAME = "fakename" + +TENANT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_ID = "00000000-0000-0000-0000-000000000000" +CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" + +ACCOUNT_URL_SUFFIX = 'core.windows.net' +RUN_IN_LIVE = "True" +SKIP_LIVE_RECORDING = "True" + +PROTOCOL = "https" \ No newline at end of file From d2bb73d3155d0e07bff7b2f5fc8e6a6a86fd5307 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 20 Oct 2021 21:39:07 -0700 Subject: [PATCH 2/4] gitignore --- .../tests/settings/settings_real.py | 84 ------------------- .../tests/settings/settings_real.py | 28 ------- .../tests/settings/settings_real.py | 28 ------- .../tests/settings/settings_real.py | 28 ------- 4 files changed, 168 deletions(-) delete mode 100644 sdk/storage/azure-storage-blob/tests/settings/settings_real.py delete mode 100644 sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py delete mode 100644 sdk/storage/azure-storage-file-share/tests/settings/settings_real.py delete mode 100644 sdk/storage/azure-storage-queue/tests/settings/settings_real.py diff --git a/sdk/storage/azure-storage-blob/tests/settings/settings_real.py b/sdk/storage/azure-storage-blob/tests/settings/settings_real.py deleted file mode 100644 index b8617f73ba56..000000000000 --- a/sdk/storage/azure-storage-blob/tests/settings/settings_real.py +++ /dev/null @@ -1,84 +0,0 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -STORAGE_ACCOUNT_NAME = "tamerdevtest" -STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" - -SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" -SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" -BLOB_STORAGE_ACCOUNT_NAME = "fakename" -BLOB_STORAGE_ACCOUNT_KEY = "fakekey" -VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" -VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" -PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" -PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" -STORAGE_RESOURCE_GROUP_NAME = "fakename" - -TENANT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" - -ACCOUNT_URL_SUFFIX = 'core.windows.net' -RUN_IN_LIVE = "True" -SKIP_LIVE_RECORDING = "True" - -PROTOCOL = "https" - - - -#----------------------------------------------------------------------------------------------------------------------- -# # ------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# # Licensed under the MIT License. See License.txt in the project root for -# # license information. -# # -------------------------------------------------------------------------- -# -# # NOTE: these keys are fake, but valid base-64 data, they were generated using: -# # base64.b64encode(os.urandom(64)) -# -# import os -# -# STORAGE_DATA_LAKE_ACCOUNT_NAME = "seannsecanary" -# STORAGE_DATA_LAKE_ACCOUNT_KEY = "jQSiRFbxmqawspccEYDwStgh/uZY68gpSx4qDsgJTYGNjI0GhX/HmEz2i1zReWtmzE1tyruYRzbjxJp6jIIhYw==" -# -# # Configurations related to Active Directory, which is used to obtain a token credential -# ACTIVE_DIRECTORY_TENANT_ID = os.getenv('ACTIVE_DIRECTORY_TENANT_ID', "72f988bf-86f1-41af-91ab-2d7cd011db47") -# ACTIVE_DIRECTORY_APPLICATION_ID = os.getenv('ACTIVE_DIRECTORY_APPLICATION_ID', "68390a19-a643-458b-b726-408abf67b4fc") -# ACTIVE_DIRECTORY_APPLICATION_SECRET = os.getenv('ACTIVE_DIRECTORY_APPLICATION_SECRET', "nc~7Kk3fEyo_4oVE7ziNWs1~g2l7CFO_AN") -# -# # Use instead of STORAGE_ACCOUNT_NAME and STORAGE_ACCOUNT_KEY if custom settings are needed -# CONNECTION_STRING = os.getenv('CONNECTION_STRING', "DefaultEndpointsProtocol=https;AccountName=emilydevtest;AccountKey=RprwXjTuqZirPsnX980WinVcRQaP382OhXSFI4gJWSX6pJsK4dqBaStS78/2uScIFIqXgVMHhnmCdMLH5kbFaQ==;EndpointSuffix=core.windows.net==;EndpointSuffix=core.windows.net") -# -# # Use 'https' or 'http' protocol for sending requests, 'https' highly recommended -# PROTOCOL = "https" -# -# # Set to true if server side file encryption is enabled -# IS_SERVER_SIDE_FILE_ENCRYPTION_ENABLED = True -# -# # Decide which test mode to run against. Possible options: -# # - Playback: run against stored recordings -# # - Record: run tests against live storage and update recordings -# # - RunLiveNoRecord: run tests against live storage without altering recordings -# TEST_MODE = "Record" -# -# # Set to true to enable logging for the tests -# # logging is not enabled by default because it pollutes the CI logs -# ENABLE_LOGGING = False -# -# # Set up proxy support -# USE_PROXY = False -# PROXY_HOST = "192.168.15.116" -# PROXY_PORT = "8118" -# PROXY_USER = "" -# PROXY_PASSWORD = "" -# -# STORAGE_ACCOUNT_KEY = "ZZzqTjkCd0t+eu2YDRcKW/dr7B1ASmLbMQlnE8EwZu7/zpi5nY7b4ACIcJtXXFsJ0J5HJInIyBA7OR4SKnkRLg==" -# STORAGE_ACCOUNT_NAME = "seanstageoauth" -# AZURE_STORAGE_CONNECTION_STRING = "DefaultEndpointsProtocol=https;AccountName=seanstageoauth;AccountKey=ZZzqTjkCd0t+eu2YDRcKW/dr7B1ASmLbMQlnE8EwZu7/zpi5nY7b4ACIcJtXXFsJ0J5HJInIyBA7OR4SKnkRLg==;EndpointSuffix=core.windows.net" -# RUN_IN_LIVE = "True" -# SKIP_LIVE_RECORDING = "False" -# ACCOUNT_URL_SUFFIX = 'core.windows.net' -# diff --git a/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py b/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py deleted file mode 100644 index e80604585750..000000000000 --- a/sdk/storage/azure-storage-file-datalake/tests/settings/settings_real.py +++ /dev/null @@ -1,28 +0,0 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -STORAGE_ACCOUNT_NAME = "tamerdevtest" -STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" - -SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" -SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" -BLOB_STORAGE_ACCOUNT_NAME = "fakename" -BLOB_STORAGE_ACCOUNT_KEY = "fakekey" -VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" -VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" -PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" -PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" -STORAGE_RESOURCE_GROUP_NAME = "fakename" - -TENANT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" - -ACCOUNT_URL_SUFFIX = 'core.windows.net' -RUN_IN_LIVE = "True" -SKIP_LIVE_RECORDING = "True" - -PROTOCOL = "https" \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py b/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py deleted file mode 100644 index e80604585750..000000000000 --- a/sdk/storage/azure-storage-file-share/tests/settings/settings_real.py +++ /dev/null @@ -1,28 +0,0 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -STORAGE_ACCOUNT_NAME = "tamerdevtest" -STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" - -SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" -SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" -BLOB_STORAGE_ACCOUNT_NAME = "fakename" -BLOB_STORAGE_ACCOUNT_KEY = "fakekey" -VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" -VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" -PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" -PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" -STORAGE_RESOURCE_GROUP_NAME = "fakename" - -TENANT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" - -ACCOUNT_URL_SUFFIX = 'core.windows.net' -RUN_IN_LIVE = "True" -SKIP_LIVE_RECORDING = "True" - -PROTOCOL = "https" \ No newline at end of file diff --git a/sdk/storage/azure-storage-queue/tests/settings/settings_real.py b/sdk/storage/azure-storage-queue/tests/settings/settings_real.py deleted file mode 100644 index e80604585750..000000000000 --- a/sdk/storage/azure-storage-queue/tests/settings/settings_real.py +++ /dev/null @@ -1,28 +0,0 @@ -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -STORAGE_ACCOUNT_NAME = "tamerdevtest" -STORAGE_ACCOUNT_KEY = "hY4It1A68difJ/MSh35DCAPEIXB3i+pUq1b4d69vG8JZfUcaAV9I89T7SyAQly6zt1QiNyaeTT2+7AoBMSDMow==" - -SECONDARY_STORAGE_ACCOUNT_NAME = "fakename" -SECONDARY_STORAGE_ACCOUNT_KEY = "fakekey" -BLOB_STORAGE_ACCOUNT_NAME = "fakename" -BLOB_STORAGE_ACCOUNT_KEY = "fakekey" -VERSIONED_STORAGE_ACCOUNT_NAME = "fakename" -VERSIONED_STORAGE_ACCOUNT_KEY = "fakekey" -PREMIUM_STORAGE_ACCOUNT_NAME = "fakename" -PREMIUM_STORAGE_ACCOUNT_KEY = "fakekey" -STORAGE_RESOURCE_GROUP_NAME = "fakename" - -TENANT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_ID = "00000000-0000-0000-0000-000000000000" -CLIENT_SECRET = "00000000-0000-0000-0000-000000000000" - -ACCOUNT_URL_SUFFIX = 'core.windows.net' -RUN_IN_LIVE = "True" -SKIP_LIVE_RECORDING = "True" - -PROTOCOL = "https" \ No newline at end of file From d522e4d940be72290f1e799ee8d79f7e4efea5f2 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 27 Oct 2021 21:27:17 -0700 Subject: [PATCH 3/4] fixed documentation --- .../azure-storage-queue/azure/storage/queue/_queue_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py index a87514230307..357562f34bd8 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py @@ -577,9 +577,9 @@ def receive_messages(self, **kwargs): :caption: List pages and corresponding messages from the queue. :keyword int visibility_timeout: - If not specified, the default value is 0. Specifies the + If not specified, the default value is 30. Specifies the new visibility timeout value, in seconds, relative to server time. - The value must be larger than or equal to 0, and cannot be + The value must be larger than or equal to 1, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. visibility_timeout should be set to a value smaller than the time-to-live value. From 51559153f3ad8867373933a8c9f2067435748903 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Tue, 3 May 2022 22:25:06 -0700 Subject: [PATCH 4/4] async --- .../azure/storage/queue/aio/_queue_client_async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py index a6d3a2f50d42..e3a48766c13d 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py @@ -480,9 +480,9 @@ def receive_messages(self, **kwargs): `by_page()` can be used to provide a page iterator on the AsyncItemPaged if messages_per_page is set. `next()` can be used to get the next page. :keyword int visibility_timeout: - If not specified, the default value is 0. Specifies the + If not specified, the default value is 30. Specifies the new visibility timeout value, in seconds, relative to server time. - The value must be larger than or equal to 0, and cannot be + The value must be larger than or equal to 1, and cannot be larger than 7 days. The visibility timeout of a message cannot be set to a value later than the expiry time. visibility_timeout should be set to a value smaller than the time-to-live value.