{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160457 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 0x7ef68b679150>\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 0x7ef6881beb90>)\norder_type = <WMSOrderType.SELLER_RETURN: 'SELLER_RETURN'>\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 = 75605603406837\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 160457 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": "45c4fac2-5e9c-44f5-a9cd-f0e3a98d953d-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8dcce229-0de8-40e9-b354-491fc3b45fc4-attachment.json", "type": "application/json"}], "start": 1775605603420, "stop": 1775605603435}, {"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": "9776c84e-7256-440b-b6e3-cf43990f7918-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "b5f9de7e-5c8d-4f31-bf09-b61303e35370-attachment.json", "type": "application/json"}], "start": 1775605607775, "stop": 1775605607775}, {"name": "Response → 200, trace_id: 5b8ebbc251151d8f9e90d58a1fc24552", "status": "passed", "attachments": [{"name": "response.headers", "source": "fb96c5c2-24df-40fe-87c0-b09f65d39456-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "36e7fdc1-d9bf-4f70-b9d1-0c890b9f964a-attachment.json", "type": "application/json"}], "start": 1775605607775, "stop": 1775605607775}], "attachments": [{"name": "cURL", "source": "85f2d4b1-5c56-41e7-bb51-9b4279a00ab2-attachment.txt", "type": "text/plain"}], "start": 1775605607775, "stop": 1775605607775}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775605607779, "stop": 1775605607781}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "4fcd586d-8f77-4deb-8131-6c9cf52d3772-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "ced6ee0f-b669-4a3f-8407-54f301b1cc33-attachment.json", "type": "application/json"}], "start": 1775605607795, "stop": 1775605607796}, {"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": "cb993093-c09a-450c-9b57-155912df5333-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "7ed57b89-6574-4021-abf2-e2fedf7deba2-attachment.json", "type": "application/json"}], "start": 1775605607842, "stop": 1775605607842}, {"name": "Response → 200, trace_id: 2cc64778ab1cd802d9328e3ee4d12f96", "status": "passed", "attachments": [{"name": "response.headers", "source": "efa99c91-b5b1-4006-99e7-e346d572f0d5-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f359340e-c782-4706-973d-aa12cafe9df9-attachment.json", "type": "application/json"}], "start": 1775605607842, "stop": 1775605607842}], "attachments": [{"name": "cURL", "source": "b627f7ec-23a2-44d2-9df2-396bc4ec1e54-attachment.txt", "type": "text/plain"}], "start": 1775605607842, "stop": 1775605607842}, {"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": "6b8afef6-474f-4b11-87c9-03e876a5b7fd-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "65c59381-c1ce-4079-8524-8c4470a69b13-attachment.json", "type": "application/json"}], "start": 1775605607885, "stop": 1775605607885}, {"name": "Response → 200, trace_id: 566779cc21e7d70e93007bebf5502055", "status": "passed", "attachments": [{"name": "response.headers", "source": "97a86400-23bf-4630-8145-bbd1d3a1a3dc-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "8756ddfb-fbde-40ab-8869-0045f4676b06-attachment.json", "type": "application/json"}], "start": 1775605607885, "stop": 1775605607885}], "attachments": [{"name": "cURL", "source": "c80ae8a3-7e60-4c16-8c25-3679be202c20-attachment.txt", "type": "text/plain"}], "start": 1775605607885, "stop": 1775605607885}, {"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": "1ee1455e-8c68-488b-9532-baaeadee18cc-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "32dd9fe3-7513-4154-bc80-11e7670dd5fe-attachment.json", "type": "application/json"}], "start": 1775605607923, "stop": 1775605607923}, {"name": "Response → 200, trace_id: 4bfd054e91004f7c9ddd313480d52da4", "status": "passed", "attachments": [{"name": "response.headers", "source": "68899134-d364-4ea3-9850-6db9a7f00a22-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b3f3cf80-5d42-4152-a5b8-eeacbc8b74cf-attachment.json", "type": "application/json"}], "start": 1775605607923, "stop": 1775605607923}], "attachments": [{"name": "cURL", "source": "5bf0e7f2-3853-4db6-80c4-589f716f17c6-attachment.txt", "type": "text/plain"}], "start": 1775605607923, "stop": 1775605607923}], "attachments": [{"name": "log", "source": "354f8d32-ce72-4ee9-8b21-2d9b85ae61d3-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": "'SELLER_RETURN'"}], "start": 1775605603407, "stop": 1775605657084, "uuid": "9c2f6a22-4b7c-42f9-a084-5361647ebae7", "historyId": "cf3f51bac18cc3b6491375f7aa5c4fc0", "testCaseId": "7297e4c4e498267ed2c4effdf870348b", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm", "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-tf3sk45l"}, {"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"]}