{"name": "test_task_confirm_with_deficit[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160464 in wrong status: CREATED\nassert 'CREATED' == 'ASSEMBLED'\n  \n  - ASSEMBLED\n  + CREATED", "trace": "self = <tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask object at 0x7198cbd7f010>\nwms_warehouse_stocks = WMSProviderWarehouseStockDTO(warehouse=WMSWarehouse(id=1693627, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, ff...=None), provider=None, stocks=<src.framework.wms.builders.availability.stock.WMSStockBuilder object at 0x7198bbbd3c50>)\norder_type = <WMSOrderType.B2B: 'B2B'>\n\n    @allure.feature(f\"Task status change. Topic {KafkaTopics.wms_be_seller_return_status_change}\")\n    @allure.feature(f\"Task picking info. Topic {KafkaTopics.wms_be_seller_return_picking_info}\")\n    @pytest.mark.parametrize(\"order_type\", [WMSOrderType.B2B, WMSOrderType.SELLER_RETURN])\n    def test_task_confirm_with_deficit(self, wms_warehouse_stocks: DTO, order_type):\n        for item in wms_warehouse_stocks.stocks.items:\n            item.qty += 10\n        (\n            WMSOutboundB2BBuilder(\n                warehouse=wms_warehouse_stocks.warehouse,\n                order_type=order_type,\n                headers=wms_warehouse_stocks.stocks.headers,\n            )\n            .set_items(wms_warehouse_stocks.stocks.items)\n            .set_return_gate(free_cells_count=len(wms_warehouse_stocks.stocks.items))\n            .create_wms_b2b_task()\n            .check_wms_b2b_task()\n            .create_assembly_wave(wave_size=1)\n>           .outbound_picking()\n             ^^^^^^^^^^^^^^^^^^\n            .clear_worker_tasks(user=wms_warehouse_stocks.stocks.user)\n            .return_cell_placing()\n            .bind_to_return_gate()\n            .workflow_stage_to_pallets_task_create()\n            .pallet_placing()\n            .workflow_stage_to_gate_task_create()\n            .pallet_moving()\n            .workflow_stage_to_car_task_create()\n            .load_into_car()\n            .confirm_task()\n        )\n\ntests/wms/test_b2b_seller_return/test_b2b_task.py:72: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/framework/wms/builders/outbound_b2b.py:212: in outbound_picking\n    wait_task_items_by_task_id(task_id=self.data.task_id, status=B2BSellerReturnTaskItemStatus.ASSEMBLED)\n/usr/local/lib/python3.11/site-packages/retrying.py:55: in wrapped_f\n    return Retrying(*dargs, **dkw).call(f, *args, **kw)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\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                      ^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ntask_id = 75692083512891\nstatus = <B2BSellerReturnTaskItemStatus.ASSEMBLED: 'ASSEMBLED'>\n\n    @retry(stop_max_attempt_number=5, wait_fixed=1000)\n    def wait_task_items_by_task_id(task_id: int = None, status: B2BSellerReturnTaskItemStatus = None):\n        items = B2BSellerReturnQueries().get_task_items_by_task(task_id=task_id)\n        for item in items:\n            if status is not None:\n>               assert item.status == status.name, f\"task item {item.id} in wrong status: {item.status}\"\nE               AssertionError: task item 160464 in wrong status: CREATED\nE               assert 'CREATED' == 'ASSEMBLED'\nE                 \nE                 - ASSEMBLED\nE                 + CREATED\n\nsrc/framework/wms/validation/waiters/b2b_seller_return/task_item.py:12: AssertionError"}, "steps": [{"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/ff/publish/invoice/seller-return", "status": "passed", "attachments": [{"name": "Request", "source": "455def70-0a2d-485b-ac0e-f1b24e5cc971-attachment.json", "type": "application/json"}, {"name": "Response", "source": "b4021abf-937c-43f8-ac4b-8f6d864d9d1b-attachment.json", "type": "application/json"}], "start": 1775692083524, "stop": 1775692083540}, {"name": "POST → https://dm-wms-be-service-b2b.k8s-review.dailymail-tech.uz/api/v1/b2b/waves/create", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "6c3f648f-51ed-4793-b74e-f727992d082e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a430685a-3410-4ca2-99f4-3cbbbed06170-attachment.json", "type": "application/json"}], "start": 1775692088181, "stop": 1775692088181}, {"name": "Response → 200, trace_id: ce9f2e6d7d2f3689b2f57e61038274ea", "status": "passed", "attachments": [{"name": "response.headers", "source": "0f2bee4f-6c51-45f8-bd45-635d6c9da436-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "9c0305bc-6a72-45af-b552-60d6467096c2-attachment.json", "type": "application/json"}], "start": 1775692088181, "stop": 1775692088181}], "attachments": [{"name": "cURL", "source": "c0d12e1b-27b7-4768-9f7d-70ab2d31acce-attachment.txt", "type": "text/plain"}], "start": 1775692088181, "stop": 1775692088181}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775692088185, "stop": 1775692088187}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "f829c08c-c7f6-455b-b962-3b8a0e894eea-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "c3eb8bbb-96ba-4070-b375-603ad45127ec-attachment.json", "type": "application/json"}], "start": 1775692088205, "stop": 1775692088205}, {"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/api/v1/account/set-worker-location", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "ad20869f-a38a-49a6-ba07-6f0dcdbdcff4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "989fe7f9-2039-4ef1-954a-1feb4d434802-attachment.json", "type": "application/json"}], "start": 1775692088254, "stop": 1775692088254}, {"name": "Response → 200, trace_id: e19c165c7f060d90067e3585a01566c8", "status": "passed", "attachments": [{"name": "response.headers", "source": "c30d67a5-0c09-434d-8760-379996406cbf-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fefb841f-036c-4dd1-9c73-1924a70d1844-attachment.json", "type": "application/json"}], "start": 1775692088254, "stop": 1775692088254}], "attachments": [{"name": "cURL", "source": "7d97ddd2-4d5d-4aba-a649-6ff3d6c965ee-attachment.txt", "type": "text/plain"}], "start": 1775692088254, "stop": 1775692088254}, {"name": "POST → https://dm-wms-be-service-assembly.k8s-review.dailymail-tech.uz/picking/task-for-wave", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "280c8efd-2b25-4848-a985-f0d55d92ebc4-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "89085f83-0165-4b25-b3ca-36da4a142ebf-attachment.json", "type": "application/json"}], "start": 1775692088299, "stop": 1775692088299}, {"name": "Response → 200, trace_id: b937662768c5198f5368b6a9a1a5a160", "status": "passed", "attachments": [{"name": "response.headers", "source": "2e336553-aeeb-4bbe-957f-8f6b86a34c16-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d63d7c8d-32ff-4115-ab3a-811d818d7323-attachment.json", "type": "application/json"}], "start": 1775692088300, "stop": 1775692088300}], "attachments": [{"name": "cURL", "source": "19295ec5-aeb3-4ddb-8d28-62da46eb2554-attachment.txt", "type": "text/plain"}], "start": 1775692088299, "stop": 1775692088300}, {"name": "GET → https://dm-wms-be-service-assembly.k8s-review.dailymail-tech.uz/picking/task", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "689bca44-7de0-4620-a3df-31252377e0ac-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "ae0acf35-bca0-45a5-8c98-ee7961f6070c-attachment.json", "type": "application/json"}], "start": 1775692088341, "stop": 1775692088341}, {"name": "Response → 200, trace_id: a134f60e643209f0029812f3917c6732", "status": "passed", "attachments": [{"name": "response.headers", "source": "06abf6ec-1b6f-4d34-ae8c-f197b6a2cb56-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "51d6e1da-9463-4518-a9c3-99d856897f11-attachment.json", "type": "application/json"}], "start": 1775692088341, "stop": 1775692088342}], "attachments": [{"name": "cURL", "source": "cf1eaf7a-e0a5-4304-83fa-1a2da42356b0-attachment.txt", "type": "text/plain"}], "start": 1775692088341, "stop": 1775692088342}], "attachments": [{"name": "log", "source": "164ff659-4ebb-425e-bff4-aa373f2c2854-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "wms_warehouses", "value": "WMSWarehouse(id=1693627, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, ff_id='WH_TASHKENT', hub_last_mile_id=0, providers=[WMSProvider(last_mile='YaMarket', city_id=<DeliveryCityId.ALIEXPRESS_UZ: 11>, delivery_point_id=<DeliveryPointId.ALIEXPRESS_UZ: 12>, last_mile_id=<DeliveryLastMileId.ALIEXPRESS_UZ: 12>, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, assembly_group_id=<AssemblyGroupId.ALIEXPRESS_UZ: 12>, order_source=<OrderSource.YaMarket: 'YaMarket'>, provider_name='YaMarket')], name='Uzbekistan', description='Бонд Узбекистан', use_datamatrix=False, user=WMSAccount(wms_id=33349, phone='3335000010', role_wms_id=23, zone_id=None, patronymic=None, last_name='', password='1234', first_name='', token='', refresh_token=''), storage_cell=<StorageCells.MA1_1_1_01: 'MA1-1-1-01'>, defected_cell=<DefectedCells.BR_01_01_1_05: 'BR-01-01-1-05'>, overage_cell=<OverageCells.IZ_1_01_01_1_05: 'IZ-1-01-01-1-05'>, weighing_cell=<WeighingCells.WT_1_11_1: 'WT-1-01-1'>, packing_table=<PackingTable.UP_AUTOTEST_01: 'UP-AUTOTEST-01'>, packing_zone_id='', qa_zone=<WMSZoneIds.QA_UZ_ZONE: 31>, email=None, phone=None)"}, {"name": "order_type", "value": "'B2B'"}], "start": 1775692083513, "stop": 1775692137501, "uuid": "85e65ad9-af5b-4e15-9b34-e04aa7272d05", "historyId": "d76369ddd5489d74f8eaeda23aac93c9", "testCaseId": "5379fbae3aca09418083203f4b169063", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm_with_deficit", "labels": [{"name": "feature", "value": "Task picking info. Topic wms_be_seller_return_picking_info"}, {"name": "feature", "value": "Task status change. Topic wms_be_seller_return_status_change"}, {"name": "tag", "value": "dm-wms-be-service-b2b"}, {"name": "parentSuite", "value": "tests.wms.test_b2b_seller_return"}, {"name": "suite", "value": "test_b2b_task"}, {"name": "subSuite", "value": "TestB2BTask"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-5-zefpifhd"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.wms.test_b2b_seller_return.test_b2b_task"}], "titlePath": ["tests", "wms", "test_b2b_seller_return", "test_b2b_task.py", "TestB2BTask"]}