From 797674533cc47f3c25a7421330ad46d83be719d3 Mon Sep 17 00:00:00 2001 From: BigCat20196 <1095260342@qq.com> Date: Fri, 31 Dec 2021 16:35:50 +0800 Subject: [PATCH] migrate tests --- .../azure-mgmt-relay/dev_requirements.txt | 3 +- sdk/relay/azure-mgmt-relay/tests/conftest.py | 47 + ...idConnectiontest_hybridconnetion_curd.json | 1125 ++++++++++++++++ ...dconnection.test_hybridconnetion_curd.yaml | 932 ------------- ...s.pyTestMgmtRelaytest_operations_list.json | 4 + ...tMgmtRelaytest_eh_namespace_available.json | 270 ++++ ...ilability.test_eh_namespace_available.yaml | 54 - ...layNamespacetest_relay_namespace_curd.json | 1184 +++++++++++++++++ ...y_namespace.test_relay_namespace_curd.yaml | 976 -------------- ....pyTestMgmtWcfRelaytest_wcfrelay_curd.json | 1136 ++++++++++++++++ ...zure_mgmt_wcfrelay.test_wcfrelay_curd.yaml | 933 ------------- .../tests/test_azure_mgmt_hybridconnection.py | 48 +- .../tests/test_azure_mgmt_operations.py | 8 +- ...zure_mgmt_relay_check_name_availability.py | 10 +- .../tests/test_azure_mgmt_relay_namespace.py | 47 +- .../tests/test_azure_mgmt_wcfrelay.py | 52 +- sdk/relay/ci.yml | 1 + 17 files changed, 3851 insertions(+), 2979 deletions(-) create mode 100644 sdk/relay/azure-mgmt-relay/tests/conftest.py create mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.pyTestMgmtHybridConnectiontest_hybridconnetion_curd.json delete mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml create mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_operations.pyTestMgmtRelaytest_operations_list.json create mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.pyTestMgmtRelaytest_eh_namespace_available.json delete mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml create mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.pyTestMgmtRelayNamespacetest_relay_namespace_curd.json delete mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml create mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.pyTestMgmtWcfRelaytest_wcfrelay_curd.json delete mode 100644 sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml diff --git a/sdk/relay/azure-mgmt-relay/dev_requirements.txt b/sdk/relay/azure-mgmt-relay/dev_requirements.txt index 1a1c8d8fc379..00bff4da2800 100644 --- a/sdk/relay/azure-mgmt-relay/dev_requirements.txt +++ b/sdk/relay/azure-mgmt-relay/dev_requirements.txt @@ -1,2 +1,3 @@ -e ../../../tools/azure-sdk-tools --e ../../../tools/azure-devtools \ No newline at end of file +-e ../../../tools/azure-devtools +../../identity/azure-identity \ No newline at end of file diff --git a/sdk/relay/azure-mgmt-relay/tests/conftest.py b/sdk/relay/azure-mgmt-relay/tests/conftest.py new file mode 100644 index 000000000000..de673c627a44 --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/conftest.py @@ -0,0 +1,47 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import os +import platform +import pytest +import sys + +from dotenv import load_dotenv + +from devtools_testutils import test_proxy, add_general_regex_sanitizer + +# Ignore async tests for Python < 3.5 +collect_ignore_glob = [] +if sys.version_info < (3, 5) or platform.python_implementation() == "PyPy": + collect_ignore_glob.append("*_async.py") + +load_dotenv() + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") \ No newline at end of file diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.pyTestMgmtHybridConnectiontest_hybridconnetion_curd.json b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.pyTestMgmtHybridConnectiontest_hybridconnetion_curd.json new file mode 100644 index 000000000000..9ae29ec29da9 --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.pyTestMgmtHybridConnectiontest_hybridconnetion_curd.json @@ -0,0 +1,1125 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:28:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS54; expires=Sun, 30-Jan-2022 08:28:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrduJyr3t-Ao1YOfO-YMGFAc0hQz3ong9OJR4b4AeqCPSN0Xpwd2sLbVZWP09nlE97kJAeNBzylPRhPRPRQCNlh3Ix0R1QaWtVSmV4qIyk-Gm6U0-auKg43mDVW1u9ElcWfmB4rxnzHq_mEmMjsQ-ak9FarHV-h0QpPVb6pvPDkW4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "f9fa03a6-ad20-43ce-8952-32aa01ba2802" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS54; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:28:19 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS54; expires=Sun, 30-Jan-2022 08:28:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR1 ProdSlices", + "x-ms-request-id": "55ee3c15-5ed6-482f-aa73-c9357bcb5600" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "7420cdc7-74fc-4db7-ba6b-9cad0c2fea72", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS54; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "7420cdc7-74fc-4db7-ba6b-9cad0c2fea72", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:28:20 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:28:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "f9fa03a6-ad20-43ce-8952-32aa12ba2802" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MDkzOTAwMCwibmJmIjoxNjQwOTM5MDAwLCJleHAiOjE2NDA5NDI5MDAsImFpbyI6IkUyWmdZSEQ2WFBQdDdjSmxUTGNkQXpqdVB3aHBCd0E9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6InBnUDYtU0N0emtPSlVqS3FFcm9vQWciLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.Vc1TfucMELUWH7jx_MBfPoBiE3JVuFANloOmSd9s01kDyumLnptDADRVAJHVqXfQs-YhclygQq5WgkW3LtGhmvbRVefexYhBb3rSqIev5g8yO7Ru-jy10U9XKGqa-r8vXIPNBiPbGpBnLvxW10ZRC0eSlXkZ3RsCHWDHkKYoPA6Xdo2q2KewduZUXeEI7OiAydQF_L9bUlf46DMLymdSfumcSCUig1pktde0-8GNkzgre0aqg7xbzsprfsTKYGRSqWk96yZn4lKZsVtt4gheOwY-a-iny6EUVTgEX6fmeF4QfE0rv8fXQUkN58j1UgNhunuLOn-bGqPE9NKyeZFubg" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9b59492b-6a13-11ec-8e48-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022westus\u0022, \u0022tags\u0022: {\u0022tag1\u0022: \u0022value1\u0022, \u0022tag2\u0022: \u0022value2\u0022}, \u0022sku\u0022: {\u0022name\u0022: \u0022Standard\u0022, \u0022tier\u0022: \u0022standard\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:28:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/SN1", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/SN1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8310a948-c7ec-4cf4-9481-070a7d2c06ad", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "969d25a4-1cd8-428c-a3c1-6355a4f2b447_M9SN1_M9SN1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082836Z:8310a948-c7ec-4cf4-9481-070a7d2c06ad" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection", + "name": "testingpythontestcasenamespacehybridconnection", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection", + "createdAt": "2021-12-31T08:28:31.42Z", + "updatedAt": "2021-12-31T08:28:31.42Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9b59492b-6a13-11ec-8e48-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "835a931b-af1a-4728-bb08-335afde40084", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "e5051639-d3f5-4285-971a-a1316db36453_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082908Z:835a931b-af1a-4728-bb08-335afde40084" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection", + "name": "testingpythontestcasenamespacehybridconnection", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection", + "createdAt": "2021-12-31T08:28:31.42Z", + "updatedAt": "2021-12-31T08:28:31.42Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "9b59492b-6a13-11ec-8e48-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ebcf59e8-75cd-4d24-8663-046d012ddfe2", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "0c22c6bb-ba62-41b8-9e23-b6752aea33fe_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082939Z:ebcf59e8-75cd-4d24-8663-046d012ddfe2" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection", + "name": "testingpythontestcasenamespacehybridconnection", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection", + "createdAt": "2021-12-31T08:28:31.42Z", + "updatedAt": "2021-12-31T08:29:16.39Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cb7048fa-6a13-11ec-80ba-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f4111cb3-3beb-4704-8f05-27a8f90e9b59", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "458105e9-3392-4309-a2ed-b81efeb14444_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082940Z:f4111cb3-3beb-4704-8f05-27a8f90e9b59" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection", + "name": "testingpythontestcasenamespacehybridconnection", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection", + "createdAt": "2021-12-31T08:28:31.42Z", + "updatedAt": "2021-12-31T08:29:16.39Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "103", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cba29d83-6a13-11ec-9759-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022requiresClientAuthorization\u0022: true, \u0022userMetadata\u0022: \u0022User data for HybridConnection\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "096a08d4-d081-40c7-a4ff-18505964d44c", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "28c826d5-d6b7-4a62-a818-926c1141b121_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082943Z:096a08d4-d081-40c7-a4ff-18505964d44c" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection", + "name": "testingpythontestcasehybridconnection", + "type": "Microsoft.Relay/Namespaces/HybridConnections", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:29:42.7275678Z", + "updatedAt": "2021-12-31T08:29:42.7275678Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "userMetadata": "User data for HybridConnection" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cd801244-6a13-11ec-acb6-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c18ad2ed-e6cf-412e-bd25-d21b78a52962", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "b3d955e6-0f84-49c2-a102-d08442e2d890_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082943Z:c18ad2ed-e6cf-412e-bd25-d21b78a52962" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection", + "name": "testingpythontestcasehybridconnection", + "type": "Microsoft.Relay/Namespaces/HybridConnections", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:29:42.7275678Z", + "updatedAt": "2021-12-31T08:29:42.7275678Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "userMetadata": "User data for HybridConnection" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cdbaf7b1-6a13-11ec-be96-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97e80018-589e-4b13-a8a2-2e0fd5300743", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "b303cf9b-ea59-4c5c-a98f-0cb647d36a25_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082944Z:97e80018-589e-4b13-a8a2-2e0fd5300743" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection", + "name": "testingpythontestcasehybridconnection", + "type": "Microsoft.Relay/Namespaces/HybridConnections", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:29:42.7275678Z", + "updatedAt": "2021-12-31T08:29:42.7275678Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "userMetadata": "User data for HybridConnection" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "74", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "ce283fbe-6a13-11ec-8644-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022userMetadata\u0022: \u0022User data for HybridConnection updated\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c09b4861-35cb-43c2-bff4-a777f96e6500", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "61c03a9c-9619-4cc2-a8ac-50f686c721fd_M11CH3_M11CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082946Z:c09b4861-35cb-43c2-bff4-a777f96e6500" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection", + "name": "testingpythontestcasehybridconnection", + "type": "Microsoft.Relay/Namespaces/HybridConnections", + "location": "West US", + "properties": { + "createdAt": "0001-01-01T00:00:00", + "updatedAt": "0001-01-01T00:00:00", + "listenerCount": 0, + "requiresClientAuthorization": true, + "userMetadata": "User data for HybridConnection updated" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "46", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "cf5ba97e-6a13-11ec-a0ba-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85464a3b-aee7-4785-9170-241508a96239", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "3e7a05d0-88dc-45ff-8a05-356f235f3ebf_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082949Z:85464a3b-aee7-4785-9170-241508a96239" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d1001834-6a13-11ec-9851-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1dd16de5-bdc8-46ec-a182-33b6a9acc407", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "06bad8e5-faa7-4d76-a1cb-4bee453e3322_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082950Z:1dd16de5-bdc8-46ec-a182-33b6a9acc407" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "56", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d1a8f578-6a13-11ec-92ff-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022, \u0022Manage\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c0775cca-e5b1-4899-b0fb-07d8ed919604", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "5f8aa1e1-0968-4c25-8f00-4440f0681e34_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082951Z:c0775cca-e5b1-4899-b0fb-07d8ed919604" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d219b3dd-6a13-11ec-86e3-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8547de32-5eee-4716-afd8-151cf35d5fb1", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "a20083e8-fa91-421c-93d7-cad9e86bcc86_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082951Z:8547de32-5eee-4716-afd8-151cf35d5fb1" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d26209e9-6a13-11ec-84c9-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05c7a888-2f5a-49e7-8eb5-994cceba0983", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "813b78fe-31ea-48e0-be76-3f5abcbb6521_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082953Z:05c7a888-2f5a-49e7-8eb5-994cceba0983" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=YN\u002BLZ0xuDxe2rXTbXag0y2fYkraiBqB3DzZgBHrytrA=;EntityPath=testingpythontestcasehybridconnection", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=OOoNU4eca7ryZjp5EcbNVDLpvbFhpDjqj28AdbbSAS4=;EntityPath=testingpythontestcasehybridconnection", + "primaryKey": "YN\u002BLZ0xuDxe2rXTbXag0y2fYkraiBqB3DzZgBHrytrA=", + "secondaryKey": "OOoNU4eca7ryZjp5EcbNVDLpvbFhpDjqj28AdbbSAS4=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "25", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d37e769c-6a13-11ec-a912-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022PrimaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d829e0cf-e540-471a-a127-6ae732e86986", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "2c8606dd-003d-401c-962b-d45feef39a94_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082953Z:d829e0cf-e540-471a-a127-6ae732e86986" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=JHc1bW45D4D/TrbhZ2uOIUrkEocNLAKAxbKqOmVZUxg=;EntityPath=testingpythontestcasehybridconnection", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=OOoNU4eca7ryZjp5EcbNVDLpvbFhpDjqj28AdbbSAS4=;EntityPath=testingpythontestcasehybridconnection", + "primaryKey": "JHc1bW45D4D/TrbhZ2uOIUrkEocNLAKAxbKqOmVZUxg=", + "secondaryKey": "OOoNU4eca7ryZjp5EcbNVDLpvbFhpDjqj28AdbbSAS4=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "27", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d3d13d8f-6a13-11ec-a6b1-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022SecondaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:29:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de49dea3-4cea-4a0e-93ad-eabd77dc96a6", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "3b75c7d3-594c-4d08-84e0-5f7e6c7c0617_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082954Z:de49dea3-4cea-4a0e-93ad-eabd77dc96a6" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=JHc1bW45D4D/TrbhZ2uOIUrkEocNLAKAxbKqOmVZUxg=;EntityPath=testingpythontestcasehybridconnection", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=IKWU/htUkQZjzaZZBgZsnmA6/XFcqU6HmnI6zV/TRss=;EntityPath=testingpythontestcasehybridconnection", + "primaryKey": "JHc1bW45D4D/TrbhZ2uOIUrkEocNLAKAxbKqOmVZUxg=", + "secondaryKey": "IKWU/htUkQZjzaZZBgZsnmA6/XFcqU6HmnI6zV/TRss=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d43dbae6-6a13-11ec-b24b-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:29:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb371624-df33-4ea4-9364-482aef7d3fdd", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "81a72e07-6d86-4281-b988-12c970e0fd34_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T082957Z:fb371624-df33-4ea4-9364-482aef7d3fdd" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d5e451fa-6a13-11ec-b20e-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:30:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5b39aa87-bba4-40c3-87de-721f50dda64b", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "5d82d963-c57a-4f65-a201-c199a56ba787_M4CH3_M4CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083000Z:5b39aa87-bba4-40c3-87de-721f50dda64b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d7f9f56d-6a13-11ec-930a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:30:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/operationresults/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15b145c1-c220-4f1d-9454-2c227298eecc", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "1d01b446-2d97-46a3-a747-0d0549bbb940_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083003Z:15b145c1-c220-4f1d-9454-2c227298eecc" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ba24323b/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/operationresults/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "d7f9f56d-6a13-11ec-930a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:30:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d0c92602-dd62-4e2d-9560-57bf8c2ca604", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "1b665fc0-42be-46e1-b67c-4fa51da59df7_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083035Z:d0c92602-dd62-4e2d-9560-57bf8c2ca604" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml deleted file mode 100644 index 4343566aedb0..000000000000 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml +++ /dev/null @@ -1,932 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"tag1": "value1", "tag2": "value2"}, "sku": - {"name": "Standard", "tier": "standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '117' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2021-09-03T03:08:49.9Z","updatedAt":"2021-09-03T03:08:49.9Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '773' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:08:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2021-09-03T03:08:49.9Z","updatedAt":"2021-09-03T03:08:49.9Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '773' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2021-09-03T03:08:49.9Z","updatedAt":"2021-09-03T03:09:34.433Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '773' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2021-09-03T03:08:49.9Z","updatedAt":"2021-09-03T03:09:34.433Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '773' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"requiresClientAuthorization": true, "userMetadata": "User - data for HybridConnection"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '103' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"2021-09-03T03:09:52.4570713Z","updatedAt":"2021-09-03T03:09:52.4570713Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User - data for HybridConnection"}}' - headers: - cache-control: - - no-cache - content-length: - - '611' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"2021-09-03T03:09:52.4570713Z","updatedAt":"2021-09-03T03:09:52.4570713Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User - data for HybridConnection"}}' - headers: - cache-control: - - no-cache - content-length: - - '611' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"2021-09-03T03:09:52.4570713Z","updatedAt":"2021-09-03T03:09:52.4570713Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User - data for HybridConnection"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '623' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-inline-count: - - '' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"userMetadata": "User data for HybridConnection updated"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '74' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"0001-01-01T00:00:00","updatedAt":"0001-01-01T00:00:00","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User - data for HybridConnection updated"}}' - headers: - cache-control: - - no-cache - content-length: - - '601' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '487' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '487' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen", "Manage"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '56' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}' - headers: - cache-control: - - no-cache - content-length: - - '496' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/HybridConnections/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '508' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=O6uOlLxeGWZGidUUA/bSvPPtzOeDkybJyPrvlNm6Yk0=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=GWZDi4nC8qzqU9qfm32kZzdmKZhBNWoJyWiTNYZdasU=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"O6uOlLxeGWZGidUUA/bSvPPtzOeDkybJyPrvlNm6Yk0=","secondaryKey":"GWZDi4nC8qzqU9qfm32kZzdmKZhBNWoJyWiTNYZdasU=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '677' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '25' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=ok51xI8zpHZDr0/qepA7PKvCL/zPYvCao3j9uN+nfKM=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=GWZDi4nC8qzqU9qfm32kZzdmKZhBNWoJyWiTNYZdasU=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"ok51xI8zpHZDr0/qepA7PKvCL/zPYvCao3j9uN+nfKM=","secondaryKey":"GWZDi4nC8qzqU9qfm32kZzdmKZhBNWoJyWiTNYZdasU=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '677' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '27' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=ok51xI8zpHZDr0/qepA7PKvCL/zPYvCao3j9uN+nfKM=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=u4H4VtqJtX9cUyODTAEjZqhfeUg6nCM8NenjbveHsOg=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"ok51xI8zpHZDr0/qepA7PKvCL/zPYvCao3j9uN+nfKM=","secondaryKey":"u4H4VtqJtX9cUyODTAEjZqhfeUg6nCM8NenjbveHsOg=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '677' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:09:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:09:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:09:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:09:58 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/operationresults/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/operationresults/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:10:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_operations.pyTestMgmtRelaytest_operations_list.json b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_operations.pyTestMgmtRelaytest_operations_list.json new file mode 100644 index 000000000000..f721723386d8 --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_operations.pyTestMgmtRelaytest_operations_list.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.pyTestMgmtRelaytest_eh_namespace_available.json b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.pyTestMgmtRelaytest_eh_namespace_available.json new file mode 100644 index 000000000000..1389859bf347 --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.pyTestMgmtRelaytest_eh_namespace_available.json @@ -0,0 +1,270 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:41 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "488fccab-4216-4fc0-a02e-73d2ba3fdb01" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:42 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR1 ProdSlices", + "x-ms-request-id": "8efa0660-ddf1-4551-9d50-495710a45800" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "97d49c6e-fd0f-4736-9fd0-929eb4843431", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "97d49c6e-fd0f-4736-9fd0-929eb4843431", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:42 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAgAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:42 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - WUS2 ProdSlices", + "x-ms-request-id": "ffa0581e-6f60-45c5-8b65-70a5d791e401" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MDkzOTE0MiwibmJmIjoxNjQwOTM5MTQyLCJleHAiOjE2NDA5NDMwNDIsImFpbyI6IkUyWmdZSWdPYmIvU2RuRmU3clB0bFFXcjE2OHdCQUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IkhsaWdfMkJ2eFVXTFpYQ2wxNUhrQVEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.ho2efKUVQLMoRFBmalMvsuJ0alIJA7TIsidNIDF8D79bf4mK6JN1S2a2_O-yuW8Ka46J8Entknlm4wfD-r-PuxqOzcDVrkIBFKzlCUwwzGzr9LMm-EPKetOPjkppnmrF49MAsdhPKoGWgYKsjlLTdOvjFnoOjhfusUJr1RIK6lcyG81a7KGC5CivdfwNseR_TjAS2YyLPsr3i1ADDamI8yc3uc3nB07cugrRPxGU3J0gfSCl-7jS9NZAjKvlfeBjDW7f-pPefLBK5j9JYhxaWy9wq8Xuj5f-FRYRsxGuvGD6bfMZWvNEW8j63OWnqozu9yRDGFkp4IcT4p5hnLc_Yg" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/checkNameAvailability?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "51", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "f0087d18-6a13-11ec-950a-70b5e82527ff" + }, + "RequestBody": "{\u0022name\u0022: \u0022Testingehnamespaceavailabilityforpython\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df03626c-63f8-40c6-8dc6-8a3029d36a8e", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "a425daaf-0822-4582-b5f3-ea51dd3b156d_M4CH3_M4CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083044Z:df03626c-63f8-40c6-8dc6-8a3029d36a8e" + }, + "ResponseBody": { + "nameAvailable": true, + "reason": "None", + "message": null + } + } + ], + "Variables": {} +} diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml deleted file mode 100644 index 35ec2db3c7d8..000000000000 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml +++ /dev/null @@ -1,54 +0,0 @@ -interactions: -- request: - body: '{"name": "Testingehnamespaceavailabilityforpython"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '51' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/checkNameAvailability?api-version=2017-04-01 - response: - body: - string: '{"nameAvailable":true,"reason":"None","message":null}' - headers: - cache-control: - - no-cache - content-length: - - '53' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:10:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.pyTestMgmtRelayNamespacetest_relay_namespace_curd.json b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.pyTestMgmtRelayNamespacetest_relay_namespace_curd.json new file mode 100644 index 000000000000..3e76c552ca88 --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.pyTestMgmtRelayNamespacetest_relay_namespace_curd.json @@ -0,0 +1,1184 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:46 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAgAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:47 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "2e9d8a30-8da1-48a9-ac8a-e0f421838401" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAgAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:46 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAgAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:47 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - KRSLR1 ProdSlices", + "x-ms-request-id": "8efa0660-ddf1-4551-9d50-4957cea45800" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "875a4602-2040-4028-b835-a3f2f7cdabfd", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAgAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "875a4602-2040-4028-b835-a3f2f7cdabfd", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:47 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAwAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:30:47 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "d460ccd9-5ed0-4528-af27-b7cb6a80ed01" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MDkzOTE0NywibmJmIjoxNjQwOTM5MTQ3LCJleHAiOjE2NDA5NDMwNDcsImFpbyI6IkUyWmdZRmh0K2RFMXZONmFaZHFON3B2MnV0eUZBQT09IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6IjJjeGcxTkJlS0VXdko3Zkxhb0R0QVEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.iwIducP-gFVYZ85TFSEsGh5bviC3d5hirm9aVBizacRbtGbff_7xWF8H6gw1qPxrKg48c5J725WVUclizMow9z_FIsULf0XU_ljhiIkHsxdnau_Q36XILmlc8fKAsonDUAruf80_56u7YPX5ds2VS-5CRFe5CRY6r63gzX2E6pPaTGaoyOasJmWrljxJMbFzoJag7XlPjGkWo30f-PZ8UhEVNi8TLgqZ66JHZWX5wK0-Nn2VLa0uwjlIB9Tb826uNVZqt1fDgE0PFR8gRrO89M9ONAjrWIRnkQsZtjmE1nHPfveb98ZofHjLvCyiQFwPiOID0TS1WPPLOh45oFWrTg" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "f34dd61f-6a13-11ec-8e6a-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022westus\u0022, \u0022tags\u0022: {\u0022tag1\u0022: \u0022value1\u0022, \u0022tag2\u0022: \u0022value2\u0022}, \u0022sku\u0022: {\u0022name\u0022: \u0022Standard\u0022, \u0022tier\u0022: \u0022standard\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:30:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2beedb5d-adf6-46d2-90a0-3d372835cfda", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "c2c4a3dd-1408-467d-9ea1-e40435d830ce_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083052Z:2beedb5d-adf6-46d2-90a0-3d372835cfda" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:30:50.71Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "f34dd61f-6a13-11ec-8e6a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:31:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2b90b76a-693e-4026-96fc-a94a5d2e2b4a", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "17260260-cb3f-4f3d-be2f-95775d4fa261_M4CH3_M4CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083125Z:2b90b76a-693e-4026-96fc-a94a5d2e2b4a" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:30:50.71Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "f34dd61f-6a13-11ec-8e6a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:31:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a131ed0b-ddbc-49c3-a873-72750296a618", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "77f6dcb7-7518-47b2-8aca-e05146f13239_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083156Z:a131ed0b-ddbc-49c3-a873-72750296a618" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:31:34.153Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1cdd1a91-6a14-11ec-b6d2-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:31:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d80c6841-8548-43b1-81c2-9e3796c7ff97", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "2a4d05a8-157f-4ed8-acfe-4b16c8d1c72b_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083156Z:d80c6841-8548-43b1-81c2-9e3796c7ff97" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:31:34.153Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "46", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1d0e0b83-6a14-11ec-8c8f-70b5e82527ff" + }, + "RequestBody": "{\u0022tags\u0022: {\u0022tag1\u0022: \u0022value1\u0022, \u0022tag2\u0022: \u0022value2\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:31:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e639f7ef-e86f-4210-8797-b8262ddf2ee3", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "13255f20-3c0e-44a9-bc88-87184e0621df_M11CH3_M11CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083200Z:e639f7ef-e86f-4210-8797-b8262ddf2ee3" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Updating", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:31:58.323Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1f2ce89b-6a14-11ec-92cf-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f127b5e-875f-4fe7-aa1a-337fca1445d4", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "0efe7926-a403-44b4-8e99-7d80f5845344_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083201Z:0f127b5e-875f-4fe7-aa1a-337fca1445d4" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:32:00.697Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Active" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/namespaces?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "1ff92e25-6a14-11ec-8333-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bcf0ded3-db9e-4e2c-b42d-80c129cb19b2", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "d9bfcf1c-7137-4df1-b575-cfe1a693eb18_M5CH3_M5CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083202Z:bcf0ded3-db9e-4e2c-b42d-80c129cb19b2" + }, + "ResponseBody": { + "value": [ + { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace", + "name": "testingpythontestcasenamespace", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace", + "createdAt": "2021-12-31T08:30:50.71Z", + "updatedAt": "2021-12-31T08:32:00.697Z", + "serviceBusEndpoint": "https://testingpythontestcasenamespace.servicebus.windows.net:443/", + "status": "Active" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "203c5b7d-6a14-11ec-8c98-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3023426e-665f-40fc-83b4-3f36ccccea3e", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "fd608043-a4e5-4e10-bef0-29b67997d80e_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083204Z:3023426e-665f-40fc-83b4-3f36ccccea3e" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Listen", + "Manage", + "Send" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "46", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "21ddf580-6a14-11ec-852b-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3ce25f4-4d4f-47bf-af98-46c26140f2cd", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "223b8a97-0524-49af-85da-6c2cc87d9575_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083212Z:e3ce25f4-4d4f-47bf-af98-46c26140f2cd" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "26ab3436-6a14-11ec-bc5c-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bda4032f-40f0-4812-abb4-6432705b1631", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "d7a800d0-e3c7-482c-9a65-f1ba742dd4a4_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083213Z:bda4032f-40f0-4812-abb4-6432705b1631" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "56", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "272799f9-6a14-11ec-a465-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022, \u0022Manage\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "caadf155-f204-45a6-82ce-74638d0853d9", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "a64158be-0f98-492c-ad09-380f379805fc_M1CH3_M1CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083219Z:caadf155-f204-45a6-82ce-74638d0853d9" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "2ad16e79-6a14-11ec-8190-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4d28cceb-1c77-4dfa-983d-669a3a3a41f6", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "b1498f94-ef9b-483b-aa1f-d43cb4c23792_M9CH3_M9CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083222Z:4d28cceb-1c77-4dfa-983d-669a3a3a41f6" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Listen", + "Manage", + "Send" + ] + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "2c6e45df-6a14-11ec-8559-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ff79898-3c38-4db2-99d0-fcb5a649d069", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "58ee3c97-7d86-4890-ae39-439e06b1702d_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083223Z:8ff79898-3c38-4db2-99d0-fcb5a649d069" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Kct4TUEH53HxN/OjO6V9b5vkdgxp8QJDMjniXItz9TI=", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=J/eNTgmxdS\u002BnYSVQQclEvyhkLNwChmNBWY1CG/RC4lk=", + "primaryKey": "Kct4TUEH53HxN/OjO6V9b5vkdgxp8QJDMjniXItz9TI=", + "secondaryKey": "J/eNTgmxdS\u002BnYSVQQclEvyhkLNwChmNBWY1CG/RC4lk=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "25", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "2d16ee79-6a14-11ec-af74-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022PrimaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9ca29663-fbdc-404d-a9a1-8a45ba6b4bba", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "2f9d102f-7bf6-4f71-9792-c4907801ad23_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083229Z:9ca29663-fbdc-404d-a9a1-8a45ba6b4bba" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=2bJeviSswJhPAk4BsuOc45FI59ZG6a6MZvU\u002B1iizHoE=", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=J/eNTgmxdS\u002BnYSVQQclEvyhkLNwChmNBWY1CG/RC4lk=", + "primaryKey": "2bJeviSswJhPAk4BsuOc45FI59ZG6a6MZvU\u002B1iizHoE=", + "secondaryKey": "J/eNTgmxdS\u002BnYSVQQclEvyhkLNwChmNBWY1CG/RC4lk=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "27", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "30c38410-6a14-11ec-8be7-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022SecondaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb34e0c8-a5aa-47ef-a17b-f2866cbd8c7d", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "c0120aac-5a5d-4b18-bdd0-40c491a82bd2_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083236Z:bb34e0c8-a5aa-47ef-a17b-f2866cbd8c7d" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=2bJeviSswJhPAk4BsuOc45FI59ZG6a6MZvU\u002B1iizHoE=", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=5LA\u002B36oTRj15WI6R7bGg4pcZM3SUjQwsVGM7Jz23fOY=", + "primaryKey": "2bJeviSswJhPAk4BsuOc45FI59ZG6a6MZvU\u002B1iizHoE=", + "secondaryKey": "5LA\u002B36oTRj15WI6R7bGg4pcZM3SUjQwsVGM7Jz23fOY=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "349b33cb-6a14-11ec-a24c-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:32:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f5a3cea-e803-4271-a95e-5840860ce1d7", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-request-id": "4763087b-56a3-4e28-95b2-95717f1b1984_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083242Z:9f5a3cea-e803-4271-a95e-5840860ce1d7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "384e7de9-6a14-11ec-947a-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:32:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8d084a4-b70f-4531-a833-772ee316cdf3", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "7b3920e7-a7b9-4919-a8d2-0e4fb288a826_M8CH3_M8CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083243Z:f8d084a4-b70f-4531-a833-772ee316cdf3" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.Relay/Namespaces/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Listen", + "Manage", + "Send" + ] + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "38f0c38b-6a14-11ec-854f-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:32:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "76953232-0b19-4616-8ec9-60a9fe8264a6", + "x-ms-ratelimit-remaining-subscription-deletes": "14993", + "x-ms-request-id": "793b7743-1bf2-4311-9a4b-8b8c77c2e7b1_M2CH3_M2CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083244Z:76953232-0b19-4616-8ec9-60a9fe8264a6" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/13a630a4/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "38f0c38b-6a14-11ec-854f-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:33:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f08f142-d8b0-4eb2-a367-5795e49e747c", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "48b90fd9-c670-470a-8dd9-56d606cacd8d_M2CH3_M2CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083316Z:4f08f142-d8b0-4eb2-a367-5795e49e747c" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml deleted file mode 100644 index f23b51f0aa4b..000000000000 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml +++ /dev/null @@ -1,976 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"tag1": "value1", "tag2": "value2"}, "sku": - {"name": "Standard", "tier": "standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '117' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:10:33.757Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '712' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:10:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:10:33.757Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '712' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:03 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:11:17.993Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '710' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:11:17.993Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '710' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"tags": {"tag1": "value1", "tag2": "value2"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:11:34.917Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '713' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces?api-version=2017-04-01 - response: - body: - string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:11:34.917Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '725' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/namespaces?api-version=2017-04-01 - response: - body: - string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2021-09-03T03:10:33.757Z","updatedAt":"2021-09-03T03:11:34.917Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '725' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-inline-count: - - '' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Listen","Manage","Send"]}}' - headers: - cache-control: - - no-cache - content-length: - - '421' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:35 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"error":{"message":"Namespace provisioning in transition. For more - information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: 5acb1e85-f710-4b20-addc-ade8bb4f170d","code":"429"}}' - headers: - cache-control: - - no-cache - connection: - - close - content-length: - - '192' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:11:35 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 429 - message: '' -- request: - body: '{"properties": {"rights": ["Send", "Listen"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '396' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '396' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen", "Manage"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '56' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '839' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=DnhpzxQPWod/z3/hNl3hrvAggjUccxAWC7h41MKQCUI=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=SSbYg0hZ6UZoMAaouYZMKmn0SeMUt9saN1h2qcoQYfk=","primaryKey":"DnhpzxQPWod/z3/hNl3hrvAggjUccxAWC7h41MKQCUI=","secondaryKey":"SSbYg0hZ6UZoMAaouYZMKmn0SeMUt9saN1h2qcoQYfk=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '547' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '25' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=kloJXsCT+sRmKQTj0IFtfJTEUZP2P9l+2niBaaizhgY=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=SSbYg0hZ6UZoMAaouYZMKmn0SeMUt9saN1h2qcoQYfk=","primaryKey":"kloJXsCT+sRmKQTj0IFtfJTEUZP2P9l+2niBaaizhgY=","secondaryKey":"SSbYg0hZ6UZoMAaouYZMKmn0SeMUt9saN1h2qcoQYfk=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '547' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '27' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=kloJXsCT+sRmKQTj0IFtfJTEUZP2P9l+2niBaaizhgY=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=EY9YxVsjodtQFCXGL7DW5/x1bmVyUJ09xpzB0K+NF/Q=","primaryKey":"kloJXsCT+sRmKQTj0IFtfJTEUZP2P9l+2niBaaizhgY=","secondaryKey":"EY9YxVsjodtQFCXGL7DW5/x1bmVyUJ09xpzB0K+NF/Q=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '547' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:16:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.Relay/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Listen","Manage","Send"]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '433' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:16:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:16:28 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:16:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.pyTestMgmtWcfRelaytest_wcfrelay_curd.json b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.pyTestMgmtWcfRelaytest_wcfrelay_curd.json new file mode 100644 index 000000000000..5023d831021e --- /dev/null +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.pyTestMgmtWcfRelaytest_wcfrelay_curd.json @@ -0,0 +1,1136 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:33:25 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAwAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:33:25 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - EUS ProdSlices", + "x-ms-request-id": "9be2f597-6b9b-4a38-9824-41ad5bad9401" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAwAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:33:25 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAwAAACS2YNkOAAAA; expires=Sun, 30-Jan-2022 08:33:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12261.17 - SEASLR1 ProdSlices", + "x-ms-request-id": "823055ed-b003-4ce7-b900-8962227b5c00" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "bc1699e0-ed76-4548-80ed-7585475b8aca", + "Connection": "keep-alive", + "Content-Length": "289", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAwAAACS2YNkOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.16.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "bc1699e0-ed76-4548-80ed-7585475b8aca", + "Content-Length": "1391", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:33:26 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=AibCj-9R54FGsS0F7skTS56ZHqKEAQAAAFC3YNkOAAAA; expires=Sun, 30-Jan-2022 08:33:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12261.17 - NCUS ProdSlices", + "x-ms-request-id": "fa5ed6a4-73a3-478a-837d-135a5b349801" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0MDkzOTMwNiwibmJmIjoxNjQwOTM5MzA2LCJleHAiOjE2NDA5NDMyMDYsImFpbyI6IkUyWmdZRGh4ZlpMdldUWFZWZXJuT1o1TVd0cnhBQUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6InBOWmUtcU56aWtlRGZSTmFXelNZQVEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.NvscJbSP3CozozDaWI8Ri8qj3HbSCrbgs80A5sij1bNB8DimmqhukN8q6Nu-qNBLwVQs-lHQqnFnUl5oArwWjFAqCIGbiGhYPb_rXViCAiaCe-m9Cq0uuFTgsqgrtbd2a2RhHfY3bN7r6e9artyAetKtXVeOZSk5tS7BMxmeE6tVnNWOmTohysFHKRBWwlQA2CpmVIsY8RVLl-IAOK4_r6GKwGvDT4T9wnlK3eElXDTyaaXhSOkDTCdGdli3UYy71KBZ-2r4-D2SOv8jpMKaIHKwVrKiMHyZzFucWNQBjQNrSM4eEli1cON7wxA1iamiPtML7EEyYvFzNVtgqhK1yA" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "51868ea5-6a14-11ec-b197-70b5e82527ff" + }, + "RequestBody": "{\u0022location\u0022: \u0022westus\u0022, \u0022tags\u0022: {\u0022tag1\u0022: \u0022value1\u0022, \u0022tag2\u0022: \u0022value2\u0022}, \u0022sku\u0022: {\u0022name\u0022: \u0022Standard\u0022, \u0022tier\u0022: \u0022standard\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:33:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c174cda3-c5bc-4df0-ba55-36f1efe027cc", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "28272ab0-5b52-4bdd-954e-45e6b07da341_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083330Z:c174cda3-c5bc-4df0-ba55-36f1efe027cc" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub", + "name": "testingpythontestcaseeventhubnamespaceEventhub", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub", + "createdAt": "2021-12-31T08:33:29.24Z", + "updatedAt": "2021-12-31T08:33:29.24Z", + "serviceBusEndpoint": "https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "51868ea5-6a14-11ec-b197-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f70e94ce-bdf1-4c8c-9c0d-48deedb962e0", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "4e14cd2a-2ee8-48ff-adff-2c7a562c450b_M0CH3_M0CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083402Z:f70e94ce-bdf1-4c8c-9c0d-48deedb962e0" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub", + "name": "testingpythontestcaseeventhubnamespaceEventhub", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Created", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub", + "createdAt": "2021-12-31T08:33:29.24Z", + "updatedAt": "2021-12-31T08:33:29.24Z", + "serviceBusEndpoint": "https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/", + "status": "Activating" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "51868ea5-6a14-11ec-b197-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fec3d34-33ef-45ae-b2bf-8591335f6340", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "2d3f7267-035f-42fd-ab9e-66fe7a659c72_M11CH3_M11CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083433Z:7fec3d34-33ef-45ae-b2bf-8591335f6340" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub", + "name": "testingpythontestcaseeventhubnamespaceEventhub", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub", + "createdAt": "2021-12-31T08:33:29.24Z", + "updatedAt": "2021-12-31T08:34:13.29Z", + "serviceBusEndpoint": "https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7a8bbbec-6a14-11ec-ba73-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37b594b4-a9c8-4291-aff4-2dee0334b1a9", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "866482ea-ab03-45e6-8a95-a468e83b2274_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083434Z:37b594b4-a9c8-4291-aff4-2dee0334b1a9" + }, + "ResponseBody": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub", + "name": "testingpythontestcaseeventhubnamespaceEventhub", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub", + "createdAt": "2021-12-31T08:33:29.24Z", + "updatedAt": "2021-12-31T08:34:13.29Z", + "serviceBusEndpoint": "https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/", + "status": "Active" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "153", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7ac13287-6a14-11ec-9282-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022relayType\u0022: \u0022NetTcp\u0022, \u0022requiresClientAuthorization\u0022: true, \u0022requiresTransportSecurity\u0022: true, \u0022userMetadata\u0022: \u0022User data for WcfRelay\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81b996d8-d912-4dd8-8b07-c7f8dfeedce1", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "aa83a474-e0e6-4a2b-a992-98eb96a241bc_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083436Z:81b996d8-d912-4dd8-8b07-c7f8dfeedce1" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay", + "name": "testingpythontestcasewcfrelay", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:34:35.7588145Z", + "updatedAt": "2021-12-31T08:34:35.7588145Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false, + "userMetadata": "User data for WcfRelay" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7c275937-6a14-11ec-897d-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f76a03e-71c8-4872-922c-00fc3485ce2e", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "941f748f-76e6-413b-a85d-2b6fbc215760_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083437Z:2f76a03e-71c8-4872-922c-00fc3485ce2e" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay", + "name": "testingpythontestcasewcfrelay", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:34:35.7588145Z", + "updatedAt": "2021-12-31T08:34:35.7588145Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false, + "userMetadata": "User data for WcfRelay" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7c9df7d7-6a14-11ec-80d7-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8f245908-175e-488f-9150-03dff98d96f4", + "x-ms-inline-count": "", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "a4dcca58-c6e0-43a1-aa56-927b35d55285_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083438Z:8f245908-175e-488f-9150-03dff98d96f4" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay", + "name": "testingpythontestcasewcfrelay", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "West US", + "properties": { + "createdAt": "2021-12-31T08:34:35.7588145Z", + "updatedAt": "2021-12-31T08:34:35.7588145Z", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false, + "userMetadata": "User data for WcfRelay" + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "89", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7d4dec24-6a14-11ec-bf60-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022relayType\u0022: \u0022NetTcp\u0022, \u0022userMetadata\u0022: \u0022User data for WcfRelay updated\u0022}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cdaf712a-a495-4c84-b3fe-41d0397770b9", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "fc4f5e21-e4d1-479e-af09-058f241fbc25_M10CH3_M10CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083439Z:cdaf712a-a495-4c84-b3fe-41d0397770b9" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay", + "name": "testingpythontestcasewcfrelay", + "type": "Microsoft.Relay/Namespaces/WcfRelays", + "location": "West US", + "properties": { + "createdAt": "0001-01-01T00:00:00", + "updatedAt": "0001-01-01T00:00:00", + "listenerCount": 0, + "requiresClientAuthorization": true, + "relayType": "NetTcp", + "requiresTransportSecurity": true, + "isDynamic": false, + "userMetadata": "User data for WcfRelay updated" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "46", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7def7c7d-6a14-11ec-8e84-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "12c0e45c-ab40-441d-a433-ca2d2f424322", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "52447aa5-4d25-4e61-a1fe-c750d89ad693_M9CH3_M9CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083441Z:12c0e45c-ab40-441d-a433-ca2d2f424322" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "7f2a8d28-6a14-11ec-af7e-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b4524cf-5e5d-4cb7-bfb1-e04af175b1f1", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "df79fb4b-2bb0-456c-b234-5379067ebdef_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083443Z:0b4524cf-5e5d-4cb7-bfb1-e04af175b1f1" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "56", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80597877-6a14-11ec-b87a-70b5e82527ff" + }, + "RequestBody": "{\u0022properties\u0022: {\u0022rights\u0022: [\u0022Send\u0022, \u0022Listen\u0022, \u0022Manage\u0022]}}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ce10742-6cdb-4d5f-a11d-48586f75bf29", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "f7e46c27-db2f-452a-8550-fa1341d8e47e_M7CH3_M7CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083444Z:8ce10742-6cdb-4d5f-a11d-48586f75bf29" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "80b5eb6b-6a14-11ec-9f50-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f63e52a7-1e23-4859-8dd1-497aeb76d035", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "464b43e9-5369-4e53-b727-7e5577969e90_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083445Z:f63e52a7-1e23-4859-8dd1-497aeb76d035" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy", + "name": "testingauthrulepy", + "type": "Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules", + "location": "West US", + "properties": { + "rights": [ + "Send", + "Listen", + "Manage" + ] + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "81a5b96e-6a14-11ec-9af2-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e475f5a0-cd08-4dd8-943a-d6bac533f318", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "bf6b50af-4d24-4b83-aed2-b74ab9b81a04_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083446Z:e475f5a0-cd08-4dd8-943a-d6bac533f318" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=XjtkHHX34Ok3AlerBVbEV9a4wnHR/rmtsk0110v68x0=;EntityPath=testingpythontestcasewcfrelay", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=D6u/QD9fxOTi6K\u002BYpcdCwHfwmt3Trv4aw/Bco0P6F\u002BE=;EntityPath=testingpythontestcasewcfrelay", + "primaryKey": "XjtkHHX34Ok3AlerBVbEV9a4wnHR/rmtsk0110v68x0=", + "secondaryKey": "D6u/QD9fxOTi6K\u002BYpcdCwHfwmt3Trv4aw/Bco0P6F\u002BE=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "25", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "81f0323d-6a14-11ec-ace5-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022PrimaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23c5259a-0d0a-45f6-8787-dd5cab584c23", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "333fb3bc-df73-4239-997a-dd2f650129c5_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083446Z:23c5259a-0d0a-45f6-8787-dd5cab584c23" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=LFfPakP0EyQWVnyTTY1\u002BSyeRhk6hlCzEsCPkv4NJ9Ng=;EntityPath=testingpythontestcasewcfrelay", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=D6u/QD9fxOTi6K\u002BYpcdCwHfwmt3Trv4aw/Bco0P6F\u002BE=;EntityPath=testingpythontestcasewcfrelay", + "primaryKey": "LFfPakP0EyQWVnyTTY1\u002BSyeRhk6hlCzEsCPkv4NJ9Ng=", + "secondaryKey": "D6u/QD9fxOTi6K\u002BYpcdCwHfwmt3Trv4aw/Bco0P6F\u002BE=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "27", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "8247a541-6a14-11ec-a218-70b5e82527ff" + }, + "RequestBody": "{\u0022keyType\u0022: \u0022SecondaryKey\u0022}", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 31 Dec 2021 08:34:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5f23a6a-fe66-4817-92dc-80339620852f", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "9da842c5-3c28-4bef-a68b-886a19e53a00_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083447Z:a5f23a6a-fe66-4817-92dc-80339620852f" + }, + "ResponseBody": { + "primaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=LFfPakP0EyQWVnyTTY1\u002BSyeRhk6hlCzEsCPkv4NJ9Ng=;EntityPath=testingpythontestcasewcfrelay", + "secondaryConnectionString": "Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Fo2m53yHhQwJL3rXlsQpE3Bc5NPuKr/xQo9YcUuiuXs=;EntityPath=testingpythontestcasewcfrelay", + "primaryKey": "LFfPakP0EyQWVnyTTY1\u002BSyeRhk6hlCzEsCPkv4NJ9Ng=", + "secondaryKey": "Fo2m53yHhQwJL3rXlsQpE3Bc5NPuKr/xQo9YcUuiuXs=", + "keyName": "testingauthrulepy" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "8298f342-6a14-11ec-8d36-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:34:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aa15990e-c8d1-4f9e-b9fa-c3178c655e04", + "x-ms-ratelimit-remaining-subscription-deletes": "14992", + "x-ms-request-id": "d8488b4a-67b4-4c44-bd36-139eefd16235_M6CH3_M6CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083447Z:aa15990e-c8d1-4f9e-b9fa-c3178c655e04" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "83064639-6a14-11ec-9f7e-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:34:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c39c64e-bba3-4183-9854-5bca19c00898", + "x-ms-ratelimit-remaining-subscription-deletes": "14991", + "x-ms-request-id": "508b45ef-57af-4d6e-9394-305a093b788e_M4CH3_M4CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083450Z:4c39c64e-bba3-4183-9854-5bca19c00898" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "84518e20-6a14-11ec-a8ee-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:34:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94613699-4a70-4903-b6e2-24c79e673576", + "x-ms-ratelimit-remaining-subscription-deletes": "14990", + "x-ms-request-id": "7677149c-23ff-45fc-8ba4-9b7d20cffbbd_M3CH3_M3CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083452Z:94613699-4a70-4903-b6e2-24c79e673576" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7fb9289f/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-relay/1.1.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "x-ms-client-request-id": "84518e20-6a14-11ec-a8ee-70b5e82527ff" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 31 Dec 2021 08:35:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": [ + "Service-Bus-Resource-Provider/CH3", + "Microsoft-HTTPAPI/2.0" + ], + "Server-SB": "Service-Bus-Resource-Provider/CH3", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc233e2a-9f55-4a84-9e4a-197cd99320cc", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "1b62fd4c-344c-4517-bd1d-d7a8c94beac3_M9CH3_M9CH3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20211231T083523Z:dc233e2a-9f55-4a84-9e4a-197cd99320cc" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml deleted file mode 100644 index e68533dbb177..000000000000 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml +++ /dev/null @@ -1,933 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"tag1": "value1", "tag2": "value2"}, "sku": - {"name": "Standard", "tier": "standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '117' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2021-09-03T03:17:02.983Z","updatedAt":"2021-09-03T03:17:02.983Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:17:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2021-09-03T03:17:02.983Z","updatedAt":"2021-09-03T03:17:02.983Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '762' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:17:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2021-09-03T03:17:02.983Z","updatedAt":"2021-09-03T03:17:44.973Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '760' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:03 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2021-09-03T03:17:02.983Z","updatedAt":"2021-09-03T03:17:44.973Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '760' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:03 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"relayType": "NetTcp", "requiresClientAuthorization": true, - "requiresTransportSecurity": true, "userMetadata": "User data for WcfRelay"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '153' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2021-09-03T03:18:05.7293697Z","updatedAt":"2021-09-03T03:18:05.7293697Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User - data for WcfRelay"}}' - headers: - cache-control: - - no-cache - content-length: - - '628' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2021-09-03T03:18:05.7293697Z","updatedAt":"2021-09-03T03:18:05.7293697Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User - data for WcfRelay"}}' - headers: - cache-control: - - no-cache - content-length: - - '628' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2021-09-03T03:18:05.7293697Z","updatedAt":"2021-09-03T03:18:05.7293697Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User - data for WcfRelay"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '640' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-inline-count: - - '' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"relayType": "NetTcp", "userMetadata": "User data for WcfRelay - updated"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '89' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"0001-01-01T00:00:00","updatedAt":"0001-01-01T00:00:00","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User - data for WcfRelay updated"}}' - headers: - cache-control: - - no-cache - content-length: - - '618' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '46' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '448' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen"]}}' - headers: - cache-control: - - no-cache - content-length: - - '448' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"rights": ["Send", "Listen", "Manage"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '56' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}' - headers: - cache-control: - - no-cache - content-length: - - '457' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules?api-version=2017-04-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.Relay/Namespaces/WcfRelays/AuthorizationRules","location":"West - US","properties":{"rights":["Send","Listen","Manage"]}}]}' - headers: - cache-control: - - no-cache - content-length: - - '469' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=lrKVVAH/Jk6Ra9Hylp036dLou/k2WEPUbjv6ZM83fzE=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=6FYTUMBCVAgyPn7wjO1RQYRtmwC5B2a0Y0UC6ZT7qJ4=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"lrKVVAH/Jk6Ra9Hylp036dLou/k2WEPUbjv6ZM83fzE=","secondaryKey":"6FYTUMBCVAgyPn7wjO1RQYRtmwC5B2a0Y0UC6ZT7qJ4=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '661' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '25' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=+ZYbi+MnUp99E0CL5iJEdHXua8ghOTsPUwSa95xXvBk=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=6FYTUMBCVAgyPn7wjO1RQYRtmwC5B2a0Y0UC6ZT7qJ4=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"+ZYbi+MnUp99E0CL5iJEdHXua8ghOTsPUwSa95xXvBk=","secondaryKey":"6FYTUMBCVAgyPn7wjO1RQYRtmwC5B2a0Y0UC6ZT7qJ4=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '661' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '27' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 - response: - body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=+ZYbi+MnUp99E0CL5iJEdHXua8ghOTsPUwSa95xXvBk=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=glBSYt3MiQtpwC3zL3CX0Bm5kgdVUV0Tkj4CwTZXe5w=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"+ZYbi+MnUp99E0CL5iJEdHXua8ghOTsPUwSa95xXvBk=","secondaryKey":"glBSYt3MiQtpwC3zL3CX0Bm5kgdVUV0Tkj4CwTZXe5w=","keyName":"testingauthrulepy"}' - headers: - cache-control: - - no-cache - content-length: - - '661' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 03 Sep 2021 03:18:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:18:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:18:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:18:10 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-relay/0.0.0 Python/3.8.11 (Linux-5.8.0-1040-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 03 Sep 2021 03:18:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py index 633e5d4c53ae..d0e440512c65 100644 --- a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py +++ b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_hybridconnection.py @@ -10,19 +10,19 @@ import azure.mgmt.relay.models from azure.mgmt.relay.models import RelayNamespace, Sku, AccessRights -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy -class MgmtHybridConnectionTest(AzureMgmtTestCase): +class TestMgmtHybridConnection(AzureMgmtRecordedTestCase): - def setUp(self): - super(MgmtHybridConnectionTest, self).setUp() + def setup_method(self, method): self.relay_client = self.create_mgmt_client( azure.mgmt.relay.RelayAPI ) @ResourceGroupPreparer() + @recorded_by_proxy def test_hybridconnetion_curd(self, resource_group, location): resource_group_name = resource_group.name @@ -32,13 +32,13 @@ def test_hybridconnetion_curd(self, resource_group, location): namespaceparameter = RelayNamespace(location=location, tags={'tag1': 'value1', 'tag2': 'value2'}, sku=Sku(tier="standard")) creatednamespace = self.relay_client.namespaces.begin_create_or_update(resource_group_name, namespace_name, namespaceparameter).result() - self.assertEqual(creatednamespace.name, namespace_name) + assert creatednamespace.name == namespace_name # # # Get created Namespace # getnamespaceresponse = self.relay_client.namespaces.get(resource_group_name, namespace_name) - self.assertEqual(getnamespaceresponse.name, namespace_name) + assert getnamespaceresponse.name == namespace_name # Create a HybridConnection hybridconnection_name = "testingpythontestcasehybridconnection" @@ -48,64 +48,64 @@ def test_hybridconnetion_curd(self, resource_group, location): "user_metadata": "User data for HybridConnection" }) - self.assertEqual(createdhybridconnectionresponse.name, hybridconnection_name) - self.assertEqual(createdhybridconnectionresponse.requires_client_authorization, True) + assert createdhybridconnectionresponse.name == hybridconnection_name + assert createdhybridconnectionresponse.requires_client_authorization == True #Get the created Hybridconnection gethybridconnectionresponse = self.relay_client.hybrid_connections.get(resource_group_name, namespace_name, hybridconnection_name) - self.assertEqual(gethybridconnectionresponse.name, hybridconnection_name) - self.assertEqual(gethybridconnectionresponse.user_metadata, "User data for HybridConnection") + assert gethybridconnectionresponse.name == hybridconnection_name + assert gethybridconnectionresponse.user_metadata == "User data for HybridConnection" #Get the List of Hybridconnection by namespaces getlistbynamespacehybridconnectionresponse = list(self.relay_client.hybrid_connections.list_by_namespace(resource_group_name, namespace_name)) - self.assertGreater(len(getlistbynamespacehybridconnectionresponse), 0) + assert len(getlistbynamespacehybridconnectionresponse) > 0 updatehybridconnectionresponse = self.relay_client.hybrid_connections.create_or_update(resource_group_name, namespace_name, hybridconnection_name, { "user_metadata": "User data for HybridConnection updated" }) - self.assertEqual(updatehybridconnectionresponse.name, hybridconnection_name) - self.assertEqual(updatehybridconnectionresponse.requires_client_authorization, True) - self.assertEqual(updatehybridconnectionresponse.user_metadata, "User data for HybridConnection updated") + assert updatehybridconnectionresponse.name == hybridconnection_name + assert updatehybridconnectionresponse.requires_client_authorization == True + assert updatehybridconnectionresponse.user_metadata == "User data for HybridConnection updated" # Create a new authorizationrule authoRule_name = "testingauthrulepy" createhybridconnectionauthorule = self.relay_client.hybrid_connections.create_or_update_authorization_rule(resource_group_name, namespace_name, hybridconnection_name, authoRule_name,{ "rights": [AccessRights('Send'),AccessRights('Listen')] }) - self.assertEqual(createhybridconnectionauthorule.name, authoRule_name, "Authorization rule name not as created - create_or_update_authorization_rule ") - self.assertEqual(len(createhybridconnectionauthorule.rights), 2) + assert createhybridconnectionauthorule.name, authoRule_name == "Authorization rule name not as created - create_or_update_authorization_rule " + assert len(createhybridconnectionauthorule.rights) == 2 # Get the created authorizationrule gethybridconnectionauthorule = self.relay_client.hybrid_connections.get_authorization_rule(resource_group_name, namespace_name, hybridconnection_name, authoRule_name) - self.assertEqual(gethybridconnectionauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter - get_authorization_rule ") - self.assertEqual(len(gethybridconnectionauthorule.rights), 2, "Access rights mis match as created - get_authorization_rule ") + assert gethybridconnectionauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter - get_authorization_rule " + assert len(gethybridconnectionauthorule.rights), 2 == "Access rights mis match as created - get_authorization_rule " # update the rights of the authorizatiorule gethybridconnectionauthorule.rights.append('Manage') updatehybridconnectionauthorule = self.relay_client.hybrid_connections.create_or_update_authorization_rule(resource_group_name, namespace_name, hybridconnection_name, authoRule_name, gethybridconnectionauthorule) - self.assertEqual(updatehybridconnectionauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule ") - self.assertEqual(len(updatehybridconnectionauthorule.rights), 3, "Access rights mis match as updated - create_or_update_authorization_rule ") + assert updatehybridconnectionauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule " + assert len(updatehybridconnectionauthorule.rights), 3 == "Access rights mis match as updated - create_or_update_authorization_rule " #list all the authorization ruels for the given namespace hybridconnectionauthorulelist = list(self.relay_client.hybrid_connections.list_authorization_rules(resource_group_name, namespace_name, hybridconnection_name)) - self.assertEqual(len(hybridconnectionauthorulelist), 1, "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules") + assert len(hybridconnectionauthorulelist), 1 == "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules" #List keys for the authorization rule listkeysauthorizationrule = self.relay_client.hybrid_connections.list_keys(resource_group_name, namespace_name, hybridconnection_name, authoRule_name) - self.assertIsNotNone(listkeysauthorizationrule) + assert listkeysauthorizationrule is not None # regenerate Keys for authorizationrule - Primary regenratePrimarykeyauthorizationrule = self.relay_client.hybrid_connections.regenerate_keys(resource_group_name, namespace_name, hybridconnection_name, authoRule_name, { "key_type": 'PrimaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.primary_key,regenratePrimarykeyauthorizationrule.primary_key) + assert listkeysauthorizationrule.primary_key !=regenratePrimarykeyauthorizationrule.primary_key # regenerate Keys for authorizationrule - Primary regenrateSecondarykeyauthorizationrule = self.relay_client.hybrid_connections.regenerate_keys(resource_group_name,namespace_name, hybridconnection_name, authoRule_name, { "key_type": 'SecondaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.secondary_key, regenrateSecondarykeyauthorizationrule.secondary_key) + assert listkeysauthorizationrule.secondary_key != regenrateSecondarykeyauthorizationrule.secondary_key # delete the authorizationrule self.relay_client.hybrid_connections.delete_authorization_rule(resource_group_name, namespace_name, hybridconnection_name, authoRule_name) diff --git a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_operations.py b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_operations.py index 83497f92c74f..9ae17d3f2e13 100644 --- a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_operations.py +++ b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_operations.py @@ -7,18 +7,18 @@ # -------------------------------------------------------------------------- import unittest import azure.mgmt.relay -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy -class MgmtRelayTest(AzureMgmtTestCase): +class TestMgmtRelay(AzureMgmtRecordedTestCase): - def setUp(self): - super(MgmtRelayTest, self).setUp() + def setup_method(self, method): self.relay_client = self.create_mgmt_client( azure.mgmt.relay.RelayAPI ) + @recorded_by_proxy def test_operations_list(self): # Check the namespace availability result = self.relay_client.operations.list() diff --git a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_check_name_availability.py b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_check_name_availability.py index 2b6af379e7cf..a085517cf674 100644 --- a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_check_name_availability.py +++ b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_check_name_availability.py @@ -7,13 +7,12 @@ # -------------------------------------------------------------------------- import unittest import azure.mgmt.relay -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy -class MgmtRelayTest(AzureMgmtTestCase): +class TestMgmtRelay(AzureMgmtRecordedTestCase): - def setUp(self): - super(MgmtRelayTest, self).setUp() + def setup_method(self, method): self.relay_client = self.create_mgmt_client( azure.mgmt.relay.RelayAPI @@ -22,12 +21,13 @@ def setUp(self): def process(self, result): pass + @recorded_by_proxy def test_eh_namespace_available(self): # Check the namespace availability availabilityresult = self.relay_client.namespaces.check_name_availability({ "name": "Testingehnamespaceavailabilityforpython" }) - self.assertEqual(availabilityresult.name_available, True) + assert availabilityresult.name_available == True # ------------------------------------------------------------------------------ diff --git a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_namespace.py b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_namespace.py index 041c8fa08691..5f321f48829b 100644 --- a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_namespace.py +++ b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_relay_namespace.py @@ -9,19 +9,19 @@ import azure.mgmt.relay from azure.mgmt.relay.models import RelayNamespace, Sku, AccessRights -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy -class MgmtRelayNamespaceTest(AzureMgmtTestCase): +class TestMgmtRelayNamespace(AzureMgmtRecordedTestCase): - def setUp(self): - super(MgmtRelayNamespaceTest, self).setUp() + def setup_method(self, method): self.relay_client = self.create_mgmt_client( azure.mgmt.relay.RelayAPI ) @ResourceGroupPreparer() + @recorded_by_proxy def test_relay_namespace_curd(self, resource_group, location): resource_group_name = resource_group.name @@ -30,12 +30,12 @@ def test_relay_namespace_curd(self, resource_group, location): namespace_name = "testingpythontestcasenamespace" namespaceparameter=RelayNamespace(location=location, tags={'tag1':'value1', 'tag2':'value2'}, sku=Sku(tier="standard")) creatednamespace = self.relay_client.namespaces.begin_create_or_update(resource_group_name, namespace_name, namespaceparameter).result() - self.assertEqual(creatednamespace.name, namespace_name) + assert creatednamespace.name == namespace_name # # # Get created Namespace # getnamespaceresponse = self.relay_client.namespaces.get(resource_group_name, namespace_name) - self.assertEqual(getnamespaceresponse.name, namespace_name) + assert getnamespaceresponse.name == namespace_name # Update a Namespace namespaceparameter={'tags': {'tag1':'value1', 'tag2':'value2'}} @@ -43,65 +43,64 @@ def test_relay_namespace_curd(self, resource_group, location): # Get the List of Namespaces under the resourceGroup - list_by_resource_group listbyresourcegroupresponse = list(self.relay_client.namespaces.list_by_resource_group(resource_group_name)) - self.assertGreater(len(listbyresourcegroupresponse), 0, "No Namespace returned, List is empty") - self.assertEqual(listbyresourcegroupresponse[0].name, namespace_name, "Created namespace not found - ListByResourgroup") + assert len(listbyresourcegroupresponse) > 0, "No Namespace returned > List is empty" + assert listbyresourcegroupresponse[0].name == namespace_name, "Created namespace not found - ListByResourgroup" # Get the List of namespace under the subscription - list listbysubscriptionresponse = list(self.relay_client.namespaces.list()) - self.assertGreater(len(listbysubscriptionresponse), 0, "No Namespace returned, List is empty") - + assert len(listbysubscriptionresponse) > 0, "No Namespace returned > List is empty" # get the default authorizationrule defaultauthorule_name = "RootManageSharedAccessKey" defaultamespaceauthorule = self.relay_client.namespaces.get_authorization_rule(resource_group_name, namespace_name, defaultauthorule_name) - self.assertEqual(defaultamespaceauthorule.name, defaultauthorule_name, "Default Authorization rule not returned - RootManageSharedAccessKey") - self.assertEqual(len(defaultamespaceauthorule.rights), 3, "rights for deafult not as required - send, listen and manage ") + assert defaultamespaceauthorule.name == defaultauthorule_name, "Default Authorization rule not returned - RootManageSharedAccessKey" + assert len(defaultamespaceauthorule.rights) == 3, "rights for deafult not as required - send == listen and manage " # Create a new authorizationrule authoRule_name = "testingauthrulepy" createnamespaceauthorule = self.relay_client.namespaces.create_or_update_authorization_rule(resource_group_name,namespace_name,authoRule_name, { "rights": [AccessRights('Send'),AccessRights('Listen')] }) - self.assertEqual(createnamespaceauthorule.name,authoRule_name, "Authorization rule name not as created - create_or_update_authorization_rule ") - self.assertEqual(len(createnamespaceauthorule.rights),2) + assert createnamespaceauthorule.name,authoRule_name == "Authorization rule name not as created - create_or_update_authorization_rule " + assert len(createnamespaceauthorule.rights) ==2 # Get the created authorizationrule getnamespaceauthorule = self.relay_client.namespaces.get_authorization_rule(resource_group_name, namespace_name, authoRule_name) - self.assertEqual(getnamespaceauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter - get_authorization_rule ") - self.assertEqual(len(getnamespaceauthorule.rights), 2, "Access rights mis match as created - get_authorization_rule ") + assert getnamespaceauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter - get_authorization_rule " + assert len(getnamespaceauthorule.rights), 2 == "Access rights mis match as created - get_authorization_rule " # update the rights of the authorizatiorule getnamespaceauthorule.rights.append('Manage') updatenamespaceauthorule = self.relay_client.namespaces.create_or_update_authorization_rule(resource_group_name, namespace_name, authoRule_name, getnamespaceauthorule) - self.assertEqual(updatenamespaceauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule ") - self.assertEqual(len(updatenamespaceauthorule.rights), 3, "Access rights mis match as updated - create_or_update_authorization_rule ") + assert updatenamespaceauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule " + assert len(updatenamespaceauthorule.rights), 3 == "Access rights mis match as updated - create_or_update_authorization_rule " # list all the authorization ruels for the given namespace createnamespaceauthorule = list(self.relay_client.namespaces.list_authorization_rules(resource_group_name, namespace_name)) - self.assertEqual(len(createnamespaceauthorule),2, "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules") + assert len(createnamespaceauthorule),2 == "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules" # List keys for the authorization rule listkeysauthorizationrule = self.relay_client.namespaces.list_keys(resource_group_name, namespace_name, authoRule_name) - self.assertIsNotNone(listkeysauthorizationrule) + assert listkeysauthorizationrule is not None # regenerate Keys for authorizationrule - Primary regenratePrimarykeyauthorizationrule = self.relay_client.namespaces.regenerate_keys(resource_group_name, namespace_name,authoRule_name,{ "key_type": 'PrimaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.primary_key,regenratePrimarykeyauthorizationrule.primary_key) + assert listkeysauthorizationrule.primary_key !=regenratePrimarykeyauthorizationrule.primary_key # regenerate Keys for authorizationrule - Primary regenrateSecondarykeyauthorizationrule = self.relay_client.namespaces.regenerate_keys(resource_group_name,namespace_name,authoRule_name, { "key_type": 'SecondaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.secondary_key, regenrateSecondarykeyauthorizationrule.secondary_key) + assert listkeysauthorizationrule.secondary_key != regenrateSecondarykeyauthorizationrule.secondary_key # delete the authorizationrule self.relay_client.namespaces.delete_authorization_rule(resource_group_name, namespace_name, authoRule_name) # list all the authorization ruels for the given namespace createnamespaceauthorule = list(self.relay_client.namespaces.list_authorization_rules(resource_group_name, namespace_name)) - self.assertEqual(len(createnamespaceauthorule), 1) - self.assertEqual(createnamespaceauthorule[0].name, defaultauthorule_name) + assert len(createnamespaceauthorule) == 1 + assert createnamespaceauthorule[0].name == defaultauthorule_name # Delete the create namespace deletenamespace = self.relay_client.namespaces.begin_delete(resource_group_name, namespace_name).result() diff --git a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_wcfrelay.py b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_wcfrelay.py index 0df733e5a0ef..88033eca56f0 100644 --- a/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_wcfrelay.py +++ b/sdk/relay/azure-mgmt-relay/tests/test_azure_mgmt_wcfrelay.py @@ -10,19 +10,19 @@ import azure.mgmt.relay.models from azure.mgmt.relay.models import RelayNamespace, Sku, Relaytype, AuthorizationRule, AccessRights, AccessKeys, WcfRelay, ErrorResponse -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy -class MgmtWcfRelayTest(AzureMgmtTestCase): +class TestMgmtWcfRelay(AzureMgmtRecordedTestCase): - def setUp(self): - super(MgmtWcfRelayTest, self).setUp() + def setup_method(self, method): self.relay_client = self.create_mgmt_client( azure.mgmt.relay.RelayAPI ) @ResourceGroupPreparer() + @recorded_by_proxy def test_wcfrelay_curd(self, resource_group, location): resource_group_name = resource_group.name @@ -32,13 +32,13 @@ def test_wcfrelay_curd(self, resource_group, location): namespaceparameter = RelayNamespace(location=location, tags={'tag1': 'value1', 'tag2': 'value2'}, sku=Sku(tier="standard")) creatednamespace = self.relay_client.namespaces.begin_create_or_update(resource_group_name, namespace_name, namespaceparameter).result() - self.assertEqual(creatednamespace.name, namespace_name) + assert creatednamespace.name == namespace_name # # # Get created Namespace # getnamespaceresponse = self.relay_client.namespaces.get(resource_group_name, namespace_name) - self.assertEqual(getnamespaceresponse.name, namespace_name) + assert getnamespaceresponse.name == namespace_name # Create a WcfRelay wcfrelay_name = "testingpythontestcasewcfrelay" @@ -51,18 +51,18 @@ def test_wcfrelay_curd(self, resource_group, location): createdwcfrelayresponse = self.relay_client.wcf_relays.create_or_update(resource_group_name, namespace_name, wcfrelay_name, wcfrelayparameter) - self.assertEqual(createdwcfrelayresponse.name, wcfrelay_name) - self.assertEqual(createdwcfrelayresponse.requires_client_authorization, True) + assert createdwcfrelayresponse.name == wcfrelay_name + assert createdwcfrelayresponse.requires_client_authorization == True #Get the created wcfRelay geteventhubresponse = self.relay_client.wcf_relays.get(resource_group_name, namespace_name, wcfrelay_name) - self.assertEqual(geteventhubresponse.name, wcfrelay_name) - self.assertEqual(geteventhubresponse.requires_transport_security, True) - self.assertEqual(geteventhubresponse.user_metadata, "User data for WcfRelay") + assert geteventhubresponse.name == wcfrelay_name + assert geteventhubresponse.requires_transport_security == True + assert geteventhubresponse.user_metadata == "User data for WcfRelay" #Get the List of wcfRealy by namespaces getlistbynamespacewcfrelayresponse = list(self.relay_client.wcf_relays.list_by_namespace(resource_group_name, namespace_name)) - self.assertGreater(len(getlistbynamespacewcfrelayresponse), 0) + assert len(getlistbynamespacewcfrelayresponse) > 0 # update the Created eventhub wcfrelayupdateparameter = WcfRelay( @@ -75,49 +75,49 @@ def test_wcfrelay_curd(self, resource_group, location): wcfrelay_name, wcfrelayupdateparameter ) - self.assertEqual(updatewcfrelayresponse.name, wcfrelay_name) - self.assertEqual(updatewcfrelayresponse.requires_transport_security, True) - self.assertEqual(updatewcfrelayresponse.requires_client_authorization, True) - self.assertEqual(updatewcfrelayresponse.user_metadata, "User data for WcfRelay updated") + assert updatewcfrelayresponse.name == wcfrelay_name + assert updatewcfrelayresponse.requires_transport_security == True + assert updatewcfrelayresponse.requires_client_authorization == True + assert updatewcfrelayresponse.user_metadata == "User data for WcfRelay updated" # Create a new authorizationrule authoRule_name = "testingauthrulepy" createwcfrelayauthorule = self.relay_client.wcf_relays.create_or_update_authorization_rule(resource_group_name, namespace_name, wcfrelay_name, authoRule_name, { "rights": [AccessRights('Send'),AccessRights('Listen')] }) - self.assertEqual(createwcfrelayauthorule.name, authoRule_name, "Authorization rule name not as created - create_or_update_authorization_rule ") - self.assertEqual(len(createwcfrelayauthorule.rights), 2) + assert createwcfrelayauthorule.name, authoRule_name == "Authorization rule name not as created - create_or_update_authorization_rule " + assert len(createwcfrelayauthorule.rights) == 2 # Get the created authorizationrule getwcfrelayauthorule = self.relay_client.wcf_relays.get_authorization_rule(resource_group_name, namespace_name, wcfrelay_name, authoRule_name) - self.assertEqual(getwcfrelayauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter - get_authorization_rule ") - self.assertEqual(len(getwcfrelayauthorule.rights), 2, "Access rights mis match as created - get_authorization_rule ") + assert getwcfrelayauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter - get_authorization_rule " + assert len(getwcfrelayauthorule.rights), 2 == "Access rights mis match as created - get_authorization_rule " # update the rights of the authorizatiorule getwcfrelayauthorule.rights.append('Manage') updatewcfrelayauthorule = self.relay_client.wcf_relays.create_or_update_authorization_rule(resource_group_name, namespace_name, wcfrelay_name, authoRule_name, getwcfrelayauthorule) - self.assertEqual(updatewcfrelayauthorule.name, authoRule_name, "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule ") - self.assertEqual(len(updatewcfrelayauthorule.rights), 3, "Access rights mis match as updated - create_or_update_authorization_rule ") + assert updatewcfrelayauthorule.name, authoRule_name == "Authorization rule name not as passed as parameter for update call - create_or_update_authorization_rule " + assert len(updatewcfrelayauthorule.rights), 3 == "Access rights mis match as updated - create_or_update_authorization_rule " #list all the authorization ruels for the given namespace wcfrelayauthorulelist = list(self.relay_client.wcf_relays.list_authorization_rules(resource_group_name, namespace_name, wcfrelay_name)) - self.assertEqual(len(wcfrelayauthorulelist), 1, "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules") + assert len(wcfrelayauthorulelist), 1 == "number of authorization rule mismatch with the created + default = 2 - list_authorization_rules" #List keys for the authorization rule listkeysauthorizationrule = self.relay_client.wcf_relays.list_keys(resource_group_name, namespace_name, wcfrelay_name, authoRule_name) - self.assertIsNotNone(listkeysauthorizationrule) + assert listkeysauthorizationrule is not None # regenerate Keys for authorizationrule - Primary regenratePrimarykeyauthorizationrule = self.relay_client.wcf_relays.regenerate_keys(resource_group_name, namespace_name, wcfrelay_name, authoRule_name, { "key_type": 'PrimaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.primary_key,regenratePrimarykeyauthorizationrule.primary_key) + assert listkeysauthorizationrule.primary_key !=regenratePrimarykeyauthorizationrule.primary_key # regenerate Keys for authorizationrule - Primary regenrateSecondarykeyauthorizationrule = self.relay_client.wcf_relays.regenerate_keys(resource_group_name,namespace_name, wcfrelay_name, authoRule_name, { "key_type": 'SecondaryKey' }) - self.assertNotEqual(listkeysauthorizationrule.secondary_key, regenrateSecondarykeyauthorizationrule.secondary_key) + assert listkeysauthorizationrule.secondary_key != regenrateSecondarykeyauthorizationrule.secondary_key # delete the authorizationrule self.relay_client.wcf_relays.delete_authorization_rule(resource_group_name, namespace_name, wcfrelay_name, authoRule_name) diff --git a/sdk/relay/ci.yml b/sdk/relay/ci.yml index 68c1742fbf30..2c47bf20d057 100644 --- a/sdk/relay/ci.yml +++ b/sdk/relay/ci.yml @@ -27,6 +27,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: relay + TestProxy: true Artifacts: - name: azure-mgmt-relay safeName: azuremgmtrelay