{"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: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\",\"localizedMessage\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fmcg.test_lk.test_cart.TestCart object at 0x70090ffa2c90>\nget_fmcg_auth_header = {'Authorization': 'Bearer 60b4e4d7-f3a9-4853-b1b1-282f1129d8b5', '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 0x70090e9cd1d0>\nresource_path = '/api/v1/cart/add-item', method = 'PUT', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer 60b4e4d7-f3a9-4853-b1b1-282f1129d8b5', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.59+release120/python', ...}\nbody = {'items': [{'barcode': '44333193735652', 'quantity': 1, 'skuId': '4100000000000016727'}, {'barcode': '86283541664156', 'quantity': 1, 'skuId': '4100000000000016727'}]}\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: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\",\"localizedMessage\":\"query did not return a unique result: 3; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 3\"}; \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": "bf86382f-89f3-4580-9e22-42c3fc70d8f9-attachment.json", "type": "application/json"}], "start": 1775432354363, "stop": 1775432354364}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "a9576557-4d65-4feb-a079-84d1bc2fa442-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "609b9a15-b0b2-4756-a71d-0973a73932cf-attachment.json", "type": "application/json"}], "start": 1775432354364, "stop": 1775432354364}], "attachments": [{"name": "cURL", "source": "3b99ee86-4f54-4972-9d03-9031c61eecb3-attachment.txt", "type": "text/plain"}], "start": 1775432354363, "stop": 1775432354364}, {"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": "fc03db53-190b-415c-8f2b-7dc970b8efb3-attachment.json", "type": "application/json"}], "start": 1775432354390, "stop": 1775432354391}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "3b771b2c-ebbe-4bd7-be2b-3f959b47215d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "76be87f5-b033-45ff-a822-eb33af3cd82c-attachment.json", "type": "application/json"}], "start": 1775432354391, "stop": 1775432354391}], "attachments": [{"name": "cURL", "source": "f1dfd4f7-3161-4af3-8a97-6dfdfe15d41e-attachment.txt", "type": "text/plain"}], "start": 1775432354390, "stop": 1775432354391}, {"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": "4bd3d5e8-f1f6-454d-b4a7-80e77ec5215b-attachment.json", "type": "application/json"}], "start": 1775432354414, "stop": 1775432354414}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "f13ea315-5dd9-4eb6-b9c8-6f5a92bcd94f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7f24de9f-5734-4b60-bcc8-8047a5654cc9-attachment.json", "type": "application/json"}], "start": 1775432354414, "stop": 1775432354415}], "attachments": [{"name": "cURL", "source": "4c1c3c3b-5f47-4470-ae3e-32674312b3d8-attachment.txt", "type": "text/plain"}], "start": 1775432354414, "stop": 1775432354415}, {"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": "43e48867-8a46-45a1-af17-8295684d30b4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6a413cfa-e98c-490f-a016-10527f6c8482-attachment.json", "type": "application/json"}], "start": 1775432354455, "stop": 1775432354456}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "51ad257b-f8c1-4f46-b969-e269a1f8f40b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2b0f4c8c-9f37-4826-8f6c-ae1a867e969f-attachment.json", "type": "application/json"}], "start": 1775432354456, "stop": 1775432354456}], "attachments": [{"name": "cURL", "source": "a312e39a-d78e-4fa9-8007-38b825a2dfd3-attachment.txt", "type": "text/plain"}], "start": 1775432354455, "stop": 1775432354456}, {"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": "c9e5168e-09a1-4dca-8308-d4c2cd420bf1-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "09b77a18-b999-413b-aa5d-92e326a6e8f7-attachment.json", "type": "application/json"}], "start": 1775432354491, "stop": 1775432354491}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "9d7bc741-9343-4a28-8533-eacebba2374f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "5e0f0040-0046-4720-9867-4a514eb14f0e-attachment.json", "type": "application/json"}], "start": 1775432354491, "stop": 1775432354491}], "attachments": [{"name": "cURL", "source": "3a7bd8d7-e1b5-46c9-a6b2-4de297279ca1-attachment.txt", "type": "text/plain"}], "start": 1775432354490, "stop": 1775432354491}], "attachments": [{"name": "log", "source": "723bce7f-7af0-48d9-81e7-ea3adab66d51-attachment.txt", "type": "text/plain"}], "start": 1775432354292, "stop": 1775432354491, "uuid": "c4a0d014-2f6b-483a-b74e-36cc2e9f7fd9", "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-jdfb6amg"}, {"name": "thread", "value": "30-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"]}