{"name": "test_invoice_batch_upload_unexisting_sku_id", "status": "failed", "statusDetails": {"message": "AssertionError: Invoice with unexisting SKU id created\nassert 'Некорректное целое число' in 'Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: '\n +  where 'Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: ' = str(AssertionError('Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: '))", "trace": "self = <tests.fulfillment.test_supply.test_invoice.TestInvoiceBatch object at 0x7a9e9c052510>\nget_ff_supply_auth_header = {'Authorization': 'Bearer 606d2ab0-9de3-4c02-8d0d-04fe12b63aae', '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_invoice_batch_upload_unexisting_sku_id(self, get_ff_supply_auth_header):\n        try:\n            invoice_batch_data = [InvoiceBatch().to_dict() for _ in range(SKU_NUMBERS_FOR_BATCH_FILE)]\n>           InvoiceBuilder(headers=get_ff_supply_auth_header).batch_upload(invoice_batch_data)\n\ntests/fulfillment/test_supply/test_invoice.py:100: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fulfillment/builders/supply/invoice.py:74: in batch_upload\n    InvoiceApi(headers=self.headers).api_v1_invoice_batch_post(file=prepared_file).data\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py:54: in api_v1_invoice_batch_post\n    return self.api_v1_invoice_batch_post_with_http_info(**kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py:121: in api_v1_invoice_batch_post_with_http_info\n    return self.api_client.call_api(\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api_client.py:339: in call_api\n    return self.__call_api(resource_path, method,\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <qacl_dm_ff_be_service_supply.api_client.ApiClient object at 0x7a9e9ad1da90>\nresource_path = '/api/v1/invoice/batch', method = 'POST', path_params = {}\nquery_params = []\nheader_params = {'Accept': 'application/json', 'Authorization': 'Bearer 606d2ab0-9de3-4c02-8d0d-04fe12b63aae', 'User-Agent': 'Swagger-Codegen/1.0.224+develop/python', 'x-aer-app-name': 'python-autotests', ...}\nbody = None\npost_params = [('file', ('tmp5ow3_dkp.xlsx', b'PK\\x03\\x04\\x14\\x00\\x00\\x00\\x08\\x00\\x00\\xbb\\x87\\\\F\\xc7MH\\x95\\x00\\x00\\x00\\xcd\\x00\\x00\\x...\\t\\x00\\t\\x00>\\x02\\x00\\x00,\\xd4\\x00\\x00\\x00\\x00', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'))]\nfiles = {'file': '/tmp/tmp5ow3_dkp.xlsx'}, response_type = 'object'\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-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \nE            X-Aer-Trace-Id:\n\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api_client.py:172: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <tests.fulfillment.test_supply.test_invoice.TestInvoiceBatch object at 0x7a9e9c052510>\nget_ff_supply_auth_header = {'Authorization': 'Bearer 606d2ab0-9de3-4c02-8d0d-04fe12b63aae', '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_invoice_batch_upload_unexisting_sku_id(self, get_ff_supply_auth_header):\n        try:\n            invoice_batch_data = [InvoiceBatch().to_dict() for _ in range(SKU_NUMBERS_FOR_BATCH_FILE)]\n            InvoiceBuilder(headers=get_ff_supply_auth_header).batch_upload(invoice_batch_data)\n        except AssertionError as e:\n>           assert \"Некорректное целое число\" in str(e), \"Invoice with unexisting SKU id created\"\nE           AssertionError: Invoice with unexisting SKU id created\nE           assert 'Некорректное целое число' in 'Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: '\nE            +  where 'Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: ' = str(AssertionError('Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch; \\n Expected status code: 200; \\n Actual status code: 500; \\n Response body: {\"message\":\"\",\"localizedMessage\":\"Строка 2, Колонка 0: СКУ 4162328201284085 отсутствует в системе\\\\nСтрока 3, Колонка 0: СКУ 6415003996890213 отсутствует в системе\"}; \\n X-Aer-Trace-Id: '))\n\ntests/fulfillment/test_supply/test_invoice.py:102: AssertionError"}, "steps": [{"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/batch", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "84aaea5c-1946-4719-a2f6-33134cce9f1f-attachment.json", "type": "application/json"}], "start": 1775604240642, "stop": 1775604240642}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "aa7538d3-dfd0-49f1-9561-633a280d394d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a35588d9-c5ae-4693-95b6-31fb8d5b46d3-attachment.json", "type": "application/json"}], "start": 1775604240642, "stop": 1775604240642}], "attachments": [{"name": "cURL", "source": "c22b20bb-8040-44cc-80a4-e5bc263b2474-attachment.txt", "type": "text/plain"}], "start": 1775604240642, "stop": 1775604240643}], "attachments": [{"name": "log", "source": "785984c0-480b-4fd1-b167-04af4e5e5c5a-attachment.txt", "type": "text/plain"}], "start": 1775604240376, "stop": 1775604240643, "uuid": "adf1990f-b7ba-4802-b5ec-b5a144a3e921", "historyId": "2a26650fa37ceaada8092c45aaab3ae5", "testCaseId": "2a26650fa37ceaada8092c45aaab3ae5", "fullName": "tests.fulfillment.test_supply.test_invoice.TestInvoiceBatch#test_invoice_batch_upload_unexisting_sku_id", "labels": [{"name": "tag", "value": "dm-ff-be-service-supply"}, {"name": "parentSuite", "value": "tests.fulfillment.test_supply"}, {"name": "suite", "value": "test_invoice"}, {"name": "subSuite", "value": "TestInvoiceBatch"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-1-o0wfdzrk"}, {"name": "thread", "value": "36-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fulfillment.test_supply.test_invoice"}], "titlePath": ["tests", "fulfillment", "test_supply", "test_invoice.py", "TestInvoiceBatch"]}