{"name": "test_task_confirm_with_deficit[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160452 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 0x7eea81802b90>\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 0x7eea79698f50>)\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 = 75519208811068\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 160452 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": "44ef158c-e25b-4882-aa72-87f1dc6c88eb-attachment.json", "type": "application/json"}, {"name": "Response", "source": "05581036-c34a-44df-aa0e-5f6b5538dc8f-attachment.json", "type": "application/json"}], "start": 1775519208823, "stop": 1775519208838}, {"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": "e84580e7-3a50-4ef6-a5d4-6998520769e0-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "54bd1f02-4c26-4d97-869d-7b00d83f95e5-attachment.json", "type": "application/json"}], "start": 1775519213130, "stop": 1775519213130}, {"name": "Response → 200, trace_id: e59b0a227628ab8a64920952fc83a5fd", "status": "passed", "attachments": [{"name": "response.headers", "source": "d0088b64-0606-4b02-8717-6e393e81005f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "de4dc76a-1019-40b9-bc4a-3afa2ce95b47-attachment.json", "type": "application/json"}], "start": 1775519213130, "stop": 1775519213130}], "attachments": [{"name": "cURL", "source": "394cc749-3258-491d-a0ab-c221d0c795da-attachment.txt", "type": "text/plain"}], "start": 1775519213129, "stop": 1775519213130}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775519213133, "stop": 1775519213136}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "1e99717b-269b-4b3b-9848-2db7f6250cb0-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "fb8478f0-d657-4ab8-8018-f9b161147bff-attachment.json", "type": "application/json"}], "start": 1775519213150, "stop": 1775519213150}, {"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": "8ddea441-50e3-46ce-ae12-8b59ba1ba947-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "dd049984-01e8-4d84-8997-8710f1c99859-attachment.json", "type": "application/json"}], "start": 1775519213197, "stop": 1775519213197}, {"name": "Response → 200, trace_id: f190d352ba8c8d3740e8f79d75f78e62", "status": "passed", "attachments": [{"name": "response.headers", "source": "df4cd2f5-0fd1-45ae-9304-2e294627c5f1-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "028922af-d9b7-46ea-a02c-98873997d474-attachment.json", "type": "application/json"}], "start": 1775519213197, "stop": 1775519213198}], "attachments": [{"name": "cURL", "source": "52d1e14a-19ea-4f0e-9501-d6be6d9d6228-attachment.txt", "type": "text/plain"}], "start": 1775519213197, "stop": 1775519213198}, {"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": "a030bfe4-4508-4b2d-b2a6-123d1118f2ba-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "0289a602-992c-4892-a7bb-f0d39ddeed7c-attachment.json", "type": "application/json"}], "start": 1775519213243, "stop": 1775519213244}, {"name": "Response → 200, trace_id: df8fb22e3595a15f962488b40027cc01", "status": "passed", "attachments": [{"name": "response.headers", "source": "16e4a6ee-0136-457f-9434-e1d67aadd0cc-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2e822c5f-0662-4ad2-a031-71a9c0ede02a-attachment.json", "type": "application/json"}], "start": 1775519213244, "stop": 1775519213244}], "attachments": [{"name": "cURL", "source": "4e103abc-ebab-467f-9174-d223d24cf674-attachment.txt", "type": "text/plain"}], "start": 1775519213243, "stop": 1775519213244}, {"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": "09ffd398-32ca-4294-ad0c-0f5ca5a23c91-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "a9f15d8b-9649-4f2f-814d-55530c5d03c1-attachment.json", "type": "application/json"}], "start": 1775519213285, "stop": 1775519213286}, {"name": "Response → 200, trace_id: 55c2725f625f835eaf0fa79c1d7d9929", "status": "passed", "attachments": [{"name": "response.headers", "source": "9a7c5940-fab0-4b47-b103-e94e3cc1f65d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "3b7f2f29-13d9-4563-ba09-9fe86188edc2-attachment.json", "type": "application/json"}], "start": 1775519213286, "stop": 1775519213286}], "attachments": [{"name": "cURL", "source": "2f956132-745a-43cf-bff1-41c9da8bec10-attachment.txt", "type": "text/plain"}], "start": 1775519213285, "stop": 1775519213286}], "attachments": [{"name": "log", "source": "c481f6e5-d565-45e6-bd0f-ef6fc079b688-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": 1775519208811, "stop": 1775519262444, "uuid": "18bb42a0-2d76-4f24-9249-78665ef84bac", "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-f0qb0ahi"}, {"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"]}