{"name": "test_manual_invoice", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice; \n Expected status code: 200; \n Actual status code: 500; \n Response body: <!doctype html><html lang=\"en\"><head><title>HTTP Status 500 – Internal Server Error</title><style type=\"text/css\">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1></body></html>; \n X-Aer-Trace-Id:", "trace": "self = <tests.fmcg.test_lk.test_integration.TestIntegrationWithAcceptanceService object at 0x7783f4d67750>\nget_fmcg_auth_header = {'Authorization': 'Bearer f3be4d1a-8f67-4740-bdfb-fffc97be202b'}\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        invoice_number = initial_invoice_builder.invoice_number\n        assert (\n>           initial_invoice_builder.update_invoice().send_invoice().current_status\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n            == FMCGLkInvoiceStatuses.ACCEPTANCE_IN_PROGRESS\n        )\n\ntests/fmcg/test_lk/test_integration.py:23: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/builders/lk/invoice.py:61: in update_invoice\n    InvoiceApi(headers=self.headers).api_v1_invoice_put(invoice_number=invoice_number, body=request_body).data\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/invoice_api.py:1249: in api_v1_invoice_put\n    return self.api_v1_invoice_put_with_http_info(body, invoice_number, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/invoice_api.py:1327: in api_v1_invoice_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 0x7783f41c67d0>\nresource_path = '/api/v1/invoice', method = 'PUT', path_params = {}\nquery_params = [('invoiceNumber', 410002111)]\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer f3be4d1a-8f67-4740-bdfb-fffc97be202b', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.70+develop/python', ...}\nbody = {'dateArrival': 1776327433000, 'isDeclared': True, 'originalInvoiceNumber': '8875712286', 'vehicleNumber': 'ko927qD'}\npost_params = [], files = {}, response_type = 'InvoiceDto'\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/invoice; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: <!doctype html><html lang=\"en\"><head><title>HTTP Status 500 – Internal Server Error</title><style type=\"text/css\">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1></body></html>; \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": "36855d13-7ed1-4f40-baa3-fcd3ff303772-attachment.json", "type": "application/json"}], "start": 1775636233556, "stop": 1775636233556}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "fa505a92-4bb1-4f31-a569-2ab527bfbc46-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a769dcde-df3d-4bdc-a1a6-f9f90c38cc6b-attachment.json", "type": "application/json"}], "start": 1775636233556, "stop": 1775636233556}], "attachments": [{"name": "cURL", "source": "eb5ed785-08d6-4203-a681-eae5d9777646-attachment.txt", "type": "text/plain"}], "start": 1775636233556, "stop": 1775636233557}, {"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": "f99af4da-c565-495f-94c0-53c03e98061e-attachment.json", "type": "application/json"}], "start": 1775636233641, "stop": 1775636233642}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "1892c1c9-258f-45ae-9537-6bef5227281e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "3887f7b8-87fd-466c-9d05-bce403e1de59-attachment.json", "type": "application/json"}], "start": 1775636233642, "stop": 1775636233642}], "attachments": [{"name": "cURL", "source": "c70dbb50-ff33-428d-9325-79a4dfb96358-attachment.txt", "type": "text/plain"}], "start": 1775636233641, "stop": 1775636233642}, {"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": "673ae579-a73f-4941-982c-9e52b81921a0-attachment.json", "type": "application/json"}], "start": 1775636233677, "stop": 1775636233677}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "0586a82f-fd2c-48e3-993c-5b72d116542f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e0255d7c-39d3-4896-92cc-94061bee5c15-attachment.json", "type": "application/json"}], "start": 1775636233677, "stop": 1775636233677}], "attachments": [{"name": "cURL", "source": "0d20cd59-615c-487b-a1dc-266faf8940ed-attachment.txt", "type": "text/plain"}], "start": 1775636233677, "stop": 1775636233677}, {"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": "e501ab9e-180b-4ab9-9124-916f0d025069-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "96eb61b4-6017-4f64-aab4-a2078a4440e5-attachment.json", "type": "application/json"}], "start": 1775636233752, "stop": 1775636233753}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "556514c0-7437-4804-9083-6eda500b77e0-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ea500a72-b678-4f4d-9c4a-475613f285f1-attachment.json", "type": "application/json"}], "start": 1775636233753, "stop": 1775636233753}], "attachments": [{"name": "cURL", "source": "a7f42d0f-598a-4b58-9820-257758da73c1-attachment.txt", "type": "text/plain"}], "start": 1775636233752, "stop": 1775636233753}, {"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": "1f086246-a710-494f-8129-d92b4ddedc96-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "c0e27860-457a-4e98-8985-cc21aacda9cd-attachment.json", "type": "application/json"}], "start": 1775636233797, "stop": 1775636233798}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "2f825e72-449b-4f01-b350-b5f8b69874b7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b0562935-d72d-45b4-a45e-b6edf6523107-attachment.json", "type": "application/json"}], "start": 1775636233798, "stop": 1775636233798}], "attachments": [{"name": "cURL", "source": "6458e65d-571e-4090-bc0a-ea2566fa94ab-attachment.txt", "type": "text/plain"}], "start": 1775636233797, "stop": 1775636233798}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/create", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "674512eb-9c86-4842-9d6a-e15ba6605fef-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "859aa5d2-5ec4-4f3a-a7b7-6061c8a30e8e-attachment.json", "type": "application/json"}], "start": 1775636233890, "stop": 1775636233891}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "4991d139-7c48-4f5d-8d62-eeb47f7abd3e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4be077a4-ac73-461a-9d51-3ecff969692a-attachment.json", "type": "application/json"}], "start": 1775636233891, "stop": 1775636233891}], "attachments": [{"name": "cURL", "source": "60eb2b90-6ce1-491e-b820-b6b955fcd806-attachment.txt", "type": "text/plain"}], "start": 1775636233890, "stop": 1775636233891}, {"name": "PUT → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice?invoiceNumber=410002111", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "be6f5955-c7f0-4f55-8947-8ef7c03793a9-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "98c707a3-8936-47ce-8527-bdc90c58c949-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "15399014-51bc-4d07-9a9a-ae46b84bf4b5-attachment.json", "type": "application/json"}], "start": 1775636234230, "stop": 1775636234231}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "d3ad6b3b-0c2a-4619-a468-124556eb2f60-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0339dfd7-dda8-4528-bd34-ce94f23e4dcc-attachment.txt", "type": "text/plain"}], "start": 1775636234231, "stop": 1775636234231}], "attachments": [{"name": "cURL", "source": "1c40dcfa-c364-4beb-aa8b-97fc6195f0b3-attachment.txt", "type": "text/plain"}], "start": 1775636234230, "stop": 1775636234231}], "attachments": [{"name": "log", "source": "da8eaf31-c800-4956-92be-5f80c9d5b42f-attachment.txt", "type": "text/plain"}], "start": 1775636233455, "stop": 1775636234231, "uuid": "9c85735f-ee6b-4d8c-a2a5-ea47c3a0f1cf", "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-0-x106l0j2"}, {"name": "thread", "value": "24-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"]}