{"name": "test_change_status_from_created_to_canceled", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: POST https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/cancel; \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_invoice.TestFulfillmentSupplyCancelStatuses object at 0x776c58ebc490>\nget_fmcg_auth_header = {'Authorization': 'Bearer 89b4a19a-4bc2-4257-bc3a-e98d6a9baaa4'}\n\n    def test_change_status_from_created_to_canceled(self, get_fmcg_auth_header):\n        \"\"\"\n        Отмена инвойса в статусе 'СОЗДАНО'\n        Ожидаемый результат: инвойс отменен\n        \"\"\"\n        invoice_number = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice().invoice_number\n        assert (\n>           FMCGInvoiceBuilder(headers=get_fmcg_auth_header)\n            .cancel_invoice(invoice_number=invoice_number)\n            .current_status\n            == FMCGLkInvoiceStatuses.CANCELED\n        ), \"Invoice is not in the 'Cancelled' status\"\n\ntests/fmcg/test_lk/test_invoice.py:81: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/builders/lk/invoice.py:75: in cancel_invoice\n    InvoiceApi(headers=self.headers).api_v1_invoice_cancel_post(invoice_number=invoice_number)\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/invoice_api.py:447: in api_v1_invoice_cancel_post\n    return self.api_v1_invoice_cancel_post_with_http_info(invoice_number, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/invoice_api.py:511: in api_v1_invoice_cancel_post_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 0x776c58f60390>\nresource_path = '/api/v1/invoice/cancel', method = 'POST', path_params = {}\nquery_params = [('invoiceNumber', 410002114)]\nheader_params = {'Authorization': 'Bearer 89b4a19a-4bc2-4257-bc3a-e98d6a9baaa4', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.70+develop/python', 'x-aer-app-name': 'python-autotests', ...}\nbody = None, post_params = [], files = {}, response_type = None\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: POST https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/cancel; \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        Отмена инвойса в статусе 'СОЗДАНО'\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": "e2be336c-5c97-438d-9c19-6d298da02722-attachment.json", "type": "application/json"}], "start": 1775636233597, "stop": 1775636233597}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "5bb08bb4-238d-4cfb-b4e3-115b332223c2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f214af9a-ddaa-4deb-84ce-144d36797ff5-attachment.json", "type": "application/json"}], "start": 1775636233597, "stop": 1775636233598}], "attachments": [{"name": "cURL", "source": "74c663da-aea9-4098-bd11-1658b1bad350-attachment.txt", "type": "text/plain"}], "start": 1775636233597, "stop": 1775636233598}, {"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": "39642f27-a771-49e2-b5ab-4c2f1e007270-attachment.json", "type": "application/json"}], "start": 1775636233645, "stop": 1775636233645}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "41911001-5f48-4093-aa92-4d606a6c6814-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "3979cb95-e160-4566-b22e-5560f9389ead-attachment.json", "type": "application/json"}], "start": 1775636233645, "stop": 1775636233645}], "attachments": [{"name": "cURL", "source": "8880a686-b15a-4397-bc2d-d044cb6978a4-attachment.txt", "type": "text/plain"}], "start": 1775636233645, "stop": 1775636233645}, {"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": "6f9ead2c-773a-429b-882b-71a207deba51-attachment.json", "type": "application/json"}], "start": 1775636233692, "stop": 1775636233692}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "7f944969-04ed-41cd-b593-ed62584e8663-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d9f57b18-f618-4b3d-83d2-fd6e4734a78c-attachment.json", "type": "application/json"}], "start": 1775636233692, "stop": 1775636233692}], "attachments": [{"name": "cURL", "source": "b41db87a-6fd4-4122-9b57-39fb10d48ad4-attachment.txt", "type": "text/plain"}], "start": 1775636233692, "stop": 1775636233692}, {"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": "33282f0b-6989-4ac5-9060-75d6a64e1343-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "79732c8e-38ff-4b63-b03b-81eeca6776c1-attachment.json", "type": "application/json"}], "start": 1775636233748, "stop": 1775636233748}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "42b7c0dd-d306-4cd6-b3a9-2780e13779cf-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "9fbf9f0b-8a23-45df-b7a6-8ccc6adc9abe-attachment.json", "type": "application/json"}], "start": 1775636233748, "stop": 1775636233749}], "attachments": [{"name": "cURL", "source": "55928a63-77c5-46dd-8cb6-a3d9821b5277-attachment.txt", "type": "text/plain"}], "start": 1775636233748, "stop": 1775636233749}, {"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": "c32dd4d1-e1f5-4fff-a9a4-846cf28192e6-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "2fd37a6e-b581-4a06-b1c2-3143024f088d-attachment.json", "type": "application/json"}], "start": 1775636233876, "stop": 1775636233876}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "6c8858dd-fcc9-40a2-8f1f-713a5023972f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a3d92c12-e5ff-4fd3-b0fe-826f17f585b3-attachment.json", "type": "application/json"}], "start": 1775636233876, "stop": 1775636233876}], "attachments": [{"name": "cURL", "source": "a7af05e3-a353-4bb0-9805-787a21545c3a-attachment.txt", "type": "text/plain"}], "start": 1775636233876, "stop": 1775636233876}, {"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": "b20e0a65-1329-4a7b-8477-08d2b01a7dda-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8a725609-947f-47fb-9ec5-62d807d22de6-attachment.json", "type": "application/json"}], "start": 1775636233987, "stop": 1775636233987}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "8d26e046-adc3-4c07-a0ea-4edf409b24b9-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "1d298b32-f264-4ed0-8acf-68953c5c3544-attachment.json", "type": "application/json"}], "start": 1775636233987, "stop": 1775636233988}], "attachments": [{"name": "cURL", "source": "ed655e48-a906-4221-86e9-e17e8f53f382-attachment.txt", "type": "text/plain"}], "start": 1775636233987, "stop": 1775636233988}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/invoice/cancel?invoiceNumber=410002114", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "007c9232-bea2-402e-8296-318a3cf8e5ac-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "e5a8b001-61cb-4ebe-91b7-92841c29d072-attachment.json", "type": "application/json"}], "start": 1775636234230, "stop": 1775636234231}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "e03b23bd-f3d8-4bac-a55d-c29a116c4a03-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "64e6fa5e-1714-466b-bb2e-ff2369d7c022-attachment.txt", "type": "text/plain"}], "start": 1775636234231, "stop": 1775636234231}], "attachments": [{"name": "cURL", "source": "698efeec-7eaf-4a86-a1d7-84e936fe10cb-attachment.txt", "type": "text/plain"}], "start": 1775636234230, "stop": 1775636234231}], "attachments": [{"name": "log", "source": "406df590-7ce5-4bea-96ba-b6410e2cc99c-attachment.txt", "type": "text/plain"}], "start": 1775636233502, "stop": 1775636234231, "uuid": "c1750e2f-e03c-4986-bdd6-65b070154266", "historyId": "de20d95a8c55e1a2f97ef4ed8420bfa8", "testCaseId": "de20d95a8c55e1a2f97ef4ed8420bfa8", "fullName": "tests.fmcg.test_lk.test_invoice.TestFulfillmentSupplyCancelStatuses#test_change_status_from_created_to_canceled", "labels": [{"name": "tag", "value": "dm-fmcg-be-service-lk"}, {"name": "parentSuite", "value": "tests.fmcg.test_lk"}, {"name": "suite", "value": "test_invoice"}, {"name": "subSuite", "value": "TestFulfillmentSupplyCancelStatuses"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-x106l0j2"}, {"name": "thread", "value": "45-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", "TestFulfillmentSupplyCancelStatuses"]}