Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mgmt] re-record sb mgmt tests + update tests to pass pipeline #18884

Closed

Conversation

swathipil
Copy link
Member

Currently, the Service Bus mgmt tests are failing in the build pipeline. We need to re-record the mgmt tests to get these to pass. Fixed 2 things:

  1. Added necessary dependencies to azure-mgmt-servicebus/dev_requirements.txt
  2. Updated namespace names in test_cli_mgmt_servicebus_namespace.py/test_migration_configs test. It was previously failing with the following error message:
(test-env39) PS C:\Users\swathip\Documents\forks\azure-sdk-for-python\sdk\servicebus\azure-mgmt-servicebus\tests> pytest .\test_cli_mgmt_servicebus_namespace.py   
============================================================= test session starts ============================================================= 
platform win32 -- Python 3.9.0, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: C:\Users\swathip\Documents\forks\azure-sdk-for-python, configfile: setup.cfg
plugins: asyncio-0.15.1, cov-2.12.0
collected 3 items                                                                                                                               

test_cli_mgmt_servicebus_namespace.py sF.                                                                                                [100%]

================================================================== FAILURES =================================================================== 
__________________________________________________ MgmtServiceBusTest.test_migration_configs __________________________________________________ 

self = <test_cli_mgmt_servicebus_namespace.MgmtServiceBusTest testMethod=test_migration_configs>
resource_group = FakeResource(name='swathip-test', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/swathip-test')        

        @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
        def test_migration_configs(self, resource_group):

            RESOURCE_GROUP = resource_group.name
            NAMESPACE_NAME = "myNamespacexxyyzzxyyma"
            NAMESPACE_NAME_PRIMARY = "myNamespacexxyyzzykksecondm"
            AUTHORIZATION_RULE_NAME = "myAuthorizationRule"
            CONFIG_NAME = "$default"
            POST_MIGRATION_NAME = "postmigrationxxxky"

    #--------------------------------------------------------------------------
            # /Namespaces/put/NameSpaceCreate[put] Standard
    #--------------------------------------------------------------------------
            BODY = {
              "sku": {
                "name": "Standard",
                "tier": "Standard"
              },
              "location": AZURE_LOCATION,
              "tags": {
                "tag1": "value1",
                "tag2": "value2"
              }
            }
>           result = self.mgmt_client.namespaces.begin_create_or_update(resource_group_name=RESOURCE_GROUP, namespace_name=NAMESPACE_NAME, parameters=BODY)

test_cli_mgmt_servicebus_namespace.py:280:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..\..\..\..\..\..\test-env39\lib\site-packages\azure\mgmt\servicebus\operations\_namespaces_operations.py:558: in begin_create_or_update        
    raw_result = self._create_or_update_initial(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <azure.mgmt.servicebus.operations._namespaces_operations.NamespacesOperations object at 0x00000296055C2880>
resource_group_name = 'swathip-test', namespace_name = 'myNamespacexxyyzzxyyma'
parameters = {'location': 'eastus', 'sku': {'name': 'Standard', 'tier': 'Standard'}, 'tags': {'tag1': 'value1', 'tag2': 'value2'}}, kwargs = {} 
cls = <function NamespacesOperations.begin_create_or_update.<locals>.<lambda> at 0x00000296055ED4C0>
error_map = {401: <class 'azure.core.exceptions.ClientAuthenticationError'>, 404: <class 'azure.core.exceptions.ResourceNotFoundError'>, 409: <class 'azure.core.exceptions.ResourceExistsError'>}
api_version = '2018-01-01-preview', content_type = 'application/json', accept = 'application/json'
url = 'https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/swathip-test/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzzxyyma'
path_format_arguments = {'namespaceName': 'myNamespacexxyyzzxyyma', 'resourceGroupName': 'swathip-test', 'subscriptionId': 'faa080af-c1d8-40ad-9cce-e1a450ca5b57'}

    def _create_or_update_initial(
        self,
        resource_group_name,  # type: str
        namespace_name,  # type: str
        parameters,  # type: "_models.SBNamespace"
        **kwargs  # type: Any
    ):
        # type: (...) -> Optional["_models.SBNamespace"]
        cls = kwargs.pop('cls', None)  # type: ClsType[Optional["_models.SBNamespace"]]
        error_map = {
            401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
        }
        error_map.update(kwargs.pop('error_map', {}))
        api_version = "2018-01-01-preview"
        content_type = kwargs.pop("content_type", "application/json")
        accept = "application/json"

        # Construct URL
        url = self._create_or_update_initial.metadata['url']  # type: ignore
        path_format_arguments = {
            'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
            'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str'),
            'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
        }
        url = self._client.format_url(url, **path_format_arguments)

        # Construct parameters
        query_parameters = {}  # type: Dict[str, Any]
        query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')

        # Construct headers
        header_parameters = {}  # type: Dict[str, Any]
        header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
        header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')

        body_content_kwargs = {}  # type: Dict[str, Any]
        body_content = self._serialize.body(parameters, 'SBNamespace')
        body_content_kwargs['content'] = body_content
        request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
        pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
        response = pipeline_response.http_response

        if response.status_code not in [200, 201, 202]:
            map_error(status_code=response.status_code, response=response, error_map=error_map)
            error = self._deserialize(_models.ErrorResponse, response)
>           raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
E           azure.core.exceptions.HttpResponseError: (BadRequest) The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: d467a99c-de83-4464-a316-52fe13e4a4ea
E           Code: BadRequest
E           Message: The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: d467a99c-de83-4464-a316-52fe13e4a4ea

..\..\..\..\..\..\test-env39\lib\site-packages\azure\mgmt\servicebus\operations\_namespaces_operations.py:508: HttpResponseError
-------------------------------------------------------------- Captured log call -------------------------------------------------------------- 
INFO     vcr.cassette:cassette.py:197 <function VCR._build_before_record_request.<locals>.before_record_request at 0x0000029605227700>
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
WARNING  root:azure_testcase.py:299 'create_basic_client' will be deprecated in the future. It is recommended that you use                 'get_credential' and 'create_client_from_credential' to create your client.
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:419 Request URL: 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:420 Request method: 'GET'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:421 Request headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'User-Agent': 'azsdk-python-identity/1.6.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:437 No body was attached to the request
INFO     vcr.stubs:__init__.py:235 <Request (GET) https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration> not in cassette, sending to real server
INFO     vcr.cassette:cassette.py:232 Appending request <Request (GET) https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration> and response {'status': {'code': 200, 'message': 'OK'}, 'headers': {'x-ms-request-id': ['40bf3fd0-b5b3-462a-b029-889d5a509900'], 'Content-Type': ['application/json; charset=utf-8'], 'P3P': ['CP="DSP CUR OTPi IND OTRi ONL FIN"'], 'Access-Control-Allow-Methods': ['GET, OPTIONS'], 'Set-Cookie': ['fpc=Ai6XBBHcC0xJpKo1sAX6mcM; expires=Wed, 23-Jun-2021 16:44:30 GMT; path=/; secure; HttpOnly; SameSite=None', 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcaO8WBcc6Y6G6Nim8zBdUlmYc8977vUDIH7wDAB-3-8TZoQYZs0HvziuKgadq0cClx2PbqZaiXxSAhNN_yRg3v7UJ68O-X9X05srx9NO6RalfDZbDyyH5X7zoWu8PDYD9bj_X7Ez0xv4mpwaJtcrWDJe9wLuF7D2-kofpsA29l0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly'], 'X-Content-Type-Options': ['nosniff'], 'Access-Control-Allow-Origin': ['*'], 'Cache-Control': ['max-age=86400, private'], 'Strict-Transport-Security': ['max-age=31536000; includeSubDomains'], 'x-ms-ests-server': ['2.1.11774.8 - WUS2 ProdSlices'], 'Date': ['Mon, 24 May 2021 16:44:29 GMT'], 'Content-Length': ['1651']}, 'body': {'string': b'{"token_endpoint":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/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"],"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"}'}}
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:452 Response status: 200
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:453 Response headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-request-id': '40bf3fd0-b5b3-462a-b029-889d5a509900'       
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Type': 'application/json; charset=utf-8'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'P3P': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Access-Control-Allow-Methods': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Set-Cookie': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'X-Content-Type-Options': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Access-Control-Allow-Origin': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Cache-Control': 'max-age=86400, private'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Strict-Transport-Security': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-ests-server': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Date': 'Mon, 24 May 2021 16:44:29 GMT'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Length': '1651'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:419 Request URL: 'https://login.microsoftonline.com/common/discovery/instance?api-version=REDACTED&authorization_endpoint=REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:420 Request method: 'GET'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:421 Request headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Accept': 'application/json'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'User-Agent': 'azsdk-python-identity/1.6.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:437 No body was attached to the request
INFO     vcr.stubs:__init__.py:235 <Request (GET) https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize> not in cassette, sending to real server
INFO     vcr.cassette:cassette.py:232 Appending request <Request (GET) https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize> and response {'status': {'code': 200, 'message': 'OK'}, 'headers': {'x-ms-request-id': ['4a6543ae-33f3-437d-8923-df47ee093403'], 'Content-Type': ['application/json; charset=utf-8'], 'P3P': ['CP="DSP CUR 
OTPi IND OTRi ONL FIN"'], 'Access-Control-Allow-Methods': ['GET, OPTIONS'], 'Set-Cookie': ['fpc=Ai6XBBHcC0xJpKo1sAX6mcM; expires=Wed, 23-Jun-2021 16:44:30 GMT; path=/; secure; HttpOnly; SameSite=None', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly'], 'X-Content-Type-Options': ['nosniff'], 'Access-Control-Allow-Origin': ['*'], 'Cache-Control': ['max-age=86400, private'], 'Strict-Transport-Security': ['max-age=31536000; includeSubDomains'], 'x-ms-ests-server': ['2.1.11722.21 - WUS2 ProdSlices'], 'Date': ['Mon, 24 May 2021 16:44:29 GMT'], 'Content-Length': ['945']}, 'body': {'string': b'{"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"]}]}'}}
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:452 Response status: 200
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:453 Response headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-request-id': '4a6543ae-33f3-437d-8923-df47ee093403'       
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Type': 'application/json; charset=utf-8'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'P3P': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Access-Control-Allow-Methods': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Set-Cookie': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'X-Content-Type-Options': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Access-Control-Allow-Origin': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Cache-Control': 'max-age=86400, private'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Strict-Transport-Security': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-ests-server': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Date': 'Mon, 24 May 2021 16:44:29 GMT'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Length': '945'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:419 Request URL: 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:420 Request method: 'POST'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:421 Request headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Accept': 'application/json'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-sku': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-ver': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-os': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-cpu': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'client-request-id': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-current-telemetry': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-client-last-telemetry': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'User-Agent': 'azsdk-python-identity/1.6.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:435 A body is sent with the request
INFO     vcr.stubs:__init__.py:235 <Request (POST) https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token> not in cassette, sending to real server
INFO     vcr.cassette:cassette.py:232 Appending request <Request (POST) https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token> and response {'status': {'code': 200, 'message': 'OK'}, 'headers': {'x-ms-request-id': ['40bf3fd0-b5b3-462a-b029-889d62509900'], 'Content-Type': ['application/json; charset=utf-8'], 'P3P': ['CP="DSP CUR OTPi IND OTRi ONL FIN"'], 'Set-Cookie': ['fpc=Ai6XBBHcC0xJpKo1sAX6mcPGzC0mAQAAAO7OPdgOAAAA; expires=Wed, 23-Jun-2021 16:44:30 GMT; path=/; secure; HttpOnly; SameSite=None', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly'], 'X-Content-Type-Options': ['nosniff'], 'Cache-Control': ['no-store, no-cache'], 'Strict-Transport-Security': ['max-age=31536000; includeSubDomains'], 'x-ms-clitelem': ['1,0,0,,'], 'Pragma': ['no-cache'], 'x-ms-ests-server': ['2.1.11774.8 - WUS2 ProdSlices'], 'Date': ['Mon, 24 May 2021 16:44:29 GMT'], 'client-request-id': ['b5e6a759-1563-4992-ab98-a9715b23ad1f'], 'Expires': ['-1'], 'Content-Length': ['1351']}, 'body': {'string': b'{"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im5PbzNaRHJPRFhFSzFqS1doWHNsSFJfS1hFZyIsImtpZCI6Im5PbzNaRHJPRFhFSzFqS1doWHNsSFJfS1hFZyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3LyIsImlhdCI6MTYyMTg3NDM3MCwibmJmIjoxNjIxODc0MzcwLCJleHAiOjE2MjE5NjEwNzAsImFpbyI6IkUyWmdZQWlYK1pQdVdueG1VNmZwSWlzMzVSWDZBQT09IiwiYXBwaWQiOiJlOTlhYzEwMy00YzU5LTQwZTEtODc4Yi04NDdmZTlhMzAxM2IiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwib2lkIjoiNzMzMTZiMmItNzAxMy00NmZiLWE4OTctOGFlNjBjNTZjY2NiIiwicmgiOiIwLkFSb0F2NGo1Y3ZHR3IwR1JxeTE4MEJIYlJ3UEJtdWxaVE9GQWg0dUVmLW1qQVRzYUFBQS4iLCJzdWIiOiI3MzMxNmIyYi03MDEzLTQ2ZmItYTg5Ny04YWU2MGM1NmNjY2IiLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1dGkiOiIwRC1fUUxPMUtrYXdLWWlkWWxDWkFBIiwidmVyIjoiMS4wIiwieG1zX3RjZHQiOjEyODkyNDE1NDd9.avrsiVUKmpZHvslmCEc_XhLMF6cvQzfDGruKqxX_5qYCjjbLB74X8h_aH5SJzv8byJS1M-MJ9Hssjn06ZlokhSmD7_L52wIbrWlySBuej3VHnitpluVLQDDBOyS6l9uTTowfayJ0aUhWvv6nyzTdg6Zy0YV_e88iYQTes5ApzmFJLmlH0zyO5HI4TKXMlSevXpK5cTPvJxRpAw3zlDTnV49uNWdB7sD83wo7hv0zdSbhlBzK7LnODi1wRU6jX5BjrSUO__Y30pjX9ovXrHL8XX-VMszUkAaW-DILF1Kjw4a-GTB0mIWLDIqytiJqF1yFeXyWJRd4bzX2T9xUlXR7kQ"}'}}
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:452 Response status: 200
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:453 Response headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-request-id': '40bf3fd0-b5b3-462a-b029-889d62509900'       
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Type': 'application/json; charset=utf-8'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'P3P': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Set-Cookie': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'X-Content-Type-Options': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Cache-Control': 'no-store, no-cache'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Strict-Transport-Security': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-clitelem': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Pragma': 'no-cache'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-ests-server': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Date': 'Mon, 24 May 2021 16:44:29 GMT'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'client-request-id': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Expires': '-1'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Length': '1351'
INFO     azure.identity._internal.get_token_mixin:get_token_mixin.py:79 ClientSecretCredential.get_token succeeded
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:419 Request URL: 'https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/swathip-test/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzzxyyma?api-version=REDACTED'    
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:420 Request method: 'PUT'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:421 Request headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Content-Type': 'application/json'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Accept': 'application/json'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Content-Length': '117'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'x-ms-client-request-id': '4f0551df-bcaf-11eb-8e64-9c2976df0be1'INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'User-Agent': 'azsdk-python-mgmt-servicebus/6.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0)'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:424     'Authorization': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:435 A body is sent with the request
INFO     vcr.stubs:__init__.py:235 <Request (PUT) https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/swathip-test/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzzxyyma?api-version=2018-01-01-preview> not in cassette, sending to real 
server
INFO     vcr.cassette:cassette.py:232 Appending request <Request (PUT) https://management.azure.com/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/swathip-test/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzzxyyma?api-version=2018-01-01-preview> and response {'status': {'code': 400, 'message': 'Bad Request'}, 'headers': {'x-ms-request-id': ['00f2dd1d-4efb-4a8b-9ec7-d2ccab8e108a_M3CH3_M3CH3'], 'Content-Type': ['application/json; charset=utf-8'], 'x-ms-ratelimit-remaining-subscription-writes': ['1199'], 'x-ms-routing-request-id': ['NORTHCENTRALUS:20210524T164432Z:d467a99c-de83-4464-a316-52fe13e4a4ea'], 'x-ms-correlation-request-id': ['d467a99c-de83-4464-a316-52fe13e4a4ea'], 'X-Content-Type-Options': ['nosniff'], 'Server-SB': ['Service-Bus-Resource-Provider/CH3'], 'Cache-Control': ['no-cache'], 'Strict-Transport-Security': ['max-age=31536000; includeSubDomains'], 'Pragma': ['no-cache'], 'Server': ['Service-Bus-Resource-Provider/CH3', 'Microsoft-HTTPAPI/2.0'], 'Date': ['Mon, 24 May 2021 16:44:32 GMT'], 'Expires': ['-1'], 'Content-Length': ['198']}, 'body': {'string': b'{"error":{"message":"The specified name 
is not available. For more information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: d467a99c-de83-4464-a316-52fe13e4a4ea","code":"BadRequest"}}'}}
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:452 Response status: 400
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:453 Response headers:
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-request-id': '00f2dd1d-4efb-4a8b-9ec7-d2ccab8e108a_M3CH3_M3CH3'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Type': 'application/json; charset=utf-8'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-ratelimit-remaining-subscription-writes': '1199'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-routing-request-id': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'x-ms-correlation-request-id': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'X-Content-Type-Options': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Server-SB': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Cache-Control': 'no-cache'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Strict-Transport-Security': 'REDACTED'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Pragma': 'no-cache'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Server': 'Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Date': 'Mon, 24 May 2021 16:44:32 GMT'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Expires': '-1'
INFO     azure.core.pipeline.policies.http_logging_policy:_universal.py:456     'Content-Length': '198'
=========================================================== short test summary info =========================================================== 
FAILED test_cli_mgmt_servicebus_namespace.py::MgmtServiceBusTest::test_migration_configs - azure.core.exceptions.HttpResponseError: (BadReque...============================================= 1 failed, 1 passed, 1 skipped in 514.05s (0:08:34) ==============================================

@ghost ghost added the Service Bus label May 24, 2021
@swathipil
Copy link
Member Author

/azp run python - azure-mgmt-servicebus - tests-weekly

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swathipil swathipil marked this pull request as draft May 24, 2021 17:50
@swathipil
Copy link
Member Author

/azp run python - azure-mgmt-servicebus - tests-weekly

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@swathipil
Copy link
Member Author

not needed by mgmt team

@swathipil swathipil closed this May 26, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this pull request May 10, 2022
Review request for Microsoft.ContainerService to add version 2022-04-02-preview (Azure#18900)

* Adds base for updating Microsoft.ContainerService from version preview/2022-03-02-preview to version 2022-04-02-preview

* Updates readme

* Updates API version in new specs and examples

* update readme (Azure#18714)

* add NetworkPluginMode to ManagedCluster (Azure#18735)

* add NetworkPluginMode to ManagedCluster

* add overlay example

* remove example

* only keep overlap as option

* Add properties for apiserver-vnet-integration (Azure#18705)

* Update for AKS trusted access feature (Azure#18708)

* Update for AKS trusted access feature

* fixup! Update for AKS trusted access feature

* fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* OSSKU supports Windows options (Azure#18706)

* OSSKU supports Windows options

* Add example Create Agent Pool with Windows OSSKU

* Improve description about the default value

* Improve the description to clarify

* Improve description about default Windows OSSKU

* add storageProfile into managedcluster (Azure#18817)

Signed-off-by: Ji An Liu <jiliu8@microsoft.com>

* capatalize NetworkPluginMode name (Azure#18884)

* capatalize NetworkPluginMode name

* capitalize in description

* aks: add enableCustomCATrust in v20220402-preview api-version (Azure#18830)

* aks: add enableCustomCATrust in v20220402-preview api-version

* aks: add description of CustomCATrust

* aks: fix typo, add DaemonSet to custom words list

Co-authored-by: Mikolaj Umanski <mumanski@microsoft.com>

* [AKS] Update on trustedaccess resource (Azure#18947)

* Add paging for trusted access

* update async state

* fixup! update async state

* Use enum for TrustedAccessRoleBinding's ProvisioningState (Azure#18950)

Co-authored-by: Tyler Lloyd <tyler.lloyd@microsoft.com>
Co-authored-by: gossion <guwe@microsoft.com>
Co-authored-by: Dong Liu <doliu@microsoft.com>
Co-authored-by: Shiqian Tao <62196586+ShiqianTao@users.noreply.github.com>
Co-authored-by: Ji'an Liu <jiliu8@microsoft.com>
Co-authored-by: Mikołaj Umański <mik.umanski@gmail.com>
Co-authored-by: Mikolaj Umanski <mumanski@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant