From cb9a7a18ce76e6860e581183ba63d7982a8dcb91 Mon Sep 17 00:00:00 2001 From: Venkat Ragavan <50309787+venkatr21@users.noreply.github.com> Date: Sun, 16 Oct 2022 22:51:40 +0530 Subject: [PATCH 1/6] added sdk tests --- ...ationstest_load_test_quota_operations.json | 359 +++++++++++ ...onstest_load_test_resource_operations.json | 609 ++++++++++++++++++ ...tions.test_load_test_quota_operations.yaml | 227 +++++++ ...ns.test_load_test_resource_operations.yaml | 540 ++++++++++++++++ .../tests/test_loadtestresource_operations.py | 133 ++++ 5 files changed, 1868 insertions(+) create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json new file mode 100644 index 000000000000..b545df0fbac0 --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json @@ -0,0 +1,359 @@ +{ + "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:21 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13845.10 - SEASLR1 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "WW", + "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": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:21 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13777.6 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "142b4329-a3d0-418a-8509-725226f42e10", + "Connection": "keep-alive", + "Content-Length": "288", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "142b4329-a3d0-418a-8509-725226f42e10", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:22 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13845.10 - KRSLR1 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:22 GMT", + "Expires": "-1", + "mise-correlation-id": "31abc09f-e2a7-47aa-a85c-0e2dc2afd7f9", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a1788d62-0afc-4081-be4e-687437eb5548", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172023Z:a1788d62-0afc-4081-be4e-687437eb5548" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns", + "name": "maxConcurrentTestRuns", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 25 + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances", + "name": "maxConcurrentEngineInstances", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 100 + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "name": "maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 45 + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:23 GMT", + "Expires": "-1", + "mise-correlation-id": "707144b1-6ff9-424f-8af9-7fec438f85f3", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "666c9c9f-12f8-4421-87bc-5c3789b812f5", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172023Z:666c9c9f-12f8-4421-87bc-5c3789b812f5" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "name": "maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 45 + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "32", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "properties": { + "newQuota": 45 + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:23 GMT", + "Expires": "-1", + "mise-correlation-id": "5ef159aa-2336-4dc4-9dbc-35da78cb6810", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a7cf9635-a87d-4f95-808d-80c1b7d80037", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172024Z:a7cf9635-a87d-4f95-808d-80c1b7d80037" + }, + "ResponseBody": { + "properties": { + "isAvailable": true, + "availabilityStatus": "The requested quota is available." + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "name": "maxEngineInstancesPerTestRun" + } + } + ], + "Variables": {} +} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json new file mode 100644 index 000000000000..d397132700be --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json @@ -0,0 +1,609 @@ +{ + "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "WW", + "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": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13845.10 - SEASLR1 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "77ed955b-d269-46ac-ae36-d0ca216585e2", + "Connection": "keep-alive", + "Content-Length": "288", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "77ed955b-d269-46ac-ae36-d0ca216585e2", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:26 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "location": "westus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "812", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:31 GMT", + "ETag": "\u002225000762-0000-0800-0000-634c3d5f0000\u0022", + "Expires": "-1", + "mise-correlation-id": "7bc01d7d-860b-424b-8c82-a1b6b2e9d84b", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a8a39260-8c08-4027-835f-4f3bdd84e330", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172032Z:a8a39260-8c08-4027-835f-4f3bdd84e330" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-16T17:20:31.2860045Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:32 GMT", + "ETag": "\u00220700ee3e-0000-0800-0000-634c3d600000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1573af1-2b89-4360-8b37-79f6873070b0", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172033Z:f1573af1-2b89-4360-8b37-79f6873070b0" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "name": "5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Succeeded", + "startTime": "2022-10-16T17:20:31.4661019Z", + "endTime": "2022-10-16T17:20:32.6507253Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:32 GMT", + "ETag": "\u002225001b62-0000-0800-0000-634c3d600000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a09acd6c-e466-494a-a8ca-2ca86546e628", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172033Z:a09acd6c-e466-494a-a8ca-2ca86546e628" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-16T17:20:31.2860045Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:33 GMT", + "ETag": "\u002225001b62-0000-0800-0000-634c3d600000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b68f1600-3a89-406e-8569-d22cdc66be44", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172034Z:b68f1600-3a89-406e-8569-d22cdc66be44" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-16T17:20:31.2860045Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "40", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:36 GMT", + "ETag": "\u002225006062-0000-0800-0000-634c3d650000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "mise-correlation-id": "038d7b0c-95d0-44df-a3b6-506adcf31f11", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fc2b6e5-27aa-4639-8983-a52155a5a066", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172037Z:7fc2b6e5-27aa-4639-8983-a52155a5a066" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:20:36 GMT", + "ETag": "\u00220700f63e-0000-0800-0000-634c3d650000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b1d3bb8-2b3c-45a3-bd77-b1c40d48976b", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172037Z:1b1d3bb8-2b3c-45a3-bd77-b1c40d48976b" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "name": "0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Accepted", + "startTime": "2022-10-16T17:20:37.0335726Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:21:07 GMT", + "ETag": "\u00220700f93e-0000-0800-0000-634c3d660000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af1ec367-cf99-4e15-9a6d-84ccf52ef9a3", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172107Z:af1ec367-cf99-4e15-9a6d-84ccf52ef9a3" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "name": "0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Succeeded", + "startTime": "2022-10-16T17:20:37.0335726Z", + "endTime": "2022-10-16T17:20:38.2549475Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:21:07 GMT", + "ETag": "\u002225006d62-0000-0800-0000-634c3d660000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4085164f-7cfc-4af3-a2d4-32f70a699ff0", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172108Z:4085164f-7cfc-4af3-a2d4-32f70a699ff0" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-16T17:20:31.2860045Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-16T17:20:36.8834113Z" + }, + "identity": { + "principalId": "b217c1f6-954f-42ef-863d-874af57eb861", + "tenantId": "00000000-0000-0000-0000-000000000000", + "type": "SystemAssigned" + }, + "properties": { + "description": null, + "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sun, 16 Oct 2022 17:21:08 GMT", + "ETag": "\u002225006763-0000-0800-0000-634c3d840000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", + "mise-correlation-id": "8fc54de2-dc7c-4531-9dfb-c9292b4456e8", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b21dac93-848b-4a80-a00d-7e64b28891f9", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-routing-request-id": "SOUTHINDIA:20221016T172108Z:b21dac93-848b-4a80-a00d-7e64b28891f9" + }, + "ResponseBody": "null" + } + ], + "Variables": {} +} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml new file mode 100644 index 000000000000..33a73ab50316 --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml @@ -0,0 +1,227 @@ +interactions: +- request: + body: '{"x-recording-file": "sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json + User-Agent: + - python-requests/2.28.1 + method: POST + uri: https://localhost:5001/record/start + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Sun, 16 Oct 2022 17:20:22 GMT + server: + - Kestrel + x-recording-id: + - 033cdd6f-b662-4d27-98ca-948297bbddc3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 033cdd6f-b662-4d27-98ca-948297bbddc3 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns","name":"maxConcurrentTestRuns","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":25}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances","name":"maxConcurrentEngineInstances","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":100}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}]}' + headers: + cache-control: + - no-cache + content-length: + - '829' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:22 GMT + expires: + - '-1' + mise-correlation-id: + - 31abc09f-e2a7-47aa-a85c-0e2dc2afd7f9 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 033cdd6f-b662-4d27-98ca-948297bbddc3 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}' + headers: + cache-control: + - no-cache + content-length: + - '276' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:23 GMT + expires: + - '-1' + mise-correlation-id: + - 707144b1-6ff9-424f-8af9-7fec438f85f3 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"newQuota": 45}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '32' + Content-Type: + - application/json + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 033cdd6f-b662-4d27-98ca-948297bbddc3 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: POST + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01 + response: + body: + string: '{"properties":{"isAvailable":true,"availabilityStatus":"The requested + quota is available."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","name":"maxEngineInstancesPerTestRun"}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:23 GMT + expires: + - '-1' + mise-correlation-id: + - 5ef159aa-2336-4dc4-9dbc-35da78cb6810 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + User-Agent: + - python-requests/2.28.1 + x-recording-file: + - sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations + x-recording-id: + - 033cdd6f-b662-4d27-98ca-948297bbddc3 + x-recording-save: + - 'true' + method: POST + uri: https://localhost:5001/record/stop + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Sun, 16 Oct 2022 17:20:25 GMT + server: + - Kestrel + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml new file mode 100644 index 000000000000..237821b0fdcd --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml @@ -0,0 +1,540 @@ +interactions: +- request: + body: '{"x-recording-file": "sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - python-requests/2.28.1 + method: POST + uri: https://localhost:5001/record/start + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Sun, 16 Oct 2022 17:20:27 GMT + server: + - Kestrel + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: PUT + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + cache-control: + - no-cache + content-length: + - '812' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:31 GMT + etag: + - '"25000762-0000-0800-0000-634c3d5f0000"' + expires: + - '-1' + mise-correlation-id: + - 7bc01d7d-860b-424b-8c82-a1b6b2e9d84b + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-16T17:20:31.4661019Z","endTime":"2022-10-16T17:20:32.6507253Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '704' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:32 GMT + etag: + - '"0700ee3e-0000-0800-0000-634c3d600000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '813' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:32 GMT + etag: + - '"25001b62-0000-0800-0000-634c3d600000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '813' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:33 GMT + etag: + - '"25001b62-0000-0800-0000-634c3d600000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '40' + Content-Type: + - application/json + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: PATCH + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:36 GMT + etag: + - '"25006062-0000-0800-0000-634c3d650000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + mise-correlation-id: + - 038d7b0c-95d0-44df-a3b6-506adcf31f11 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Accepted","startTime":"2022-10-16T17:20:37.0335726Z"}' + headers: + cache-control: + - no-cache + content-length: + - '644' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:20:36 GMT + etag: + - '"0700f63e-0000-0800-0000-634c3d650000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-16T17:20:37.0335726Z","endTime":"2022-10-16T17:20:38.2549475Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '704' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:21:07 GMT + etag: + - '"0700f93e-0000-0800-0000-634c3d660000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: GET + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:36.8834113Z"},"identity":{"principalId":"b217c1f6-954f-42ef-863d-874af57eb861","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '926' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:21:07 GMT + etag: + - '"25006d62-0000-0800-0000-634c3d660000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-mode: + - record + x-recording-upstream-base-uri: + - https://management.azure.com + method: DELETE + uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + response: + body: + string: 'null' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + cache-control: + - no-cache + content-length: + - '4' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 16 Oct 2022 17:21:08 GMT + etag: + - '"25006763-0000-0800-0000-634c3d840000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + mise-correlation-id: + - 8fc54de2-dc7c-4531-9dfb-c9292b4456e8 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + User-Agent: + - python-requests/2.28.1 + x-recording-file: + - sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations + x-recording-id: + - 1143388d-bce7-4557-9488-3cff58892ac0 + x-recording-save: + - 'true' + method: POST + uri: https://localhost:5001/record/stop + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Sun, 16 Oct 2022 17:21:09 GMT + server: + - Kestrel + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py new file mode 100644 index 000000000000..d8f17510d069 --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + + +from json import load +import unittest + +from azure.mgmt.loadtestservice import LoadTestMgmtClient +from azure.mgmt.loadtestservice.models import LoadTestResource, LoadTestResourcePatchRequestBody, QuotaBucketRequest +from devtools_testutils import AzureMgmtTestCase, recorded_by_proxy, ResourceGroupPreparer + +AZURE_LOCATION = 'westus2' +LOAD_TEST_RESOURCE_NAME = 'py-sdk-testing-resource-cp' + +class LoadTestResourceOperations(AzureMgmtTestCase): + + def setUp(self): + super(LoadTestResourceOperations, self).setUp() + + self.loadtestservice_client = self.create_mgmt_client( + LoadTestMgmtClient + ) + + @ResourceGroupPreparer() + @recorded_by_proxy + def test_load_test_resource_operations(self, resource_group): + + # Create a load test resource + loadtestresource_create_payload = LoadTestResource(location=AZURE_LOCATION) + + # Create a load test resource create begin - returns a poller + loadtest_resource_poller = self.loadtestservice_client.load_tests.begin_create_or_update(resource_group.name, LOAD_TEST_RESOURCE_NAME, loadtestresource_create_payload) + + # Wait for the poller to complete + while loadtest_resource_poller.done()==False: + loadtest_resource_poller.wait(2) + + # Get the result of the poller + loadtest_resource = loadtest_resource_poller.result() + + # Assert the result of the poller + assert loadtest_resource != None + assert loadtest_resource.name == LOAD_TEST_RESOURCE_NAME + assert loadtest_resource.location == AZURE_LOCATION + assert loadtest_resource.id != None + + # Get the load test resource + loadtest_resource_get = self.loadtestservice_client.load_tests.get(resource_group.name, LOAD_TEST_RESOURCE_NAME) + + # Assert the result of the get operation + assert loadtest_resource.name == loadtest_resource_get.name + assert loadtest_resource.location == loadtest_resource_get.location + assert loadtest_resource.id == loadtest_resource_get.id + + + # Update the load test resource + loadtestresourcePatchdata = LoadTestResourcePatchRequestBody( + identity={ + 'type': 'SystemAssigned' + } + ) + + # load test resource update begin - returns a poller + loadtest_resource_patch_poller = self.loadtestservice_client.load_tests.begin_update(resource_group.name, LOAD_TEST_RESOURCE_NAME, loadtestresourcePatchdata) + + # Wait for the poller to complete + while loadtest_resource_poller.done()==False: + loadtest_resource_poller.wait(2) + + # Get the result of the poller + loadtest_resource_patch_response = loadtest_resource_patch_poller.result() + + # Assert the result of the poller + assert loadtest_resource_patch_response.name == loadtest_resource_get.name + assert loadtest_resource_patch_response.location == loadtest_resource_get.location + assert loadtest_resource_patch_response.id == loadtest_resource_get.id + assert loadtest_resource_patch_response.identity.type == "SystemAssigned" + + # Delete the load test resource + self.loadtestservice_client.load_tests._delete_initial(resource_group.name, LOAD_TEST_RESOURCE_NAME) + + @recorded_by_proxy + def test_load_test_quota_operations(self): + + quotaBucket = "maxEngineInstancesPerTestRun" + + # List the load test quota + loadtest_quota_list = self.loadtestservice_client.quotas.list(AZURE_LOCATION) + + # Assert the result of the list operation + for loadtestQuota in loadtest_quota_list: + assert loadtestQuota != None + assert loadtestQuota.name != None + assert loadtestQuota.id != None + assert loadtestQuota.type != None + assert loadtestQuota.limit != None + assert loadtestQuota.usage != None + + # Get the load test quota bucket + loadtest_quota_bucket = self.loadtestservice_client.quotas.get(AZURE_LOCATION, quotaBucket) + + # Assert the result of the get operation + assert loadtest_quota_bucket != None + assert loadtest_quota_bucket.name == quotaBucket + assert loadtest_quota_bucket.id != None + assert loadtest_quota_bucket.type != None + assert loadtest_quota_bucket.limit != None + assert loadtest_quota_bucket.usage != None + + # Check availability for quota bucket + check_availability_payload = QuotaBucketRequest( + new_quota = loadtest_quota_bucket.limit + ) + loadtest_quota_check_availability = self.loadtestservice_client.quotas.check_availability(AZURE_LOCATION, quotaBucket, check_availability_payload) + + # Assert the result of the check availability operation + assert loadtest_quota_check_availability != None + assert loadtest_quota_check_availability.name == quotaBucket + assert loadtest_quota_check_availability.id != None + assert loadtest_quota_check_availability.type != None + assert loadtest_quota_check_availability.is_available != None + assert loadtest_quota_check_availability.availability_status != None + + + +#------------------------------------------------------------------------------ +if __name__ == '__main__': + unittest.main() \ No newline at end of file From 66f789dbb0c80513a1c027ff43063e0e6881cfad Mon Sep 17 00:00:00 2001 From: Venkat Ragavan <50309787+venkatr21@users.noreply.github.com> Date: Mon, 17 Oct 2022 09:47:12 +0530 Subject: [PATCH 2/6] removed recorded_by_proxy --- ...ationstest_load_test_quota_operations.json | 359 ----------- ...onstest_load_test_resource_operations.json | 609 ------------------ ...tions.test_load_test_quota_operations.yaml | 118 +--- ...ns.test_load_test_resource_operations.yaml | 238 ++----- .../tests/test_loadtestresource_operations.py | 2 - 5 files changed, 71 insertions(+), 1255 deletions(-) delete mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json delete mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json deleted file mode 100644 index b545df0fbac0..000000000000 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:21 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.13845.10 - SEASLR1 ProdSlices", - "X-XSS-Protection": "0" - }, - "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": "WW", - "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": "cookie;", - "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:21 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.13777.6 - SEASLR2 ProdSlices", - "X-XSS-Protection": "0" - }, - "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": "142b4329-a3d0-418a-8509-725226f42e10", - "Connection": "keep-alive", - "Content-Length": "288", - "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", - "x-ms-lib-capability": "retry-after, h429" - }, - "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "142b4329-a3d0-418a-8509-725226f42e10", - "Content-Length": "114", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:22 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.13845.10 - KRSLR1 ProdSlices", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 86399, - "ext_expires_in": 86399, - "refresh_in": 43199, - "access_token": "access_token" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:22 GMT", - "Expires": "-1", - "mise-correlation-id": "31abc09f-e2a7-47aa-a85c-0e2dc2afd7f9", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a1788d62-0afc-4081-be4e-687437eb5548", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172023Z:a1788d62-0afc-4081-be4e-687437eb5548" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns", - "name": "maxConcurrentTestRuns", - "type": "Microsoft.LoadTestService/Locations/Quotas", - "properties": { - "usage": 0, - "limit": 25 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances", - "name": "maxConcurrentEngineInstances", - "type": "Microsoft.LoadTestService/Locations/Quotas", - "properties": { - "usage": 0, - "limit": 100 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", - "name": "maxEngineInstancesPerTestRun", - "type": "Microsoft.LoadTestService/Locations/Quotas", - "properties": { - "usage": 0, - "limit": 45 - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:23 GMT", - "Expires": "-1", - "mise-correlation-id": "707144b1-6ff9-424f-8af9-7fec438f85f3", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "666c9c9f-12f8-4421-87bc-5c3789b812f5", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172023Z:666c9c9f-12f8-4421-87bc-5c3789b812f5" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", - "name": "maxEngineInstancesPerTestRun", - "type": "Microsoft.LoadTestService/Locations/Quotas", - "properties": { - "usage": 0, - "limit": 45 - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "32", - "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": { - "properties": { - "newQuota": 45 - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:23 GMT", - "Expires": "-1", - "mise-correlation-id": "5ef159aa-2336-4dc4-9dbc-35da78cb6810", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a7cf9635-a87d-4f95-808d-80c1b7d80037", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172024Z:a7cf9635-a87d-4f95-808d-80c1b7d80037" - }, - "ResponseBody": { - "properties": { - "isAvailable": true, - "availabilityStatus": "The requested quota is available." - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", - "type": "Microsoft.LoadTestService/Locations/Quotas", - "name": "maxEngineInstancesPerTestRun" - } - } - ], - "Variables": {} -} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json deleted file mode 100644 index d397132700be..000000000000 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations.json +++ /dev/null @@ -1,609 +0,0 @@ -{ - "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:26 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", - "X-XSS-Protection": "0" - }, - "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": "WW", - "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": "cookie;", - "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Sun, 16 Oct 2022 17:20:26 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.13845.10 - SEASLR1 ProdSlices", - "X-XSS-Protection": "0" - }, - "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": "77ed955b-d269-46ac-ae36-d0ca216585e2", - "Connection": "keep-alive", - "Content-Length": "288", - "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", - "x-ms-lib-capability": "retry-after, h429" - }, - "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "77ed955b-d269-46ac-ae36-d0ca216585e2", - "Content-Length": "114", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:26 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": "[set-cookie;]", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 86399, - "ext_expires_in": 86399, - "refresh_in": 43199, - "access_token": "access_token" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "23", - "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": { - "location": "westus2" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "Cache-Control": "no-cache", - "Content-Length": "812", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:31 GMT", - "ETag": "\u002225000762-0000-0800-0000-634c3d5f0000\u0022", - "Expires": "-1", - "mise-correlation-id": "7bc01d7d-860b-424b-8c82-a1b6b2e9d84b", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a8a39260-8c08-4027-835f-4f3bdd84e330", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172032Z:a8a39260-8c08-4027-835f-4f3bdd84e330" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "name": "py-sdk-testing-resource-cp", - "type": "microsoft.loadtestservice/loadtests", - "location": "westus2", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-16T17:20:31.2860045Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" - }, - "identity": { - "type": "None" - }, - "properties": { - "description": null, - "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", - "encryption": null, - "provisioningState": "Accepted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:32 GMT", - "ETag": "\u00220700ee3e-0000-0800-0000-634c3d600000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f1573af1-2b89-4360-8b37-79f6873070b0", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172033Z:f1573af1-2b89-4360-8b37-79f6873070b0" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "name": "5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "status": "Succeeded", - "startTime": "2022-10-16T17:20:31.4661019Z", - "endTime": "2022-10-16T17:20:32.6507253Z", - "properties": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:32 GMT", - "ETag": "\u002225001b62-0000-0800-0000-634c3d600000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a09acd6c-e466-494a-a8ca-2ca86546e628", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172033Z:a09acd6c-e466-494a-a8ca-2ca86546e628" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "name": "py-sdk-testing-resource-cp", - "type": "microsoft.loadtestservice/loadtests", - "location": "westus2", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-16T17:20:31.2860045Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" - }, - "identity": { - "type": "None" - }, - "properties": { - "description": null, - "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", - "encryption": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:33 GMT", - "ETag": "\u002225001b62-0000-0800-0000-634c3d600000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b68f1600-3a89-406e-8569-d22cdc66be44", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172034Z:b68f1600-3a89-406e-8569-d22cdc66be44" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "name": "py-sdk-testing-resource-cp", - "type": "microsoft.loadtestservice/loadtests", - "location": "westus2", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-16T17:20:31.2860045Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-16T17:20:31.2860045Z" - }, - "identity": { - "type": "None" - }, - "properties": { - "description": null, - "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", - "encryption": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "40", - "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": { - "identity": { - "type": "SystemAssigned" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:36 GMT", - "ETag": "\u002225006062-0000-0800-0000-634c3d650000\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "mise-correlation-id": "038d7b0c-95d0-44df-a3b6-506adcf31f11", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7fc2b6e5-27aa-4639-8983-a52155a5a066", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172037Z:7fc2b6e5-27aa-4639-8983-a52155a5a066" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:20:36 GMT", - "ETag": "\u00220700f63e-0000-0800-0000-634c3d650000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1b1d3bb8-2b3c-45a3-bd77-b1c40d48976b", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172037Z:1b1d3bb8-2b3c-45a3-bd77-b1c40d48976b" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "name": "0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "status": "Accepted", - "startTime": "2022-10-16T17:20:37.0335726Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:21:07 GMT", - "ETag": "\u00220700f93e-0000-0800-0000-634c3d660000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "af1ec367-cf99-4e15-9a6d-84ccf52ef9a3", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172107Z:af1ec367-cf99-4e15-9a6d-84ccf52ef9a3" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "name": "0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159", - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "status": "Succeeded", - "startTime": "2022-10-16T17:20:37.0335726Z", - "endTime": "2022-10-16T17:20:38.2549475Z", - "properties": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:21:07 GMT", - "ETag": "\u002225006d62-0000-0800-0000-634c3d660000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4085164f-7cfc-4af3-a2d4-32f70a699ff0", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172108Z:4085164f-7cfc-4af3-a2d4-32f70a699ff0" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", - "name": "py-sdk-testing-resource-cp", - "type": "microsoft.loadtestservice/loadtests", - "location": "westus2", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-16T17:20:31.2860045Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-16T17:20:36.8834113Z" - }, - "identity": { - "principalId": "b217c1f6-954f-42ef-863d-874af57eb861", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "SystemAssigned" - }, - "properties": { - "description": null, - "dataPlaneURI": "e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com", - "encryption": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sun, 16 Oct 2022 17:21:08 GMT", - "ETag": "\u002225006763-0000-0800-0000-634c3d840000\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01", - "mise-correlation-id": "8fc54de2-dc7c-4531-9dfb-c9292b4456e8", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b21dac93-848b-4a80-a00d-7e64b28891f9", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-routing-request-id": "SOUTHINDIA:20221016T172108Z:b21dac93-848b-4a80-a00d-7e64b28891f9" - }, - "ResponseBody": "null" - } - ], - "Variables": {} -} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml index 33a73ab50316..b8b55af0c21e 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml @@ -1,36 +1,4 @@ interactions: -- request: - body: '{"x-recording-file": "sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '180' - Content-Type: - - application/json - User-Agent: - - python-requests/2.28.1 - method: POST - uri: https://localhost:5001/record/start - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sun, 16 Oct 2022 17:20:22 GMT - server: - - Kestrel - x-recording-id: - - 033cdd6f-b662-4d27-98ca-948297bbddc3 - status: - code: 200 - message: OK - request: body: null headers: @@ -42,14 +10,8 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 033cdd6f-b662-4d27-98ca-948297bbddc3 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns","name":"maxConcurrentTestRuns","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":25}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances","name":"maxConcurrentEngineInstances","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":100}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}]}' @@ -61,17 +23,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:22 GMT + - Mon, 17 Oct 2022 04:13:12 GMT expires: - '-1' mise-correlation-id: - - 31abc09f-e2a7-47aa-a85c-0e2dc2afd7f9 + - b730beb1-c842-44e1-ba13-15c56e7149bb pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -92,14 +54,8 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 033cdd6f-b662-4d27-98ca-948297bbddc3 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}' @@ -111,17 +67,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:23 GMT + - Mon, 17 Oct 2022 04:13:13 GMT expires: - '-1' mise-correlation-id: - - 707144b1-6ff9-424f-8af9-7fec438f85f3 + - d62418be-2be8-49ab-97ab-705e2989a949 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -146,14 +102,8 @@ interactions: - application/json User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 033cdd6f-b662-4d27-98ca-948297bbddc3 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: POST - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01 response: body: string: '{"properties":{"isAvailable":true,"availabilityStatus":"The requested @@ -166,17 +116,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:23 GMT + - Mon, 17 Oct 2022 04:13:13 GMT expires: - '-1' mise-correlation-id: - - 5ef159aa-2336-4dc4-9dbc-35da78cb6810 + - 72dffdd7-27ec-4a06-803e-873ba0a8af02 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -184,43 +134,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - User-Agent: - - python-requests/2.28.1 - x-recording-file: - - sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_quota_operations - x-recording-id: - - 033cdd6f-b662-4d27-98ca-948297bbddc3 - x-recording-save: - - 'true' - method: POST - uri: https://localhost:5001/record/stop - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sun, 16 Oct 2022 17:20:25 GMT - server: - - Kestrel + - '1199' status: code: 200 message: OK diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml index 237821b0fdcd..72d21707f9b6 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml @@ -1,36 +1,4 @@ interactions: -- request: - body: '{"x-recording-file": "sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '183' - Content-Type: - - application/json - User-Agent: - - python-requests/2.28.1 - method: POST - uri: https://localhost:5001/record/start - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sun, 16 Oct 2022 17:20:27 GMT - server: - - Kestrel - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - status: - code: 200 - message: OK - request: body: '{"location": "westus2"}' headers: @@ -46,20 +14,14 @@ interactions: - application/json User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: PUT - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Accepted"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 cache-control: - no-cache content-length: @@ -67,17 +29,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:31 GMT + - Mon, 17 Oct 2022 04:13:26 GMT etag: - - '"25000762-0000-0800-0000-634c3d5f0000"' + - '"2b003297-0000-0800-0000-634cd6650000"' expires: - '-1' mise-correlation-id: - - 7bc01d7d-860b-424b-8c82-a1b6b2e9d84b + - c30dc97c-994b-4e23-8646-1c43326381b1 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -100,17 +60,11 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"5664a4d3-8159-41db-a359-4d5d46bc5bf8*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-16T17:20:31.4661019Z","endTime":"2022-10-16T17:20:32.6507253Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-17T04:13:25.2349092Z","endTime":"2022-10-17T04:13:26.4897845Z","properties":null}' headers: cache-control: - no-cache @@ -119,17 +73,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:32 GMT + - Mon, 17 Oct 2022 04:13:26 GMT etag: - - '"0700ee3e-0000-0800-0000-634c3d600000"' + - '"08008a27-0000-0800-0000-634cd6660000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -148,17 +102,11 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -167,17 +115,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:32 GMT + - Mon, 17 Oct 2022 04:13:26 GMT etag: - - '"25001b62-0000-0800-0000-634c3d600000"' + - '"2b006397-0000-0800-0000-634cd6660000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -198,17 +146,11 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:31.2860045Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -217,17 +159,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:33 GMT + - Mon, 17 Oct 2022 04:13:27 GMT etag: - - '"25001b62-0000-0800-0000-634c3d600000"' + - '"2b006397-0000-0800-0000-634cd6660000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -252,20 +194,14 @@ interactions: - application/json User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: PATCH - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 cache-control: - no-cache content-length: @@ -273,19 +209,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:36 GMT + - Mon, 17 Oct 2022 04:13:29 GMT etag: - - '"25006062-0000-0800-0000-634c3d650000"' + - '"2b009297-0000-0800-0000-634cd6690000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 mise-correlation-id: - - 038d7b0c-95d0-44df-a3b6-506adcf31f11 + - f635af46-ca1e-4ec3-ace1-2b568622b8bc pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -308,17 +242,11 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Accepted","startTime":"2022-10-16T17:20:37.0335726Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Accepted","startTime":"2022-10-17T04:13:29.8401189Z"}' headers: cache-control: - no-cache @@ -327,17 +255,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:20:36 GMT + - Mon, 17 Oct 2022 04:13:29 GMT etag: - - '"0700f63e-0000-0800-0000-634c3d650000"' + - '"08008e27-0000-0800-0000-634cd6690000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -356,17 +284,11 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"0aa21561-271a-4fc0-ba03-41309ce53b4a*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-16T17:20:37.0335726Z","endTime":"2022-10-16T17:20:38.2549475Z","properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-17T04:13:29.8401189Z","endTime":"2022-10-17T04:13:31.0878966Z","properties":null}' headers: cache-control: - no-cache @@ -375,17 +297,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:21:07 GMT + - Mon, 17 Oct 2022 04:13:59 GMT etag: - - '"0700f93e-0000-0800-0000-634c3d660000"' + - '"08009327-0000-0800-0000-634cd66b0000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -404,36 +326,30 @@ interactions: - keep-alive User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: GET - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-16T17:20:31.2860045Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-16T17:20:36.8834113Z"},"identity":{"principalId":"b217c1f6-954f-42ef-863d-874af57eb861","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned"},"properties":{"description":null,"dataPlaneURI":"e08694f4-2cc0-41bc-99c6-5f2725ba7963.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:29.68891Z"},"identity":{"principalId":"73f9142d-b1a2-4b51-8a82-284b14bb3c61","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '926' + - '924' content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:21:07 GMT + - Mon, 17 Oct 2022 04:14:00 GMT etag: - - '"25006d62-0000-0800-0000-634c3d660000"' + - '"2b009d97-0000-0800-0000-634cd66b0000"' expires: - '-1' pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: @@ -456,20 +372,14 @@ interactions: - '0' User-Agent: - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-mode: - - record - x-recording-upstream-base-uri: - - https://management.azure.com method: DELETE - uri: https://localhost:5001/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 response: body: string: 'null' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/558c137e-88df-46db-85bb-10a166be625d*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 cache-control: - no-cache content-length: @@ -477,19 +387,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 16 Oct 2022 17:21:08 GMT + - Mon, 17 Oct 2022 04:14:00 GMT etag: - - '"25006763-0000-0800-0000-634c3d840000"' + - '"2b00a998-0000-0800-0000-634cd6890000"' expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/ec4f97da-cd7c-427e-8019-6545dfd9bcc1*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/558c137e-88df-46db-85bb-10a166be625d*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 mise-correlation-id: - - 8fc54de2-dc7c-4531-9dfb-c9292b4456e8 + - 27e46ffd-7781-4a80-838b-050c7e42ec37 pragma: - no-cache - server: - - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -501,40 +409,4 @@ interactions: status: code: 202 message: Accepted -- request: - body: '{}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - User-Agent: - - python-requests/2.28.1 - x-recording-file: - - sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyLoadTestResourceOperationstest_load_test_resource_operations - x-recording-id: - - 1143388d-bce7-4557-9488-3cff58892ac0 - x-recording-save: - - 'true' - method: POST - uri: https://localhost:5001/record/stop - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Sun, 16 Oct 2022 17:21:09 GMT - server: - - Kestrel - status: - code: 200 - message: OK version: 1 diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py index d8f17510d069..85b9c07af47f 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py @@ -27,7 +27,6 @@ def setUp(self): ) @ResourceGroupPreparer() - @recorded_by_proxy def test_load_test_resource_operations(self, resource_group): # Create a load test resource @@ -84,7 +83,6 @@ def test_load_test_resource_operations(self, resource_group): # Delete the load test resource self.loadtestservice_client.load_tests._delete_initial(resource_group.name, LOAD_TEST_RESOURCE_NAME) - @recorded_by_proxy def test_load_test_quota_operations(self): quotaBucket = "maxEngineInstancesPerTestRun" From 89ec2ce1c7c3fb46c72a2b0bd9eae0051a34a058 Mon Sep 17 00:00:00 2001 From: Venkat Ragavan <50309787+venkatr21@users.noreply.github.com> Date: Mon, 17 Oct 2022 10:50:11 +0530 Subject: [PATCH 3/6] updated test proxy setup as per recommendation --- .../tests/conftest.py | 4 + ...ationstest_load_test_quota_operations.json | 359 ++++++++++ ...onstest_load_test_resource_operations.json | 644 ++++++++++++++++++ ...tions.test_load_test_quota_operations.yaml | 141 ---- ...ns.test_load_test_resource_operations.yaml | 412 ----------- .../tests/test_loadtestresource_operations.py | 11 +- 6 files changed, 1012 insertions(+), 559 deletions(-) create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_quota_operations.json create mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_resource_operations.json delete mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml delete mode 100644 sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py index e7981d635f56..2a5c08014ad8 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py @@ -40,6 +40,10 @@ load_dotenv() +@pytest.fixture(scope="session", autouse=True) +def start_proxy(test_proxy): + return + @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_quota_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_quota_operations.json new file mode 100644 index 000000000000..2470ffed301c --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_quota_operations.json @@ -0,0 +1,359 @@ +{ + "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Mon, 17 Oct 2022 05:17:41 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13845.10 - SEASLR1 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "WW", + "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": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Mon, 17 Oct 2022 05:17:41 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13777.6 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "a0e191c0-8e5a-40b4-bb61-e1c79f9a0c33", + "Connection": "keep-alive", + "Content-Length": "288", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "a0e191c0-8e5a-40b4-bb61-e1c79f9a0c33", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:41 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13845.10 - KRC ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:42 GMT", + "Expires": "-1", + "mise-correlation-id": "21cfd777-5c88-471b-a156-e9206d5983b1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "865d3295-215b-47ec-b284-02ed4d6ebda8", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051743Z:865d3295-215b-47ec-b284-02ed4d6ebda8" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns", + "name": "maxConcurrentTestRuns", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 25 + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances", + "name": "maxConcurrentEngineInstances", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 100 + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "name": "maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 45 + } + } + ] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:43 GMT", + "Expires": "-1", + "mise-correlation-id": "6a20ed80-ec8b-417f-a719-3fe8665c4bef", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7745323c-0f41-40f3-85c3-8f50e60cd376", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051744Z:7745323c-0f41-40f3-85c3-8f50e60cd376" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "name": "maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "properties": { + "usage": 0, + "limit": 45 + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "32", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "properties": { + "newQuota": 45 + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:44 GMT", + "Expires": "-1", + "mise-correlation-id": "bc40c140-e961-45ea-bf31-bf26a1cf0b18", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1de74463-270b-4d6a-8d20-9240db69af79", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051745Z:1de74463-270b-4d6a-8d20-9240db69af79" + }, + "ResponseBody": { + "properties": { + "isAvailable": true, + "availabilityStatus": "The requested quota is available." + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun", + "type": "Microsoft.LoadTestService/Locations/Quotas", + "name": "maxEngineInstancesPerTestRun" + } + } + ], + "Variables": {} +} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_resource_operations.json b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_resource_operations.json new file mode 100644 index 000000000000..bc53e37babfb --- /dev/null +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.pyTestLoadTestResourceOperationstest_load_test_resource_operations.json @@ -0,0 +1,644 @@ +{ + "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.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Mon, 17 Oct 2022 05:16:24 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "WW", + "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": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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": "Mon, 17 Oct 2022 05:16:24 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.13777.6 - SEASLR1 ProdSlices", + "X-XSS-Protection": "0" + }, + "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": "727ba3e8-0a6f-42cd-9071-a4b6fa122b64", + "Connection": "keep-alive", + "Content-Length": "288", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.11.0 Python/3.10.7 (Windows-10-10.0.22621-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.20.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=00000000-0000-0000-0000-000000000000\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=00000000-0000-0000-0000-000000000000\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": "727ba3e8-0a6f-42cd-9071-a4b6fa122b64", + "Content-Length": "114", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:16:24 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.13845.10 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "23", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "location": "westus2" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "740", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:16:33 GMT", + "ETag": "\u00222c006820-0000-0800-0000-634ce5300000\u0022", + "Expires": "-1", + "mise-correlation-id": "5eaf4165-40a7-443f-b95e-4022f1bb9ed2", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3469a1a2-7022-475e-bef1-7631b3b81086", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051633Z:3469a1a2-7022-475e-bef1-7631b3b81086" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-17T05:16:31.5619722Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-17T05:16:31.5619722Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "1bfb3712-9462-4758-b508-6bff4f61e434.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Accepted" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:16:34 GMT", + "ETag": "\u002208009a32-0000-0800-0000-634ce5300000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86215ec0-5fa3-4990-810d-adb983c31c24", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051634Z:86215ec0-5fa3-4990-810d-adb983c31c24" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "name": "d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Accepted", + "startTime": "2022-10-17T05:16:32.495931Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:04 GMT", + "ETag": "\u002208009d32-0000-0800-0000-634ce5320000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d041110d-05ee-45a2-9d69-b7b3c40f6a6f", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051704Z:d041110d-05ee-45a2-9d69-b7b3c40f6a6f" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "name": "d7185eeb-ed96-4f29-bba3-1658a467e168*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Succeeded", + "startTime": "2022-10-17T05:16:32.495931Z", + "endTime": "2022-10-17T05:16:34.5129637Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:04 GMT", + "ETag": "\u00222c007b20-0000-0800-0000-634ce5320000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7cd24e1-3b2f-4aea-ab2e-02a87a584b9f", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051704Z:e7cd24e1-3b2f-4aea-ab2e-02a87a584b9f" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-17T05:16:31.5619722Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-17T05:16:31.5619722Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "1bfb3712-9462-4758-b508-6bff4f61e434.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:04 GMT", + "ETag": "\u00222c007b20-0000-0800-0000-634ce5320000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1a426806-a5f2-407d-a135-42ea2f893b3d", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051705Z:1a426806-a5f2-407d-a135-42ea2f893b3d" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-17T05:16:31.5619722Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-17T05:16:31.5619722Z" + }, + "identity": { + "type": "None" + }, + "properties": { + "description": null, + "dataPlaneURI": "1bfb3712-9462-4758-b508-6bff4f61e434.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "40", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": { + "identity": { + "type": "SystemAssigned" + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:07 GMT", + "ETag": "\u00222c008c21-0000-0800-0000-634ce5530000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "mise-correlation-id": "2bc86415-aa7d-4847-9044-a793850cf1f9", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d4c68cc-81a3-497a-85d8-0b08d94137ce", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051707Z:2d4c68cc-81a3-497a-85d8-0b08d94137ce" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:07 GMT", + "ETag": "\u00220800c532-0000-0800-0000-634ce5530000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86c2e0c9-d29b-4ac9-9c71-dba9285a1fe3", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051707Z:86c2e0c9-d29b-4ac9-9c71-dba9285a1fe3" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "name": "d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Accepted", + "startTime": "2022-10-17T05:17:07.3390037Z" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:37 GMT", + "ETag": "\u00220800ca32-0000-0800-0000-634ce5570000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6ad1f824-c954-46e0-8fa2-122bc468a7e6", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051737Z:6ad1f824-c954-46e0-8fa2-122bc468a7e6" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "name": "d2ed48dc-3b47-4eed-a0a7-67b9b8790c1e*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "status": "Succeeded", + "startTime": "2022-10-17T05:17:07.3390037Z", + "endTime": "2022-10-17T05:17:11.533891Z", + "properties": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:37 GMT", + "ETag": "\u00222c00d421-0000-0800-0000-634ce5570000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3d99502e-5233-41dc-98a3-34068a6e3a2b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051738Z:3d99502e-5233-41dc-98a3-34068a6e3a2b" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp", + "name": "py-sdk-testing-resource-cp", + "type": "microsoft.loadtestservice/loadtests", + "location": "westus2", + "systemData": { + "createdBy": "00000000-0000-0000-0000-000000000000", + "createdByType": "Application", + "createdAt": "2022-10-17T05:16:31.5619722Z", + "lastModifiedBy": "00000000-0000-0000-0000-000000000000", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-10-17T05:17:07.1887841Z" + }, + "identity": { + "principalId": "18bc6545-7e51-45e2-96c1-667aa74dce05", + "tenantId": "00000000-0000-0000-0000-000000000000", + "type": "SystemAssigned" + }, + "properties": { + "description": null, + "dataPlaneURI": "1bfb3712-9462-4758-b508-6bff4f61e434.westus2.cnt-prod.loadtesting.azure.com", + "encryption": null, + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/f7584114/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/30f7f188-59b2-4824-bee2-488a03a995eb*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 17 Oct 2022 05:17:38 GMT", + "ETag": "\u00222c00d122-0000-0800-0000-634ce5730000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/30f7f188-59b2-4824-bee2-488a03a995eb*C8608CEC5B0B2557E59FF8669DE91950A517DFE52FF6C877BB7638E78F5B0D27?api-version=2022-12-01", + "mise-correlation-id": "e29b2d77-5976-4850-a53f-b7965df31c4d", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3e946e48-e60c-4ff5-82c9-b379c0ec9a59", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-routing-request-id": "SOUTHINDIA:20221017T051739Z:3e946e48-e60c-4ff5-82c9-b379c0ec9a59" + }, + "ResponseBody": "null" + } + ], + "Variables": {} +} diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml deleted file mode 100644 index b8b55af0c21e..000000000000 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_quota_operations.yaml +++ /dev/null @@ -1,141 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas?api-version=2022-12-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentTestRuns","name":"maxConcurrentTestRuns","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":25}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxConcurrentEngineInstances","name":"maxConcurrentEngineInstances","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":100}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}]}' - headers: - cache-control: - - no-cache - content-length: - - '829' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:12 GMT - expires: - - '-1' - mise-correlation-id: - - b730beb1-c842-44e1-ba13-15c56e7149bb - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","name":"maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","properties":{"usage":0,"limit":45}}' - headers: - cache-control: - - no-cache - content-length: - - '276' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:13 GMT - expires: - - '-1' - mise-correlation-id: - - d62418be-2be8-49ab-97ab-705e2989a949 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: '{"properties": {"newQuota": 45}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '32' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun/checkAvailability?api-version=2022-12-01 - response: - body: - string: '{"properties":{"isAvailable":true,"availabilityStatus":"The requested - quota is available."},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/westus2/quotas/maxEngineInstancesPerTestRun","type":"Microsoft.LoadTestService/Locations/Quotas","name":"maxEngineInstancesPerTestRun"}' - headers: - cache-control: - - no-cache - content-length: - - '331' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:13 GMT - expires: - - '-1' - mise-correlation-id: - - 72dffdd7-27ec-4a06-803e-873ba0a8af02 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml deleted file mode 100644 index 72d21707f9b6..000000000000 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/recordings/test_loadtestresource_operations.test_load_test_resource_operations.yaml +++ /dev/null @@ -1,412 +0,0 @@ -interactions: -- request: - body: '{"location": "westus2"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Accepted"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - cache-control: - - no-cache - content-length: - - '812' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:26 GMT - etag: - - '"2b003297-0000-0800-0000-634cd6650000"' - expires: - - '-1' - mise-correlation-id: - - c30dc97c-994b-4e23-8646-1c43326381b1 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"e143c288-712e-40d5-a06b-e98d16f345d2*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-17T04:13:25.2349092Z","endTime":"2022-10-17T04:13:26.4897845Z","properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '704' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:26 GMT - etag: - - '"08008a27-0000-0800-0000-634cd6660000"' - expires: - - '-1' - pragma: - - no-cache - 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '813' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:26 GMT - etag: - - '"2b006397-0000-0800-0000-634cd6660000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:24.9987302Z"},"identity":{"type":"None"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '813' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:27 GMT - etag: - - '"2b006397-0000-0800-0000-634cd6660000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - status: - code: 200 - message: OK -- request: - body: '{"identity": {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '40' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: 'null' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:29 GMT - etag: - - '"2b009297-0000-0800-0000-634cd6690000"' - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - mise-correlation-id: - - f635af46-ca1e-4ec3-ace1-2b568622b8bc - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Accepted","startTime":"2022-10-17T04:13:29.8401189Z"}' - headers: - cache-control: - - no-cache - content-length: - - '644' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:29 GMT - etag: - - '"08008e27-0000-0800-0000-634cd6690000"' - expires: - - '-1' - pragma: - - no-cache - 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","name":"965360e5-b628-41da-947f-7d6f434dcb74*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","status":"Succeeded","startTime":"2022-10-17T04:13:29.8401189Z","endTime":"2022-10-17T04:13:31.0878966Z","properties":null}' - headers: - cache-control: - - no-cache - content-length: - - '704' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:13:59 GMT - etag: - - '"08009327-0000-0800-0000-634cd66b0000"' - expires: - - '-1' - pragma: - - no-cache - 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp","name":"py-sdk-testing-resource-cp","type":"microsoft.loadtestservice/loadtests","location":"westus2","systemData":{"createdBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","createdByType":"Application","createdAt":"2022-10-17T04:13:24.9987302Z","lastModifiedBy":"5b96bb74-67f0-463c-9319-6f766ae1c33f","lastModifiedByType":"Application","lastModifiedAt":"2022-10-17T04:13:29.68891Z"},"identity":{"principalId":"73f9142d-b1a2-4b51-8a82-284b14bb3c61","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned"},"properties":{"description":null,"dataPlaneURI":"0650b48f-2230-45f0-ae98-8c16c6912fd1.westus2.cnt-prod.loadtesting.azure.com","encryption":null,"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '924' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:14:00 GMT - etag: - - '"2b009d97-0000-0800-0000-634cd66b0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - 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-loadtestservice/1.0.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_loadtestresource_operations_test_load_test_resource_operationsb90b1c01/providers/Microsoft.LoadTestService/loadTests/py-sdk-testing-resource-cp?api-version=2022-12-01 - response: - body: - string: 'null' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/558c137e-88df-46db-85bb-10a166be625d*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - cache-control: - - no-cache - content-length: - - '4' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Oct 2022 04:14:00 GMT - etag: - - '"2b00a998-0000-0800-0000-634cd6890000"' - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/WESTUS2/operationStatuses/558c137e-88df-46db-85bb-10a166be625d*E99A9C4E3FBA27DDE5C919EF5FF330F4581833127095D4C5391AE10A265DD159?api-version=2022-12-01 - mise-correlation-id: - - 27e46ffd-7781-4a80-838b-050c7e42ec37 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-providerhub-traffic: - - 'True' - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -version: 1 diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py index 85b9c07af47f..5f58a92bcca4 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/test_loadtestresource_operations.py @@ -7,26 +7,24 @@ #-------------------------------------------------------------------------- -from json import load import unittest from azure.mgmt.loadtestservice import LoadTestMgmtClient from azure.mgmt.loadtestservice.models import LoadTestResource, LoadTestResourcePatchRequestBody, QuotaBucketRequest -from devtools_testutils import AzureMgmtTestCase, recorded_by_proxy, ResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy, ResourceGroupPreparer AZURE_LOCATION = 'westus2' LOAD_TEST_RESOURCE_NAME = 'py-sdk-testing-resource-cp' -class LoadTestResourceOperations(AzureMgmtTestCase): +class TestLoadTestResourceOperations(AzureMgmtRecordedTestCase): - def setUp(self): - super(LoadTestResourceOperations, self).setUp() - + def setup_method(self, method): self.loadtestservice_client = self.create_mgmt_client( LoadTestMgmtClient ) @ResourceGroupPreparer() + @recorded_by_proxy def test_load_test_resource_operations(self, resource_group): # Create a load test resource @@ -83,6 +81,7 @@ def test_load_test_resource_operations(self, resource_group): # Delete the load test resource self.loadtestservice_client.load_tests._delete_initial(resource_group.name, LOAD_TEST_RESOURCE_NAME) + @recorded_by_proxy def test_load_test_quota_operations(self): quotaBucket = "maxEngineInstancesPerTestRun" From 8eb28a2406e1e0698ffba308c8d45a9e96c7a437 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 17 Oct 2022 13:43:49 +0800 Subject: [PATCH 4/6] Update conftest.py --- .../azure-mgmt-loadtestservice/tests/conftest.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py index 2a5c08014ad8..95873fd30c68 100644 --- a/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py +++ b/sdk/loadtestservice/azure-mgmt-loadtestservice/tests/conftest.py @@ -33,17 +33,8 @@ from devtools_testutils import test_proxy, add_general_regex_sanitizer from devtools_testutils import add_header_regex_sanitizer, add_body_key_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 start_proxy(test_proxy): - return - @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") @@ -56,4 +47,4 @@ def add_sanitizers(test_proxy): add_general_regex_sanitizer(regex=client_secret, value="00000000-0000-0000-0000-000000000000") add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") add_header_regex_sanitizer(key="Cookie", value="cookie;") - add_body_key_sanitizer(json_path="$..access_token", value="access_token") \ No newline at end of file + add_body_key_sanitizer(json_path="$..access_token", value="access_token") From 0c7bf64284ebb78f076163b097306087db344afe Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 17 Oct 2022 15:20:43 +0800 Subject: [PATCH 5/6] Update ci.yml --- sdk/loadtestservice/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/loadtestservice/ci.yml b/sdk/loadtestservice/ci.yml index be1f32ebcf64..cb076d16e9d8 100644 --- a/sdk/loadtestservice/ci.yml +++ b/sdk/loadtestservice/ci.yml @@ -28,6 +28,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: loadtestservice + TestProxy: True Artifacts: - name: azure-mgmt-loadtestservice safeName: azuremgmtloadtestservice From 2a8c776ad70b0ae7bb970b4776bc6e1da2f423e2 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Mon, 17 Oct 2022 15:21:38 +0800 Subject: [PATCH 6/6] Update ci.yml --- sdk/loadtestservice/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/loadtestservice/ci.yml b/sdk/loadtestservice/ci.yml index cb076d16e9d8..caa93158a8af 100644 --- a/sdk/loadtestservice/ci.yml +++ b/sdk/loadtestservice/ci.yml @@ -28,7 +28,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: loadtestservice - TestProxy: True + TestProxy: true Artifacts: - name: azure-mgmt-loadtestservice safeName: azuremgmtloadtestservice