{"name": "test_invoice_accept[params0-fmcg_warehouse_invoice0]", "status": "failed", "statusDetails": {"message": "AssertionError: 405 PUT https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/attach-to-stock-cell-barcode: {\"message\":\"Error calling external service 405\",\"localizedMessage\":\"Ошибка вызова внешнего сервиса 405\"}, x-aer-trace-id: efe589e63e440869e77bfee647da570c", "trace": "self = <tests.fmcg.test_acceptance.test_invoice.TestFmcgAcceptanceInvoice object at 0x72381f06d310>\nparams = {'task_pallet_flow_type': <AcceptanceTaskPalletFlowType.NEW: 'NEW'>}\nfmcg_warehouse_invoice = FmcgWarehouseInvoiceFixtureDto(warehouse=FmcgWarehouse(id=1, name='uz 7200', user=FmcgUser(wms_id=9000000001, barcode=...1a1f146a2'), invoice=<src.framework.fmcg.builders.acceptance.v1_invoice.V1FmcgInvoiceBuilder object at 0x72381cbdcd10>)\n\n    @pytest.mark.parametrize(\n        \"fmcg_warehouse_invoice\",\n        [\n            {\n                \"random_items\": [\n                    FmcgRandomItem(\n                        items_count=randint(2, 5),\n                        quantity=randint(5, 9),\n                        is_bundle=False,\n                    )\n                ]\n            },\n            {\n                \"random_items\": [\n                    FmcgRandomItem(\n                        items_count=randint(2, 5),\n                        quantity=randint(10, 20),\n                        is_bundle=True,\n                        bundle_quantity=randint(2, 4),\n                    )\n                ]\n            },\n        ],\n        indirect=True,\n    )\n    @pytest.mark.parametrize(\n        \"params\",\n        [\n            {\"task_pallet_flow_type\": AcceptanceTaskPalletFlowType.NEW},\n            # {\"task_pallet_flow_type\": AcceptanceTaskPalletFlowType.FORMED},\n        ],\n    )\n    def test_invoice_accept(self, params, fmcg_warehouse_invoice):\n        e2e = V1FmcgE2EBuilder(\n            warehouse=fmcg_warehouse_invoice.warehouse,\n            user=fmcg_warehouse_invoice.user,\n            headers=fmcg_warehouse_invoice.invoice.headers,\n            stock_cell_barcode=fmcg_warehouse_invoice.cells[0].cell_barcode,\n        )\n        e2e.set_invoice_builder(fmcg_warehouse_invoice.invoice)\n        e2e.flow_car_bind_to_gate()\n        e2e.flow_unloading_car(task_pallet_flow_type=params[\"task_pallet_flow_type\"])\n        e2e.flow_invoice_finalization()\n>       e2e.flow_unloading_pallet_placement()\n\ntests/fmcg/test_acceptance/test_invoice.py:83: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/fmcg/builders/v1_e2e.py:257: in flow_unloading_pallet_placement\n    SwaggerDmFmcgBeFacadeFe(headers=self.headers).put_api_v1_pallet_attach_to_stock_cell_barcode(\nsrc/framework/common/swagger/dm/fmcg/be/facade/fe.py:211: in put_api_v1_pallet_attach_to_stock_cell_barcode\n    self.client.request(\nsrc/framework/common/api.py:288: in request\n    cls._validator.validate_status_code(response, allowed_status_codes, method=method)\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nresponse = <Response [405]>\nallowed_status_codes = (<HTTPStatus.OK: 200>, <HTTPStatus.NO_CONTENT: 204>, <HTTPStatus.CREATED: 201>, <HTTPStatus.ACCEPTED: 202>)\nmethod = <HTTPMethod.PUT>\n\n    @staticmethod\n    def validate_status_code(response: requests.Response, allowed_status_codes: tuple, method: str = None) -> None:\n        \"\"\"Валидирует статус код ответа\"\"\"\n        if response.status_code not in allowed_status_codes:\n            trace_id = get_clear_trace_id(headers=response.headers)\n            response_content = (\n                response.content[:STEP_CONTENT_MAX_LENGTH]\n                if len(response.content) > STEP_CONTENT_MAX_LENGTH\n                else response.content\n            )\n>           raise AssertionError(\n                f\"{response.status_code} {method} {response.url}: {response_content.decode()}, \"\n                f\"x-aer-trace-id: {trace_id}\"\n            )\nE           AssertionError: 405 PUT https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/attach-to-stock-cell-barcode: {\"message\":\"Error calling external service 405\",\"localizedMessage\":\"Ошибка вызова внешнего сервиса 405\"}, x-aer-trace-id: efe589e63e440869e77bfee647da570c\n\nsrc/framework/common/api.py:138: AssertionError"}, "steps": [{"name": "Waiter function: wait_invoice", "status": "passed", "start": 1775691778293, "stop": 1775691778293}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/invoices", "status": "passed", "attachments": [{"name": "Request", "source": "3faa5733-5563-46d5-a6a3-32a68963fd7e-attachment.json", "type": "application/json"}, {"name": "Response", "source": "b0f06f42-5c78-4e9b-b03b-3d58f440b556-attachment.json", "type": "application/json"}], "start": 1775691778294, "stop": 1775691778835}, {"name": "Waiter function: wait_invoice", "status": "passed", "start": 1775691778836, "stop": 1775691778838}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/task/pick", "status": "passed", "attachments": [{"name": "Request", "source": "f242acc8-d112-4048-beb0-e4510610175b-attachment.json", "type": "application/json"}, {"name": "Response", "source": "81421ae8-0deb-42ed-876f-be436f54c152-attachment.json", "type": "application/json"}], "start": 1775691778840, "stop": 1775691779251}, {"name": "Waiter function: wait_unloading_task", "status": "passed", "start": 1775691779252, "stop": 1775691779255}, {"name": "Waiter function: wait_invoice", "status": "passed", "start": 1775691779255, "stop": 1775691779256}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/generate-barcodes", "status": "passed", "attachments": [{"name": "Request", "source": "7f87395f-03d2-437e-9d4a-ba0092a7c8c1-attachment.json", "type": "application/json"}, {"name": "Response", "source": "33ffa531-092c-4cfa-9420-35a01d456c49-attachment.json", "type": "application/json"}], "start": 1775691779256, "stop": 1775691779380}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item", "status": "passed", "attachments": [{"name": "Request", "source": "b226d5ee-87cf-4df1-a286-eb4a39c1278f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "7adaba7d-f00b-4924-b3ee-a19fa6f686a9-attachment.json", "type": "application/json"}], "start": 1775691779383, "stop": 1775691779565}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item/add-count", "status": "passed", "attachments": [{"name": "Request", "source": "018cb923-513b-492a-a9a8-fda367c0b7d1-attachment.json", "type": "application/json"}, {"name": "Response", "source": "24f041be-6a29-4d97-96d6-d6f77ef6f00a-attachment.json", "type": "application/json"}], "start": 1775691779567, "stop": 1775691779750}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/barcode", "status": "passed", "attachments": [{"name": "Request", "source": "ecf8253b-51c6-4ef2-acad-6373148a0b26-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c97b78bd-3ee3-447b-b326-90aeed662356-attachment.json", "type": "application/json"}], "start": 1775691779751, "stop": 1775691779876}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/add-expiration-date", "status": "passed", "attachments": [{"name": "Request", "source": "4784e511-4c72-4355-af28-d5ca33e4b1b2-attachment.json", "type": "application/json"}, {"name": "Response", "source": "d56230a6-10c1-4482-bfd5-42cc035b20e0-attachment.json", "type": "application/json"}], "start": 1775691779878, "stop": 1775691779961}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/move-to-buffer", "status": "passed", "attachments": [{"name": "Request", "source": "71283b96-631d-43a8-adc0-2419d71ad80c-attachment.json", "type": "application/json"}, {"name": "Response", "source": "14ebcb4f-a582-4f21-aa71-d172c993b078-attachment.json", "type": "application/json"}], "start": 1775691779962, "stop": 1775691780062}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/task/pick", "status": "passed", "attachments": [{"name": "Request", "source": "85a0e5f1-3273-49c0-99e7-33f615a06fc6-attachment.json", "type": "application/json"}, {"name": "Response", "source": "db407b0b-9dbc-4a49-b164-910471a286ed-attachment.json", "type": "application/json"}], "start": 1775691780064, "stop": 1775691780162}, {"name": "Waiter function: wait_unloading_task", "status": "passed", "start": 1775691780163, "stop": 1775691780164}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/generate-barcodes", "status": "passed", "attachments": [{"name": "Request", "source": "1cf6f472-37df-4982-a2e9-229bde4be2e1-attachment.json", "type": "application/json"}, {"name": "Response", "source": "821dd1ef-51ae-4f35-b349-07b0217fd791-attachment.json", "type": "application/json"}], "start": 1775691780165, "stop": 1775691780192}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item", "status": "passed", "attachments": [{"name": "Request", "source": "3860e583-1f0a-4c85-8973-7f33b8f5d05a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "0e2c26e0-bfc0-4f73-8c24-10dd2c214b11-attachment.json", "type": "application/json"}], "start": 1775691780193, "stop": 1775691780230}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item/add-count", "status": "passed", "attachments": [{"name": "Request", "source": "37745c3a-2d3b-4ad3-84d9-843543449ced-attachment.json", "type": "application/json"}, {"name": "Response", "source": "549a1e9b-31f5-4f09-99ae-17f955530e1c-attachment.json", "type": "application/json"}], "start": 1775691780231, "stop": 1775691780265}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/barcode", "status": "passed", "attachments": [{"name": "Request", "source": "7ba1c261-e38c-441c-9e3f-a9634482b550-attachment.json", "type": "application/json"}, {"name": "Response", "source": "e8a667a9-3197-4f94-acb3-0a6001e52890-attachment.json", "type": "application/json"}], "start": 1775691780266, "stop": 1775691780304}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/add-expiration-date", "status": "passed", "attachments": [{"name": "Request", "source": "9fa5b87a-c2e3-4392-9f3c-ed593ba540c0-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8ec74ba7-97f8-4e98-867f-667f5734d82f-attachment.json", "type": "application/json"}], "start": 1775691780305, "stop": 1775691780335}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/move-to-buffer", "status": "passed", "attachments": [{"name": "Request", "source": "692d9827-052e-437b-a563-8fbcda597c5f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "bb8213af-7833-4061-a42c-a661a5ffc8c1-attachment.json", "type": "application/json"}], "start": 1775691780336, "stop": 1775691780367}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/task/pick", "status": "passed", "attachments": [{"name": "Request", "source": "c1e246ad-8805-458c-9626-4e8c42129100-attachment.json", "type": "application/json"}, {"name": "Response", "source": "b68aa515-85f1-4bac-9777-5e94322bd47a-attachment.json", "type": "application/json"}], "start": 1775691780370, "stop": 1775691780452}, {"name": "Waiter function: wait_unloading_task", "status": "passed", "start": 1775691780453, "stop": 1775691780455}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/generate-barcodes", "status": "passed", "attachments": [{"name": "Request", "source": "8b091113-8074-4295-9d1a-aa0adc101732-attachment.json", "type": "application/json"}, {"name": "Response", "source": "31b3b29c-58e8-4750-a831-2b32c3301d67-attachment.json", "type": "application/json"}], "start": 1775691780455, "stop": 1775691780482}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item", "status": "passed", "attachments": [{"name": "Request", "source": "c2d8416f-16f9-4a2a-be3c-1a77cdb40fec-attachment.json", "type": "application/json"}, {"name": "Response", "source": "4154a326-dc5c-40b1-a9e2-02d85d6890a5-attachment.json", "type": "application/json"}], "start": 1775691780483, "stop": 1775691780517}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item/add-count", "status": "passed", "attachments": [{"name": "Request", "source": "5c7e6f58-28da-41e3-9cc2-8d373b3984f1-attachment.json", "type": "application/json"}, {"name": "Response", "source": "0a72ea70-c5cb-46b4-9ecb-021ecdf22be7-attachment.json", "type": "application/json"}], "start": 1775691780518, "stop": 1775691780552}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/barcode", "status": "passed", "attachments": [{"name": "Request", "source": "f15dc0e2-64ce-458f-b755-58572f90afd2-attachment.json", "type": "application/json"}, {"name": "Response", "source": "ec8a213b-5735-4878-8d2b-7bd3399049ba-attachment.json", "type": "application/json"}], "start": 1775691780553, "stop": 1775691780590}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/add-expiration-date", "status": "passed", "attachments": [{"name": "Request", "source": "3bda2134-5f21-4b0b-b23c-67cbe0f7fcca-attachment.json", "type": "application/json"}, {"name": "Response", "source": "3a36a944-d0ae-4e58-aba8-11fd01116c6e-attachment.json", "type": "application/json"}], "start": 1775691780590, "stop": 1775691780620}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/move-to-buffer", "status": "passed", "attachments": [{"name": "Request", "source": "5e738b8e-28eb-47ed-95d1-517787f66f12-attachment.json", "type": "application/json"}, {"name": "Response", "source": "268bfe9d-2ed8-4e6c-9af6-3cfffa244f2a-attachment.json", "type": "application/json"}], "start": 1775691780621, "stop": 1775691780650}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/task/pick", "status": "passed", "attachments": [{"name": "Request", "source": "d584e1c4-7e85-4a0a-bed9-473a5739aa32-attachment.json", "type": "application/json"}, {"name": "Response", "source": "a8a042e8-c103-4314-a9bf-08a0125d4927-attachment.json", "type": "application/json"}], "start": 1775691780653, "stop": 1775691780689}, {"name": "Waiter function: wait_unloading_task", "status": "passed", "start": 1775691780690, "stop": 1775691780692}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/generate-barcodes", "status": "passed", "attachments": [{"name": "Request", "source": "41cf5fec-5d44-4efa-b3d1-9f226e07fac4-attachment.json", "type": "application/json"}, {"name": "Response", "source": "08abe262-3a05-4cd3-9b70-e889e1d3860c-attachment.json", "type": "application/json"}], "start": 1775691780692, "stop": 1775691780717}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item", "status": "passed", "attachments": [{"name": "Request", "source": "9da12953-807e-4307-9133-e24a4c3d72f6-attachment.json", "type": "application/json"}, {"name": "Response", "source": "efaac892-7e3e-43b1-8022-151759e75bee-attachment.json", "type": "application/json"}], "start": 1775691780718, "stop": 1775691780749}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance-item/add-count", "status": "passed", "attachments": [{"name": "Request", "source": "009c01ba-d73a-4bb8-9eff-d70832e7202f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "581a3c9e-5639-41e6-8c95-ae168f78e053-attachment.json", "type": "application/json"}], "start": 1775691780750, "stop": 1775691780780}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/barcode", "status": "passed", "attachments": [{"name": "Request", "source": "e25249bc-62f6-4a20-906b-767ba5bd3e45-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c9078501-2f55-47f3-8313-49c3eff85e78-attachment.json", "type": "application/json"}], "start": 1775691780781, "stop": 1775691780834}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/add-expiration-date", "status": "passed", "attachments": [{"name": "Request", "source": "00478430-d812-4232-99e2-fd7c434c0eab-attachment.json", "type": "application/json"}, {"name": "Response", "source": "0051e222-f8db-496b-a3b1-6fad74e0c2ed-attachment.json", "type": "application/json"}], "start": 1775691780835, "stop": 1775691780867}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/move-to-buffer", "status": "passed", "attachments": [{"name": "Request", "source": "6dca3303-d5bd-4fe0-ab66-de05421bf946-attachment.json", "type": "application/json"}, {"name": "Response", "source": "abdaa496-03f8-49af-b2ae-7eccd6167394-attachment.json", "type": "application/json"}], "start": 1775691780868, "stop": 1775691780899}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/acceptance/finalize", "status": "passed", "attachments": [{"name": "Request", "source": "4d71f71d-b3c0-4b9d-8a8b-77e6ff38f422-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c08351e6-fb03-47f2-825f-772ee5343bf4-attachment.json", "type": "application/json"}], "start": 1775691780900, "stop": 1775691780945}, {"name": "Waiter function: wait_invoice", "status": "passed", "start": 1775691780945, "stop": 1775691780947}, {"name": "Waiter function: wait_placed_unloading_task", "status": "passed", "start": 1775691780948, "stop": 1775691780949}, {"name": "POST → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet", "status": "passed", "attachments": [{"name": "Request", "source": "03c2e3dc-0f48-456e-a991-7767849d6363-attachment.json", "type": "application/json"}, {"name": "Response", "source": "ef32f646-81f3-47e5-b2fc-ea480fffbf17-attachment.json", "type": "application/json"}], "start": 1775691780950, "stop": 1775691781050}, {"name": "Waiter function: wait_placed_unloading_task", "status": "passed", "start": 1775691781051, "stop": 1775691781053}, {"name": "Waiter function: wait_invoice", "status": "passed", "start": 1775691781053, "stop": 1775691781054}, {"name": "PUT → https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/attach-to-stock-cell-barcode", "status": "failed", "statusDetails": {"message": "AssertionError: 405 PUT https://dm-fmcg-be-facade-fe.k8s-review.dailymail-tech.uz/api/v1/pallet/attach-to-stock-cell-barcode: {\"message\":\"Error calling external service 405\",\"localizedMessage\":\"Ошибка вызова внешнего сервиса 405\"}, x-aer-trace-id: efe589e63e440869e77bfee647da570c\n", "trace": "  File \"/app/src/framework/common/api.py\", line 288, in request\n    cls._validator.validate_status_code(response, allowed_status_codes, method=method)\n  File \"/app/src/framework/common/api.py\", line 138, in validate_status_code\n    raise AssertionError(\n"}, "attachments": [{"name": "Request", "source": "f2b2ab66-15a9-44c6-83d1-720532cce04a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "17e07d38-b2e4-4d18-8d2f-2cbda5fc52de-attachment.json", "type": "application/json"}], "start": 1775691781057, "stop": 1775691781159}], "attachments": [{"name": "log", "source": "485c7be0-74f8-457c-bd41-f45bc002288f-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "params", "value": "{'task_pallet_flow_type': <AcceptanceTaskPalletFlowType.NEW: 'NEW'>}"}, {"name": "fmcg_warehouse_invoice", "value": "{'random_items': [FmcgRandomItem(items_count=4, barcode_count=1, quantity=9, sku_id=None, barcode='', is_bundle=False, bundle_quantity=1, has_mark=False, has_expiration_date=False)]}"}], "start": 1775691778292, "stop": 1775691781160, "uuid": "5c422d20-ac91-4a7e-9f1e-2e9cc87da60c", "historyId": "3b612f4f4de7d3836cecfc4804f28963", "testCaseId": "0be4445cf64a6c2a558dc5237cc25029", "fullName": "tests.fmcg.test_acceptance.test_invoice.TestFmcgAcceptanceInvoice#test_invoice_accept", "labels": [{"name": "tag", "value": "fmcg-flow-invoice"}, {"name": "tag", "value": "dm-fmcg-be-service-acceptance"}, {"name": "parentSuite", "value": "tests.fmcg.test_acceptance"}, {"name": "suite", "value": "test_invoice"}, {"name": "subSuite", "value": "TestFmcgAcceptanceInvoice"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-mjqemzgi"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.fmcg.test_acceptance.test_invoice"}], "titlePath": ["tests", "fmcg", "test_acceptance", "test_invoice.py", "TestFmcgAcceptanceInvoice"]}