{"name": "test_manual_invoice", "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_integration.TestIntegrationWithAcceptanceService object at 0x740e4182e150>\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_manual_invoice(self, get_fmcg_auth_header):\n        \"\"\"\n        Создаем заявку через формы. Перемещаем инвойс до статуса 'Получено складом' ('Acceptance in progress')\n        Ожидаемый результат: заявку в статусе 'Acceptance in progress' попала в сервис Acceptance\n        \"\"\"\n>       initial_invoice_builder = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice()\n                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\ntests/fmcg/test_lk/test_integration.py:20: \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 0x740e418637d0>\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': '25326858431384', 'quantity': 1, 'skuId': '4100000000000016707'}, {'barcode': '86144518236253', 'quantity': 1, 'skuId': '4100000000000016707'}]}\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        Создаем заявку через формы. Перемещаем инвойс до статуса 'Получено складом' ('Acceptance in progress')\n        Ожидаемый результат: заявку в статусе 'Acceptance in progress' попала в сервис Acceptance\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": "043ef729-0823-416d-bcc9-ced5e4790ac1-attachment.json", "type": "application/json"}], "start": 1775345987904, "stop": 1775345987904}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "a608c19a-87e2-494b-83ca-0023e44e3429-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "59227796-cb59-4422-a482-013036fe2a8a-attachment.json", "type": "application/json"}], "start": 1775345987904, "stop": 1775345987905}], "attachments": [{"name": "cURL", "source": "b5fa86c6-bd0d-4431-9426-2f182335a79a-attachment.txt", "type": "text/plain"}], "start": 1775345987904, "stop": 1775345987905}, {"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": "02560a70-c41f-41b7-bec8-ffd19789c890-attachment.json", "type": "application/json"}], "start": 1775345987988, "stop": 1775345987989}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "ad04dfb1-d4de-4cae-86fd-3fed919a12ec-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a9b5b5d2-5d63-4568-a9d5-6a5f285814a6-attachment.json", "type": "application/json"}], "start": 1775345987989, "stop": 1775345987989}], "attachments": [{"name": "cURL", "source": "6bc30037-b97e-474f-b7d9-5a0e7b3d5c71-attachment.txt", "type": "text/plain"}], "start": 1775345987988, "stop": 1775345987989}, {"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": "578b9e00-c2ec-4450-969c-6998c5c958cf-attachment.json", "type": "application/json"}], "start": 1775345988016, "stop": 1775345988016}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "cc39b3c6-7718-4723-b4b7-7a61344fcbf2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "72e93775-7c34-4ac2-9d0c-82ddbc4db5de-attachment.json", "type": "application/json"}], "start": 1775345988016, "stop": 1775345988016}], "attachments": [{"name": "cURL", "source": "43bccc52-4e05-4108-b6aa-e56e04c53c72-attachment.txt", "type": "text/plain"}], "start": 1775345988016, "stop": 1775345988016}, {"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": "69d96ee6-57c1-4306-800f-852e4797416d-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "22426f33-8107-4e79-a610-15f8aa68f8f3-attachment.json", "type": "application/json"}], "start": 1775345988060, "stop": 1775345988061}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "9bd7a596-04fd-4d7d-a7f3-35cf3446c7af-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "79474349-ed95-4f87-9628-a7724c09776e-attachment.json", "type": "application/json"}], "start": 1775345988061, "stop": 1775345988061}], "attachments": [{"name": "cURL", "source": "d10d336a-bea2-41a4-9c55-d2a87a7501bd-attachment.txt", "type": "text/plain"}], "start": 1775345988060, "stop": 1775345988061}, {"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": "344ea4ca-4f99-4353-9e6d-bbac498822ec-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "94ea087c-9371-4901-9a9e-a6f2260bb444-attachment.json", "type": "application/json"}], "start": 1775345988240, "stop": 1775345988241}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "f429d3f5-8eca-4ba3-8216-d4d37a5dbaf3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "5862c874-634b-4686-af4e-56de8523557a-attachment.json", "type": "application/json"}], "start": 1775345988241, "stop": 1775345988241}], "attachments": [{"name": "cURL", "source": "7c19c54c-4ab1-48cd-95cc-71f7b3b8542d-attachment.txt", "type": "text/plain"}], "start": 1775345988240, "stop": 1775345988241}], "attachments": [{"name": "log", "source": "cd863634-4381-4be8-82a6-7825e03a480c-attachment.txt", "type": "text/plain"}], "start": 1775345987824, "stop": 1775345988241, "uuid": "82fe245b-19fb-418c-92b6-ef03359938d5", "historyId": "28535b5a285cbb2b359ea9b8cf9f0ca5", "testCaseId": "28535b5a285cbb2b359ea9b8cf9f0ca5", "fullName": "tests.fmcg.test_lk.test_integration.TestIntegrationWithAcceptanceService#test_manual_invoice", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_integration"}, {"name": "subSuite", "value": "TestIntegrationWithAcceptanceService"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-3-pxnt4b3s"}, {"name": "thread", "value": "45-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_integration"}], "titlePath": ["tests", "fmcg", "test_lk", "test_integration.py", "TestIntegrationWithAcceptanceService"]}