{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160450 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 0x7eea81801210>\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 0x7eea7acb8750>)\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 = 75519097712689\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 160450 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": "6fc06367-07fa-4508-8aff-22dff72e5825-attachment.json", "type": "application/json"}, {"name": "Response", "source": "066206bd-c01a-4763-8448-f9752a0b1b81-attachment.json", "type": "application/json"}], "start": 1775519097728, "stop": 1775519097745}, {"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": "880d09fa-f96c-4d99-a5a7-d623406bd5e0-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "e9385ac9-ec90-46d6-b2d9-a20047c5b66a-attachment.json", "type": "application/json"}], "start": 1775519102975, "stop": 1775519102975}, {"name": "Response → 200, trace_id: 06c188af7418f2db75b982e42c7368f7", "status": "passed", "attachments": [{"name": "response.headers", "source": "f56e5ccc-5b1f-4a72-bbaf-1471be791295-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "5de9b3cd-5c69-4634-9835-f6b79db847a8-attachment.json", "type": "application/json"}], "start": 1775519102975, "stop": 1775519102975}], "attachments": [{"name": "cURL", "source": "b6c738b3-905f-4d0f-bde2-57a4c6150599-attachment.txt", "type": "text/plain"}], "start": 1775519102975, "stop": 1775519102975}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775519102978, "stop": 1775519102981}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "5d65239b-c1b1-482a-9274-2dc84549ba62-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "dad81887-84c3-4a92-b33b-b4d9a9fa95e6-attachment.json", "type": "application/json"}], "start": 1775519103161, "stop": 1775519103161}, {"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": "3815189b-dddc-4ee1-952d-064eb6b020ae-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "5024d24b-d9f9-4dc5-877c-8e7a91b58fcb-attachment.json", "type": "application/json"}], "start": 1775519103215, "stop": 1775519103215}, {"name": "Response → 200, trace_id: d1ff5097dc17b233795264bc5780580f", "status": "passed", "attachments": [{"name": "response.headers", "source": "c664592a-5089-497c-890c-10f04c2c5a45-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c6173a17-8cfa-468b-bb5d-14eaed614467-attachment.json", "type": "application/json"}], "start": 1775519103215, "stop": 1775519103216}], "attachments": [{"name": "cURL", "source": "5def5fc4-ba58-4ef1-89e3-65f1c62da249-attachment.txt", "type": "text/plain"}], "start": 1775519103215, "stop": 1775519103216}, {"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": "6bb392b3-4522-4e45-a79e-dd1e7cf6885e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "18500e24-f91d-420c-bd0c-97ad9a0ff157-attachment.json", "type": "application/json"}], "start": 1775519103269, "stop": 1775519103270}, {"name": "Response → 200, trace_id: 874adf97d50e39fbd8200bcd051bd9d7", "status": "passed", "attachments": [{"name": "response.headers", "source": "46287c66-310d-435b-807b-39898dc405b3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a689a8d9-1350-4798-be06-4e4cb88eeecb-attachment.json", "type": "application/json"}], "start": 1775519103270, "stop": 1775519103270}], "attachments": [{"name": "cURL", "source": "67dcc249-0449-4ced-a04d-8e303785d7d1-attachment.txt", "type": "text/plain"}], "start": 1775519103269, "stop": 1775519103270}, {"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": "1c47f7d0-04a5-46e2-a890-aec93af1ddb2-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "92607e8d-46c1-4737-a688-e2354e7e2ee1-attachment.json", "type": "application/json"}], "start": 1775519103312, "stop": 1775519103312}, {"name": "Response → 200, trace_id: af53976dab8c03ff0dcc5a126a578185", "status": "passed", "attachments": [{"name": "response.headers", "source": "9230377d-8772-4512-82c6-87006f9ab497-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "470bbc59-529b-45d0-b00a-922ad49078e5-attachment.json", "type": "application/json"}], "start": 1775519103312, "stop": 1775519103313}], "attachments": [{"name": "cURL", "source": "c38a4f47-21c3-4288-8196-d99e29c474e4-attachment.txt", "type": "text/plain"}], "start": 1775519103312, "stop": 1775519103313}], "attachments": [{"name": "log", "source": "bce92c82-586e-4646-acc8-aaf930a40048-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": 1775519097713, "stop": 1775519152475, "uuid": "5c9decb9-8269-4b66-b6a5-a99c93275c43", "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-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"]}