{"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 0x7907b6982c90>\nget_fmcg_auth_header = {'Authorization': 'Bearer ba237cf7-e0f8-45c6-b0ef-78492fe1f11d', '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 0x7907b51a5f10>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer ba237cf7-e0f8-45c6-b0ef-78492fe1f11d', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.59+release120/python', ...}\nbody = {'items': [{'barcode': '72770444362036', 'quantity': 1, 'skuId': '4100000000000016699'}, {'barcode': '92631341561542', 'quantity': 1, 'skuId': '4100000000000016699'}]}\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": "044476e3-6ea0-4dcd-9cc1-35f0f8d2c340-attachment.json", "type": "application/json"}], "start": 1775259575935, "stop": 1775259575935}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "45650bc4-2dfa-49f1-b945-9fce2d7a6e81-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "02676060-d5a5-43c1-81cd-f6cbb15c3c89-attachment.json", "type": "application/json"}], "start": 1775259575935, "stop": 1775259575936}], "attachments": [{"name": "cURL", "source": "22497f8a-8196-436e-9420-a5b7a0cd8473-attachment.txt", "type": "text/plain"}], "start": 1775259575935, "stop": 1775259575936}, {"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": "b7960eaa-1b99-471f-aa97-2417f5a90ae4-attachment.json", "type": "application/json"}], "start": 1775259575962, "stop": 1775259575962}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "cd78a367-9678-4fc6-a928-827d2a50bc01-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e6229ee2-5daa-4953-badc-7bf308d6789b-attachment.json", "type": "application/json"}], "start": 1775259575962, "stop": 1775259575962}], "attachments": [{"name": "cURL", "source": "7e11f897-65e0-4864-b319-96a9dbdbb2c7-attachment.txt", "type": "text/plain"}], "start": 1775259575962, "stop": 1775259575962}, {"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": "334ce570-c9dc-4629-ac12-0509c37b24f7-attachment.json", "type": "application/json"}], "start": 1775259576035, "stop": 1775259576035}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "d434ae61-b6ba-4f7c-a52f-97f071b36414-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "166471c4-7379-4ef4-88e2-f0cbe21099d7-attachment.json", "type": "application/json"}], "start": 1775259576035, "stop": 1775259576035}], "attachments": [{"name": "cURL", "source": "469e5199-a01a-49ad-840e-62a0584da56f-attachment.txt", "type": "text/plain"}], "start": 1775259576035, "stop": 1775259576036}, {"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": "5685377d-cbd2-4281-b7e5-45989e533b98-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "2dc902e7-1f0a-4fe2-8900-1c80ff765330-attachment.json", "type": "application/json"}], "start": 1775259576158, "stop": 1775259576159}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "5b45eaf4-818a-48f3-be33-e83497b40c07-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c8400675-77b6-45c3-b986-90b68c954173-attachment.json", "type": "application/json"}], "start": 1775259576159, "stop": 1775259576159}], "attachments": [{"name": "cURL", "source": "fa40fa59-8527-40ba-87ee-773dc730b68b-attachment.txt", "type": "text/plain"}], "start": 1775259576158, "stop": 1775259576159}, {"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": "1a7c835f-5473-494e-9800-7dc6c0d97cc4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "06e822d6-3137-4cf5-9167-cbe1ff6c5416-attachment.json", "type": "application/json"}], "start": 1775259576259, "stop": 1775259576259}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "4756c174-190c-4350-b9b0-b6f9d12fb090-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f0f81992-b054-475d-870a-bcda4eb7609f-attachment.json", "type": "application/json"}], "start": 1775259576259, "stop": 1775259576259}], "attachments": [{"name": "cURL", "source": "7ca7e1f2-a6fd-4081-9d1c-79e40d3d189b-attachment.txt", "type": "text/plain"}], "start": 1775259576259, "stop": 1775259576259}], "attachments": [{"name": "log", "source": "e7266c84-1183-411b-99a3-87cf09a587bd-attachment.txt", "type": "text/plain"}], "start": 1775259575880, "stop": 1775259576260, "uuid": "6084e474-929c-46a7-b5de-554a1e28b07c", "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-gtxhh2tl"}, {"name": "thread", "value": "36-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"]}