{"name": "test_status_created", "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_invoice.TestFulfillmentSupplyStatuses object at 0x74e1a7a9d2d0>\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_status_created(self, get_fmcg_auth_header):\n        \"\"\"\n        Создание инвойса в статусе 'СОЗДАНО'\n        Ожидаемый результат: инвойс в указанном статусе\n        \"\"\"\n>       created_invoice = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice()\n                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\ntests/fmcg/test_lk/test_invoice.py:22: \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 0x74e1a6bcb290>\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': '30663218971210', 'quantity': 1, 'skuId': '4100000000000016725'}, {'barcode': '56941172681340', 'quantity': 1, 'skuId': '4100000000000016725'}]}\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": "546bc20e-702f-4fbc-86b8-56ba5ca37bda-attachment.json", "type": "application/json"}], "start": 1775432353427, "stop": 1775432353427}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "3f61f6cb-7731-4d4e-98d9-a7db3cf22642-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "16333236-9790-4471-800c-9c6cf3769c07-attachment.json", "type": "application/json"}], "start": 1775432353427, "stop": 1775432353427}], "attachments": [{"name": "cURL", "source": "3b05e12c-0735-47e4-a89e-18efc87f6169-attachment.txt", "type": "text/plain"}], "start": 1775432353427, "stop": 1775432353427}, {"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": "2dd584d6-23c7-4d1d-80a0-f01fbaea7116-attachment.json", "type": "application/json"}], "start": 1775432353512, "stop": 1775432353512}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "db93546a-db38-46cb-9cc6-11d5d30dca3b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7163f14b-13a1-41a3-bfc5-54ce8f739c6d-attachment.json", "type": "application/json"}], "start": 1775432353512, "stop": 1775432353512}], "attachments": [{"name": "cURL", "source": "142a105b-6661-44d8-97d1-2256ce0e884d-attachment.txt", "type": "text/plain"}], "start": 1775432353512, "stop": 1775432353512}, {"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": "ca7c1b06-ab8a-447d-8271-f2fb46bfcebe-attachment.json", "type": "application/json"}], "start": 1775432353613, "stop": 1775432353613}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "019d9e80-e1cb-4d07-bb28-9e905fb6d077-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2d1febe3-ebb8-4f2e-a714-2c89856d9b0f-attachment.json", "type": "application/json"}], "start": 1775432353613, "stop": 1775432353614}], "attachments": [{"name": "cURL", "source": "d70b395f-e6ff-44b2-8c17-e574aecf4ab3-attachment.txt", "type": "text/plain"}], "start": 1775432353613, "stop": 1775432353614}, {"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": "d63b1eb1-d688-40b9-bf3b-9d5b5eb5cee5-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1d3e68e0-59b3-411d-95f4-f8e4ad0b3e85-attachment.json", "type": "application/json"}], "start": 1775432353662, "stop": 1775432353662}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "49285ab7-b8de-4e5b-8bfe-3379cdc061bb-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "1fcfa471-7280-4ccd-9213-486c8cd3dbcb-attachment.json", "type": "application/json"}], "start": 1775432353662, "stop": 1775432353662}], "attachments": [{"name": "cURL", "source": "3bb2c824-0601-43ad-8869-65f731e02e60-attachment.txt", "type": "text/plain"}], "start": 1775432353662, "stop": 1775432353662}, {"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": "4d65263d-2a6a-40d5-a2e5-a08dd1e669e2-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "b85f5a2c-2cba-400e-a471-c3d50794b732-attachment.json", "type": "application/json"}], "start": 1775432353768, "stop": 1775432353768}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "4355e393-1594-4ed8-914d-a60fb58ab68e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "84ea98c7-0e55-40e7-a120-00e8167a179d-attachment.json", "type": "application/json"}], "start": 1775432353768, "stop": 1775432353768}], "attachments": [{"name": "cURL", "source": "61636980-4d11-4bab-ad1f-e6742194cf77-attachment.txt", "type": "text/plain"}], "start": 1775432353768, "stop": 1775432353768}], "attachments": [{"name": "log", "source": "6e431d58-5a04-4fa0-aaa0-4534620bc07d-attachment.txt", "type": "text/plain"}], "start": 1775432353335, "stop": 1775432353769, "uuid": "436847c5-1ef9-4ef7-9fac-c019801c9903", "historyId": "6ee730111fb406f9875c726fdd531dff", "testCaseId": "6ee730111fb406f9875c726fdd531dff", "fullName": "tests.fmcg.test_lk.test_invoice.TestFulfillmentSupplyStatuses#test_status_created", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_invoice"}, {"name": "subSuite", "value": "TestFulfillmentSupplyStatuses"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-3-jdfb6amg"}, {"name": "thread", "value": "36-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_lk.test_invoice"}], "titlePath": ["tests", "fmcg", "test_lk", "test_invoice.py", "TestFulfillmentSupplyStatuses"]}