{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160462 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 0x7198cbd7d690>\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 0x7198c8977310>)\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(self, wms_warehouse_stocks: DTO, order_type):\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.warehouse.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:42: \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 = 75691961833233\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 160462 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": "80d77d27-dd3b-4b30-9bc9-81a7aca5b0c9-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c86a2508-1f08-4d00-8e36-f403c234c4c9-attachment.json", "type": "application/json"}], "start": 1775691961849, "stop": 1775691961865}, {"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": "a37e1497-d520-4dd2-8fd0-8f6cbae6ed1b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6cfe0ae9-1246-460c-ad0d-6a1d391ceefe-attachment.json", "type": "application/json"}], "start": 1775691977157, "stop": 1775691977158}, {"name": "Response → 200, trace_id: 948417296f98633e65c3f6d223647521", "status": "passed", "attachments": [{"name": "response.headers", "source": "7ca01117-c462-40d1-841c-bba8938e0655-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2b25668c-553f-4191-b2f3-58a16582bd8c-attachment.json", "type": "application/json"}], "start": 1775691977158, "stop": 1775691977158}], "attachments": [{"name": "cURL", "source": "0548806d-9a0d-4774-b917-29ff50e11a2c-attachment.txt", "type": "text/plain"}], "start": 1775691977157, "stop": 1775691977158}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775691977161, "stop": 1775691977164}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "5443a3c2-96f6-40aa-b753-6127909a1d85-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "540e2fe1-cc93-44ef-bbe8-11609eaf3f45-attachment.json", "type": "application/json"}], "start": 1775691977343, "stop": 1775691977344}, {"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": "2d8e66fe-6b34-41f9-bab0-d2895726ff2b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "4381d029-99c1-4081-98c9-7a84b9c36440-attachment.json", "type": "application/json"}], "start": 1775691977391, "stop": 1775691977392}, {"name": "Response → 200, trace_id: 9a086b056881f4399e9209a9c765fac5", "status": "passed", "attachments": [{"name": "response.headers", "source": "b0a4098b-cb82-4686-85d3-c3b867399c46-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "13af3249-023d-4b5f-b79f-6dc340b84380-attachment.json", "type": "application/json"}], "start": 1775691977392, "stop": 1775691977392}], "attachments": [{"name": "cURL", "source": "bd3c8bf3-a7ce-4d54-a6b6-8cacaefead04-attachment.txt", "type": "text/plain"}], "start": 1775691977391, "stop": 1775691977392}, {"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": "5aed952c-ba1e-4731-be65-220568a64d5d-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6ea312d4-2593-4980-bb86-db2c0927c0d4-attachment.json", "type": "application/json"}], "start": 1775691977437, "stop": 1775691977437}, {"name": "Response → 200, trace_id: f19fc8f4b33745d5ea5a1b404946ff1b", "status": "passed", "attachments": [{"name": "response.headers", "source": "4d31ac4c-154d-4678-be2e-203bd6570ddc-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f942e345-af6c-42d0-b8a3-53fe72a5ee3b-attachment.json", "type": "application/json"}], "start": 1775691977437, "stop": 1775691977437}], "attachments": [{"name": "cURL", "source": "0b723c65-934f-4d8a-a9fa-ad4db46355bc-attachment.txt", "type": "text/plain"}], "start": 1775691977437, "stop": 1775691977437}, {"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": "a7fc65bc-6ea1-4c10-a6f8-111d3a753faf-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "bd877d88-350b-43d1-b487-566001d0e5ed-attachment.json", "type": "application/json"}], "start": 1775691977478, "stop": 1775691977478}, {"name": "Response → 200, trace_id: 1bbf43661ff3259b8946abb0be547b1a", "status": "passed", "attachments": [{"name": "response.headers", "source": "4424ecc6-ca48-4528-b91c-22fadd151e1f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "dba2ab0e-a39a-4793-b9a1-a9951c6a1ba9-attachment.json", "type": "application/json"}], "start": 1775691977478, "stop": 1775691977478}], "attachments": [{"name": "cURL", "source": "3c1e2545-f5d1-4f0d-9932-5f190d2e0819-attachment.txt", "type": "text/plain"}], "start": 1775691977478, "stop": 1775691977478}], "attachments": [{"name": "log", "source": "17b40921-4aad-4ff0-b27f-f108a8493074-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": 1775691961833, "stop": 1775692026638, "uuid": "837e0179-e75b-44f6-be80-a7e353eac1fe", "historyId": "6f6c54d43c7e7de23bc48987bc01d04a", "testCaseId": "7297e4c4e498267ed2c4effdf870348b", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm", "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"]}