{"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\":\"Ошибка доступа, инвойс 410000015889\"}; \n X-Aer-Trace-Id:", "trace": "self = <tests.fulfillment.test_supply.test_invoice.TestInvoiceDifferentSellers object at 0x72f10b7f38d0>\nget_invoice = FFInvoiceDTO(invoice=<src.framework.fulfillment.builders.supply.invoice.InvoiceBuilder object at 0x72f10a747a90>)\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 0x72f10b7f3210>\nresource_path = '/api/v1/invoice/send', method = 'POST', path_params = {}\nquery_params = [('invoiceNumber', 410000015889)]\nheader_params = {'Authorization': 'Bearer dabc561a-5f2e-412e-9998-9c0f68e6c419', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/1.0.224+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\":\"Ошибка доступа, инвойс 410000015889\"}; \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": "b3d2c95f-3673-4d14-8b38-33ed1ecdd19c-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "deda38c2-9992-45c4-8eeb-bdf4a79f67ff-attachment.json", "type": "application/json"}], "start": 1775517839329, "stop": 1775517839329}, {"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": "4b51ce6a-033d-4ed8-9cd8-c85a775fd463-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "89d1e274-65c5-4202-9504-8985fb472169-attachment.json", "type": "application/json"}], "start": 1775517839364, "stop": 1775517839365}, {"name": "Response → 200, trace_id: deb46e87072be73c61bce1a5ca02addb", "status": "passed", "attachments": [{"name": "response.headers", "source": "47116b35-6986-4c5c-b796-b8b6a0b4248f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e07346d5-eff6-482b-951c-b6415b55c229-attachment.json", "type": "application/json"}], "start": 1775517839365, "stop": 1775517839365}], "attachments": [{"name": "cURL", "source": "2b9a0e38-c30a-468d-850d-d8aa5aff827b-attachment.txt", "type": "text/plain"}], "start": 1775517839364, "stop": 1775517839365}, {"name": "PUT → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice?invoiceNumber=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "ae5d706d-e8fc-4d64-8c96-d0ce2ccf104f-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "585cd36c-01da-499a-9253-537d320d4ac7-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "b6cf6006-c95e-46ce-ac2a-80cfdff37131-attachment.json", "type": "application/json"}], "start": 1775517839411, "stop": 1775517839411}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "08886933-a6df-4517-a67a-290c4942c818-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f99831bf-89a8-4932-9c5f-f4f5f3d2c136-attachment.json", "type": "application/json"}], "start": 1775517839411, "stop": 1775517839411}], "attachments": [{"name": "cURL", "source": "7eba624f-fbe6-453f-91e0-9ff579337132-attachment.txt", "type": "text/plain"}], "start": 1775517839410, "stop": 1775517839412}, {"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\":\"Ошибка доступа, инвойс 410000015889\"}; \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=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "9b68dadd-b9ed-478a-a33f-14806a649a25-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "fd485003-3931-4db9-bdda-820a3c5f7551-attachment.json", "type": "application/json"}], "start": 1775517839449, "stop": 1775517839449}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "41cfb6ab-acc6-47c0-95a1-8095dc9cf839-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "418d794c-4283-40a7-981b-e1eb83a8bdd6-attachment.json", "type": "application/json"}], "start": 1775517839450, "stop": 1775517839450}], "attachments": [{"name": "cURL", "source": "8906ab4a-df6e-41e6-869f-85f60ce6267c-attachment.txt", "type": "text/plain"}], "start": 1775517839449, "stop": 1775517839450}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "226520d8-bec2-4006-9520-8df47dc2e864-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "68bb7f74-cb99-474f-8f2d-6b856b9c2f40-attachment.json", "type": "application/json"}], "start": 1775517849486, "stop": 1775517849487}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "8468401c-31b1-4f14-9198-0667ff4a7be9-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2319be9c-5104-462e-b24b-444b207e6e52-attachment.json", "type": "application/json"}], "start": 1775517849487, "stop": 1775517849487}], "attachments": [{"name": "cURL", "source": "f55e61dc-7fc1-425a-906d-73b6bead309e-attachment.txt", "type": "text/plain"}], "start": 1775517849486, "stop": 1775517849487}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "36c05908-b7f4-4d2f-a01e-32eb38ad4488-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "becc4b3c-00da-4e8a-b87b-18897a2acf12-attachment.json", "type": "application/json"}], "start": 1775517859525, "stop": 1775517859525}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "3592909d-5aa7-4738-8866-f2e5145ab08b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0392baaf-cd11-42e9-b93e-5a6864795deb-attachment.json", "type": "application/json"}], "start": 1775517859525, "stop": 1775517859525}], "attachments": [{"name": "cURL", "source": "db5b4578-6699-4749-9988-caa181490b48-attachment.txt", "type": "text/plain"}], "start": 1775517859525, "stop": 1775517859525}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "32970571-81ac-480d-8280-a427c4d94731-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "02e543c9-13c4-4a8a-8528-01a38358bfc3-attachment.json", "type": "application/json"}], "start": 1775517869562, "stop": 1775517869562}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "704af159-2737-4b5d-9b11-6bca6a89419d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "63673a57-fa3d-45fb-bd55-93f5a1491615-attachment.json", "type": "application/json"}], "start": 1775517869562, "stop": 1775517869562}], "attachments": [{"name": "cURL", "source": "a143f5b1-2607-475c-b45d-6756f2e7ffc9-attachment.txt", "type": "text/plain"}], "start": 1775517869562, "stop": 1775517869562}, {"name": "POST → https://dm-ff-be-service-supply.k8s-review.dailymail-tech.uz/api/v1/invoice/send?invoiceNumber=410000015889", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "1fcf143d-fefa-4cc3-8c4d-7d70cc76bf8f-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "4fcc7be7-ce22-4f73-a9a6-eb3575bde4f8-attachment.json", "type": "application/json"}], "start": 1775517879600, "stop": 1775517879601}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "c5da9da1-6104-4047-a0cb-3fc17ab1424a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d5e9e632-6a65-4607-99f5-7e6f0047e3a1-attachment.json", "type": "application/json"}], "start": 1775517879601, "stop": 1775517879601}], "attachments": [{"name": "cURL", "source": "eae1ee50-9586-4ae3-a7c9-115194a2cbed-attachment.txt", "type": "text/plain"}], "start": 1775517879600, "stop": 1775517879601}], "start": 1775517839415, "stop": 1775517879603}], "attachments": [{"name": "log", "source": "344f7c28-beac-4c73-9367-ff53b046d62d-attachment.txt", "type": "text/plain"}], "start": 1775517839326, "stop": 1775517879605, "uuid": "55227c57-6330-4fd9-88e9-bfe6d58dc512", "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-nf7l5zqw"}, {"name": "thread", "value": "33-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"]}