{"name": "test_remove_all_items", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item; \n Expected status code: 200; \n Actual status code: 500; \n Response body: {\"message\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\",\"localizedMessage\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fmcg.test_lk.test_cart.TestCart object at 0x71d13a184fd0>\nget_fmcg_auth_header = {'Authorization': 'Bearer 189f174a-bbcb-43c8-848d-c2cca61e5100', 'x-aer-mesh': 'dm-hub-service-package:master;dm-hub-s...hub-internal:master;dm-hub-workflow-integration:master;dm-hub-workflow-package:master;dm-hub-workflow-tracking:master'}\n\n    def test_remove_all_items(self, get_fmcg_auth_header):\n        \"\"\"\n        Из заполненной корзины удаляем все товары, указывая пустое тело запроса\n        Ожидаемый результат: товара в корзине нет\n        \"\"\"\n>       invoice = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice()\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\ntests/fmcg/test_lk/test_cart.py:64: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/builders/lk/invoice.py:33: in create_invoice\n    cart_items = FMCGCartBuilder(headers=self.headers).fill_cart().current_cart\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/framework/fmcg/builders/lk/cart.py:24: in fill_cart\n    CartApi(headers=self.headers).api_v1_cart_add_item_put(body=request_body, **invoice_data).data.items\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py:55: in api_v1_cart_add_item_put\n    return self.api_v1_cart_add_item_put_with_http_info(body, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py:129: in api_v1_cart_add_item_put_with_http_info\n    return self.api_client.call_api(\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py:339: in call_api\n    return self.__call_api(resource_path, method,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <qacl_dm_fmcg_be_service_lk.api_client.ApiClient object at 0x71d138fa6dd0>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer 189f174a-bbcb-43c8-848d-c2cca61e5100', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.63+develop/python', ...}\nbody = {'items': [{'barcode': '57856191610634', 'quantity': 1, 'skuId': '4100000000000016780'}, {'barcode': '56919327732187', 'quantity': 1, 'skuId': '4100000000000016780'}]}\npost_params = [], files = {}, response_type = 'CartDto'\nauth_settings = ['wms-authorization'], _return_http_data_only = False\ncollection_formats = {}, _preload_content = True, _request_timeout = None\nexpected_status_code = <HTTPStatus.OK: 200>\n\n    def __call_api(\n            self, resource_path, method, path_params=None,\n            query_params=None, header_params=None, body=None, post_params=None,\n            files=None, response_type=None, auth_settings=None,\n            _return_http_data_only=None, collection_formats=None,\n            _preload_content=True, _request_timeout=None,\n            expected_status_code=HTTPStatus.OK):\n    \n        config = self.configuration\n    \n        # header parameters\n        header_params = header_params or {}\n        header_params.update(self.default_headers)\n        if self.cookie:\n            header_params['Cookie'] = self.cookie\n        if header_params:\n            header_params = self.sanitize_for_serialization(header_params)\n            header_params = dict(self.parameters_to_tuples(header_params,\n                                                           collection_formats))\n    \n        # path parameters\n        if path_params:\n            path_params = self.sanitize_for_serialization(path_params)\n            path_params = self.parameters_to_tuples(path_params,\n                                                    collection_formats)\n            for k, v in path_params:\n                # specified safe chars, encode everything\n                resource_path = resource_path.replace(\n                    '{%s}' % k,\n                    quote(str(v), safe=config.safe_chars_for_path_param)\n                )\n    \n        # query parameters\n        if query_params:\n            query_params = self.sanitize_for_serialization(query_params)\n            query_params = self.parameters_to_tuples(query_params,\n                                                     collection_formats)\n    \n        # post parameters\n        if post_params or files:\n            post_params = self.prepare_post_parameters(post_params, files)\n            post_params = self.sanitize_for_serialization(post_params)\n            post_params = self.parameters_to_tuples(post_params,\n                                                    collection_formats)\n    \n        # auth setting\n        self.update_params_for_auth(header_params, query_params, auth_settings)\n    \n        # body\n        if body:\n            body = self.sanitize_for_serialization(body)\n    \n        # request url\n        url = self.configuration.host + resource_path\n    \n        # perform request and return response\n        response_data = self.request(\n            method, url, query_params=query_params, headers=header_params,\n            post_params=post_params, body=body,\n            _preload_content=_preload_content,\n            _request_timeout=_request_timeout)\n    \n        self.last_response = response_data\n    \n        return_data = response_data\n    \n        try:\n            response_data.data\n            trace_id = response_data.urllib3_response.headers.get('x-aer-trace-id', \"\")\n        except:\n            assert response_data.status == expected_status_code, \\\n                f'Handler: {method} {url}; \\n ' \\\n                f'Expected status code: {expected_status_code}; \\n ' \\\n                f'Actual status code: {response_data.status}'\n        else:\n>           assert response_data.status == expected_status_code, \\\n                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                f'Handler: {method} {url}; \\n ' \\\n                f'Expected status code: {expected_status_code}; \\n ' \\\n                f'Actual status code: {response_data.status}; \\n ' \\\n                f'Response body: {response_data.data}; \\n ' \\\n                f'X-Aer-Trace-Id: {trace_id}'\nE           AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: {\"message\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\",\"localizedMessage\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\"}; \nE            X-Aer-Trace-Id:\n\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py:172: AssertionError"}, "description": "\n        Из заполненной корзины удаляем все товары, указывая пустое тело запроса\n        Ожидаемый результат: товара в корзине нет\n        ", "steps": [{"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/categories", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "ce6b5c0d-d861-4c5c-9da1-e78343064578-attachment.json", "type": "application/json"}], "start": 1775518759260, "stop": 1775518759260}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "c6150b57-8101-4b5a-8299-dccc883d7c0d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "71240f83-6f59-470c-b1be-6b4832dd9527-attachment.json", "type": "application/json"}], "start": 1775518759260, "stop": 1775518759261}], "attachments": [{"name": "cURL", "source": "cd6cd6e4-4d83-4b66-b523-60edc8c78b6a-attachment.txt", "type": "text/plain"}], "start": 1775518759260, "stop": 1775518759261}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/unit", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "68bdf20b-a421-49bb-85bb-1c03797b3695-attachment.json", "type": "application/json"}], "start": 1775518759359, "stop": 1775518759359}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "08bdb116-8c65-435f-be73-8bf40c7deec2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b17b67ec-ad2a-45d8-a296-83ceadcb1521-attachment.json", "type": "application/json"}], "start": 1775518759359, "stop": 1775518759359}], "attachments": [{"name": "cURL", "source": "d1e4077f-f476-4807-91c3-46fb5a93d9db-attachment.txt", "type": "text/plain"}], "start": 1775518759359, "stop": 1775518759359}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/packingtype", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "fcfd96e5-f5eb-44f7-bbf9-99b3986617e7-attachment.json", "type": "application/json"}], "start": 1775518759459, "stop": 1775518759459}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "7adc0106-920f-4100-b269-4b8bb6c67cf5-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "25d75bbf-c986-4561-8e8e-a62ddee0eaa0-attachment.json", "type": "application/json"}], "start": 1775518759459, "stop": 1775518759460}], "attachments": [{"name": "cURL", "source": "2fde3892-11d9-40a6-a156-65a73d571218-attachment.txt", "type": "text/plain"}], "start": 1775518759459, "stop": 1775518759460}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "f493db27-d0d8-4f23-85bb-0023546e9df1-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "7192b743-d031-4d13-bb91-e154cc0059b3-attachment.json", "type": "application/json"}], "start": 1775518759654, "stop": 1775518759654}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "dc4df66f-fcc5-4fec-a36e-79592a19a6da-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "8c8233d0-61d8-4f88-8442-707dbc36010e-attachment.json", "type": "application/json"}], "start": 1775518759654, "stop": 1775518759655}], "attachments": [{"name": "cURL", "source": "32bc472a-be4f-4927-afdb-dc12dc9c2a47-attachment.txt", "type": "text/plain"}], "start": 1775518759654, "stop": 1775518759655}, {"name": "PUT → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "9af1c7a6-7ed6-44b8-8869-51a9121a81bb-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6d195282-2d9f-4fda-bcb3-cc561023974a-attachment.json", "type": "application/json"}], "start": 1775518759768, "stop": 1775518759768}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "94513c13-18ef-45e2-9bf3-078c00b7c96d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0f9a1c3d-7ac8-410c-b573-fa31805a407c-attachment.json", "type": "application/json"}], "start": 1775518759768, "stop": 1775518759768}], "attachments": [{"name": "cURL", "source": "1800f122-02fa-4b71-abcb-a8ae6cd65583-attachment.txt", "type": "text/plain"}], "start": 1775518759768, "stop": 1775518759768}], "attachments": [{"name": "log", "source": "d51a316d-d94a-45dd-9876-1d4b0ee8514f-attachment.txt", "type": "text/plain"}], "start": 1775518759089, "stop": 1775518759769, "uuid": "0e88718d-c0db-40e6-be14-9b86020665aa", "historyId": "82be365dfc1e01d6a96824b6518dc953", "testCaseId": "82be365dfc1e01d6a96824b6518dc953", "fullName": "tests.fmcg.test_lk.test_cart.TestCart#test_remove_all_items", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_cart"}, {"name": "subSuite", "value": "TestCart"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-3-u18kj11c"}, {"name": "thread", "value": "24-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_cart"}], "titlePath": ["tests", "fmcg", "test_lk", "test_cart.py", "TestCart"]}