{"name": "test_task_confirm_with_deficit[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160434 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 0x70d884d31a90>\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 0x70d87d386c90>)\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 = 75411528911817\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 160434 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": "e354f738-29ed-470c-ad36-1b69ce744d2f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "36d9a806-218e-43fc-a69d-310f4d2cd2d3-attachment.json", "type": "application/json"}], "start": 1775411528923, "stop": 1775411528938}, {"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": "6cfe49c7-a01b-4bdb-8a55-104d3791ad83-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "3dac05bf-ff3b-4010-a08c-fffb7bfe3286-attachment.json", "type": "application/json"}], "start": 1775411533211, "stop": 1775411533212}, {"name": "Response → 200, trace_id: 271bc5de6675435bbbb11d1c480fa33a", "status": "passed", "attachments": [{"name": "response.headers", "source": "36ff763b-bbd6-438a-9b11-7ae66eea6827-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fdb084ea-3a66-4324-a7ff-ea87e85dd577-attachment.json", "type": "application/json"}], "start": 1775411533212, "stop": 1775411533212}], "attachments": [{"name": "cURL", "source": "bfeb0558-7987-4469-a2f2-0e5006d1433c-attachment.txt", "type": "text/plain"}], "start": 1775411533211, "stop": 1775411533212}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775411533215, "stop": 1775411533217}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "3f7966ab-ef41-40e1-bc89-577d00e00839-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "e7196358-1e68-4c4f-a579-67f5f3c91f55-attachment.json", "type": "application/json"}], "start": 1775411533231, "stop": 1775411533232}, {"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": "765d1aa4-db36-4fca-998b-473c4dfdf884-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "62d09fd6-a8e9-43d6-9da3-74cbe646b32f-attachment.json", "type": "application/json"}], "start": 1775411533282, "stop": 1775411533282}, {"name": "Response → 200, trace_id: 91919227c8fc35d5c008bdbd72131e8c", "status": "passed", "attachments": [{"name": "response.headers", "source": "9784cd76-8086-4028-97ce-8b7100428264-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "8eb0d9cb-1a9e-486b-a169-0d7a8bb8f718-attachment.json", "type": "application/json"}], "start": 1775411533282, "stop": 1775411533282}], "attachments": [{"name": "cURL", "source": "b39b31c2-68a1-4535-854c-8e4fdccfc112-attachment.txt", "type": "text/plain"}], "start": 1775411533282, "stop": 1775411533282}, {"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": "c510972c-fba9-44ff-986c-b1c1d142157b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8d43c592-406e-4877-899e-c0ffdccce858-attachment.json", "type": "application/json"}], "start": 1775411533330, "stop": 1775411533331}, {"name": "Response → 200, trace_id: 5566d0fbea970aa1f93ad0a650746007", "status": "passed", "attachments": [{"name": "response.headers", "source": "d1d9334e-f1bf-4b17-8a3b-7f37e2b64baa-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d6acf19d-5327-4dc3-9b20-0c9805b4fc15-attachment.json", "type": "application/json"}], "start": 1775411533331, "stop": 1775411533331}], "attachments": [{"name": "cURL", "source": "e96e66f7-ea1c-4736-ac6f-2d44a989de33-attachment.txt", "type": "text/plain"}], "start": 1775411533330, "stop": 1775411533331}, {"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": "665894b4-05a3-486e-b266-817cee20d473-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "8f07c798-d794-4883-adb4-645119593cce-attachment.json", "type": "application/json"}], "start": 1775411533374, "stop": 1775411533375}, {"name": "Response → 200, trace_id: 6262de570b602b8d4ecb215013814500", "status": "passed", "attachments": [{"name": "response.headers", "source": "a6ee03f5-4001-44da-9054-8d94da97d561-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6b00a082-e2d7-4dc4-a00c-daccbdf31c92-attachment.json", "type": "application/json"}], "start": 1775411533375, "stop": 1775411533375}], "attachments": [{"name": "cURL", "source": "49725afe-8bcc-411f-ade4-aef996b2698e-attachment.txt", "type": "text/plain"}], "start": 1775411533374, "stop": 1775411533375}], "attachments": [{"name": "log", "source": "e3c2e71c-66ce-42ae-9ef5-648da3589b62-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": 1775411528912, "stop": 1775411582529, "uuid": "e4773faa-d2ac-404a-9d1d-382bdad2a921", "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 status change. Topic wms_be_seller_return_status_change"}, {"name": "feature", "value": "Task picking info. Topic wms_be_seller_return_picking_info"}, {"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-08kw48s6"}, {"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"]}