{"name": "test_status_acceptance_in_progress_different_sellers", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send; \n Expected status code: 200; \n Actual status code: 500; \n Response body: {\"message\":\"\",\"localizedMessage\":\"Ошибка доступа, инвойс 410000015778\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fulfillment.test_supply.test_invoice.TestInvoiceDifferentSellers object at 0x713b43b0c310>\nget_invoice = FFInvoiceDTO(invoice=<src.framework.fulfillment.builders.supply.invoice.InvoiceBuilder object at 0x713b43d8eb50>)\n\n    def test_status_acceptance_in_progress_different_sellers(self, get_invoice):\n        \"\"\"\n        Создаем вручную два инвойса с одинаковыми баркодами товаров для двух разных селлеров.\n        Инвойсы переводим в статус 'Получено складом'\n        Ожидаемый результат: Инвойсы созданы и находятся в указанном статусе\n        \"\"\"\n        invoice_number = get_invoice.invoice.invoice_number\n    \n        initial_builder_first_seller = (\n            InvoiceBuilder()\n            .set_random_user()\n            .set_user_auth()\n            .update_invoice(invoice_number=invoice_number)\n>           .send_invoice(invoice_number=invoice_number)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n        )\n\ntests/fulfillment/test_supply/test_invoice.py:244: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fulfillment/builders/supply/invoice.py:41: in send_invoice\n    wait_send_invoice(headers=self.headers, invoice_number=invoice_number)\nsrc/framework/common/utils/utils.py:204: in wrapped_f\n    return Retrying(\n/usr/local/lib/python3.11/site-packages/retrying.py:289: in call\n    raise attempt.get()\n          ^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/retrying.py:326: in get\n    raise exc.with_traceback(tb)\n/usr/local/lib/python3.11/site-packages/retrying.py:273: in call\n    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)\n                      ^^^^^^^^^^^^^^^^^^^\nsrc/framework/fulfillment/validation/waiters/invoice.py:18: in wait_send_invoice\n    assert InvoiceApi(headers=headers).api_v1_invoice_send_post(invoice_number=invoice_number).status == HTTPStatus.OK\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py:660: in api_v1_invoice_send_post\n    return self.api_v1_invoice_send_post_with_http_info(invoice_number, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py:723: in api_v1_invoice_send_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 0x713b42feca90>\nresource_path = '/api/v1/invoice/send', method = 'POST', path_params = {}\nquery_params = [('invoiceNumber', 410000015778)]\nheader_params = {'Authorization': 'Bearer 2758fb9e-8900-4d9a-ae69-cc1a5abb60ba', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.220+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-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send; \nE            Expected status code: 200; \nE            Actual status code: 500; \nE            Response body: {\"message\":\"\",\"localizedMessage\":\"Ошибка доступа, инвойс 410000015778\"}; \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"}, "description": "\n        Создаем вручную два инвойса с одинаковыми баркодами товаров для двух разных селлеров.\n        Инвойсы переводим в статус 'Получено складом'\n        Ожидаемый результат: Инвойсы созданы и находятся в указанном статусе\n        ", "steps": [{"name": "SQLAlchemy query UPDATE ", "status": "passed", "attachments": [{"name": "query", "source": "bdcb82de-2df2-4e7f-9e5e-58b14656da23-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "b08719c6-74b3-4f06-a0dd-423529127bdb-attachment.json", "type": "application/json"}], "start": 1775431449786, "stop": 1775431449786}, {"name": "POST → https://dm-ff-be-service-account.k8s-review.dailymail-tech.uz/account/sign-in", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "67759b49-11cb-404b-913a-f6295b468709-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "2d7e4764-1feb-42ed-9ef9-1c894d50a450-attachment.json", "type": "application/json"}], "start": 1775431449819, "stop": 1775431449820}, {"name": "Response → 200, trace_id: 22bd595b04ab5a66968cb67dd58521a3", "status": "passed", "attachments": [{"name": "response.headers", "source": "e8b8fe0a-9943-439e-a115-ace2835043db-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "308d04b5-5566-48be-87bf-068897069a56-attachment.json", "type": "application/json"}], "start": 1775431449820, "stop": 1775431449820}], "attachments": [{"name": "cURL", "source": "e02dfe45-f418-45cb-80b3-376203116bac-attachment.txt", "type": "text/plain"}], "start": 1775431449819, "stop": 1775431449820}, {"name": "PUT → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "7a7e09dd-2f6f-489f-8a90-e9c1948fcb25-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f7f96282-110c-4aee-982f-f79889a854f3-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "fec775d9-ec0e-401b-b6df-b2ed4f867261-attachment.json", "type": "application/json"}], "start": 1775431449856, "stop": 1775431449856}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "02b26cb6-353e-47ef-bb7e-1a3c461a9253-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "71ef04ff-8a69-470b-a260-19de6b0c1d98-attachment.json", "type": "application/json"}], "start": 1775431449856, "stop": 1775431449857}], "attachments": [{"name": "cURL", "source": "46000aeb-08eb-4a3d-98ce-447e396706ae-attachment.txt", "type": "text/plain"}], "start": 1775431449856, "stop": 1775431449857}, {"name": "Waiter function: wait_send_invoice", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: POST https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send; \n Expected status code: 200; \n Actual status code: 500; \n Response body: {\"message\":\"\",\"localizedMessage\":\"Ошибка доступа, инвойс 410000015778\"}; \n X-Aer-Trace-Id: \n", "trace": "  File \"/app/src/framework/common/utils/utils.py\", line 204, in wrapped_f\n    return Retrying(\n           ^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/retrying.py\", line 289, in call\n    raise attempt.get()\n          ^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/retrying.py\", line 326, in get\n    raise exc.with_traceback(tb)\n  File \"/usr/local/lib/python3.11/site-packages/retrying.py\", line 273, in call\n    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)\n                      ^^^^^^^^^^^^^^^^^^^\n  File \"/app/src/framework/fulfillment/validation/waiters/invoice.py\", line 18, in wait_send_invoice\n    assert InvoiceApi(headers=headers).api_v1_invoice_send_post(invoice_number=invoice_number).status == HTTPStatus.OK\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py\", line 660, in api_v1_invoice_send_post\n    return self.api_v1_invoice_send_post_with_http_info(invoice_number, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api/invoice_api.py\", line 723, in api_v1_invoice_send_post_with_http_info\n    return self.api_client.call_api(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api_client.py\", line 339, in call_api\n    return self.__call_api(resource_path, method,\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_ff_be_service_supply/api_client.py\", line 172, in __call_api\n    assert response_data.status == expected_status_code, \\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"}, "steps": [{"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "d3fe926f-510a-408f-8eed-5e5789a67dbf-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "7f8bc6fd-c5d9-4bf4-8463-598162eea221-attachment.json", "type": "application/json"}], "start": 1775431449889, "stop": 1775431449890}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "a5f23cdb-b3f4-4d6e-8433-ff02157782fe-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "8225b5d2-035e-4e76-b1af-74782052cac0-attachment.json", "type": "application/json"}], "start": 1775431449890, "stop": 1775431449890}], "attachments": [{"name": "cURL", "source": "07a46614-c095-49c4-9576-11fc5bffed25-attachment.txt", "type": "text/plain"}], "start": 1775431449889, "stop": 1775431449890}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "e4424823-e2fa-4810-bbd6-8a9b5d65a655-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "901f55b2-8b59-43ad-baef-ddd4ea3a2e00-attachment.json", "type": "application/json"}], "start": 1775431459925, "stop": 1775431459926}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "c91ba6f8-7a57-4c3c-9f86-30f4e45bf7e7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a89614c8-a46b-4508-a2d6-c7e5803ee3f3-attachment.json", "type": "application/json"}], "start": 1775431459926, "stop": 1775431459926}], "attachments": [{"name": "cURL", "source": "d07c1fe5-2e4f-4dd5-9285-d12069a61606-attachment.txt", "type": "text/plain"}], "start": 1775431459925, "stop": 1775431459926}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "4f7ce23c-eced-44c3-bb54-ac82c7d706e9-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "367a8382-148d-41b6-b32c-310d4f582290-attachment.json", "type": "application/json"}], "start": 1775431469962, "stop": 1775431469963}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "27462474-3401-41b9-8bab-e5e1eccdac7b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2c20afd0-5752-429f-8926-9b01e0207bf4-attachment.json", "type": "application/json"}], "start": 1775431469963, "stop": 1775431469963}], "attachments": [{"name": "cURL", "source": "4044fd8b-6f03-4824-9311-40615d03b584-attachment.txt", "type": "text/plain"}], "start": 1775431469962, "stop": 1775431469963}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "42c52f37-e22a-4848-89a4-a8ddf1c9f4a1-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "5be11e55-d460-4e07-b20a-fde32c2708da-attachment.json", "type": "application/json"}], "start": 1775431480001, "stop": 1775431480001}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "fdd0dc4c-a97f-4a0a-ba51-77bf50d4c663-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2fc40aae-7845-4a82-a188-a09f1e4ab1e1-attachment.json", "type": "application/json"}], "start": 1775431480001, "stop": 1775431480001}], "attachments": [{"name": "cURL", "source": "879bbc8a-1b62-4b94-9a4f-c78196db68f7-attachment.txt", "type": "text/plain"}], "start": 1775431480001, "stop": 1775431480002}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015778", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "9f150e5a-5f09-471f-8df2-4eb6c4218857-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "e1bbbfdf-41e2-4814-ae83-71fa3dc8213b-attachment.json", "type": "application/json"}], "start": 1775431490041, "stop": 1775431490041}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "55ee0c88-1c2d-4bdd-8dd9-5a0fe431e0fd-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "eb2b1d74-046e-4be8-bb16-a93df3f7f5f4-attachment.json", "type": "application/json"}], "start": 1775431490041, "stop": 1775431490041}], "attachments": [{"name": "cURL", "source": "dd5fc10a-9384-4ddd-97bf-0d9b40572aaf-attachment.txt", "type": "text/plain"}], "start": 1775431490041, "stop": 1775431490041}], "start": 1775431449859, "stop": 1775431490044}], "attachments": [{"name": "log", "source": "cf72a999-d455-4b92-a74f-6c5bb25b9ca3-attachment.txt", "type": "text/plain"}], "start": 1775431449784, "stop": 1775431490046, "uuid": "acdfe0c8-003a-43eb-b6fc-6ec89828b84d", "historyId": "62d8e8d88f9a89a43be1d06e06e1b0ac", "testCaseId": "62d8e8d88f9a89a43be1d06e06e1b0ac", "fullName": "tests.fulfillment.test_supply.test_invoice.TestInvoiceDifferentSellers#test_status_acceptance_in_progress_different_sellers", "labels": [{"name": "tag", "value": "dm-ff-be-service-supply"}, {"name": "tag", "value": "different_sellers"}, {"name": "parentSuite", "value": "tests.fulfillment.test_supply"}, {"name": "suite", "value": "test_invoice"}, {"name": "subSuite", "value": "TestInvoiceDifferentSellers"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-1-b7441vj3"}, {"name": "thread", "value": "45-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", "TestInvoiceDifferentSellers"]}