{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160427 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 0x7fb69556a090>\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 0x7fb68fbaaa50>)\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 = 75346818411311\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 160427 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": "cf93d125-f45e-4761-8001-6d0216972a3a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "83f6381f-9046-4368-ab89-6987bf554b93-attachment.json", "type": "application/json"}], "start": 1775346818423, "stop": 1775346818442}, {"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": "bd530fd3-41bc-4c59-8105-d45ba5a4260c-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "3d69c309-ef31-41a9-926c-eddd12b752ed-attachment.json", "type": "application/json"}], "start": 1775346822700, "stop": 1775346822701}, {"name": "Response → 200, trace_id: 03efde6b126b2461ae73afa39c444cda", "status": "passed", "attachments": [{"name": "response.headers", "source": "f9c78f80-a1b3-4c32-b02a-eee9f06d49cc-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2b2d194b-8e1b-4f5c-9248-b47919329bfa-attachment.json", "type": "application/json"}], "start": 1775346822701, "stop": 1775346822701}], "attachments": [{"name": "cURL", "source": "3226becc-31c4-4370-8eec-bb65686a43f6-attachment.txt", "type": "text/plain"}], "start": 1775346822700, "stop": 1775346822701}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775346822704, "stop": 1775346822706}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "9f9e924c-c719-4cf6-a448-1b72e3a208c1-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "bafc3ce3-7cc4-4536-8d86-0be7c658fc3f-attachment.json", "type": "application/json"}], "start": 1775346822720, "stop": 1775346822720}, {"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": "d85d146b-2b4b-49e9-af8b-a8bb90d94827-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8e1c6638-9a88-4506-970e-837624b55426-attachment.json", "type": "application/json"}], "start": 1775346822766, "stop": 1775346822766}, {"name": "Response → 200, trace_id: fdb8644688651758fae9c345312e0d06", "status": "passed", "attachments": [{"name": "response.headers", "source": "dd0c3576-1484-41cb-81e5-93af7c9f1b8b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7a89f23d-5e85-429f-9627-8c78a9d0afb7-attachment.json", "type": "application/json"}], "start": 1775346822766, "stop": 1775346822766}], "attachments": [{"name": "cURL", "source": "92c7b99a-3791-4cbe-8ce0-9ae7a2792886-attachment.txt", "type": "text/plain"}], "start": 1775346822766, "stop": 1775346822766}, {"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": "fe76c324-eb3a-4197-92ec-aede5d6adbd8-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "fa8e0204-8dc5-4891-9e64-34e2bc4873f7-attachment.json", "type": "application/json"}], "start": 1775346822809, "stop": 1775346822810}, {"name": "Response → 200, trace_id: 207ae538c46d7e5d0de0ea4332551fd4", "status": "passed", "attachments": [{"name": "response.headers", "source": "24c2f19d-7700-4f70-9d45-1f271999ea04-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ee29e6d7-8ac1-4f00-b1ee-40a4aac7e09f-attachment.json", "type": "application/json"}], "start": 1775346822810, "stop": 1775346822810}], "attachments": [{"name": "cURL", "source": "9a197e3f-276f-4353-98a7-09855d38fe79-attachment.txt", "type": "text/plain"}], "start": 1775346822809, "stop": 1775346822810}, {"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": "1b05db80-ba12-4510-a89d-af1928a7af95-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "7dee8c99-d2d4-4199-8524-508553f95fff-attachment.json", "type": "application/json"}], "start": 1775346822850, "stop": 1775346822850}, {"name": "Response → 200, trace_id: 823adb0f190a75436980fbf6657b1d46", "status": "passed", "attachments": [{"name": "response.headers", "source": "7d54a5f1-f217-4699-a1bf-2f0fbf6cff77-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6db2ede3-90e9-438f-9a56-8f1921c8d0f4-attachment.json", "type": "application/json"}], "start": 1775346822850, "stop": 1775346822851}], "attachments": [{"name": "cURL", "source": "36ac07da-3c1e-47fe-ae43-03a543823c5c-attachment.txt", "type": "text/plain"}], "start": 1775346822850, "stop": 1775346822851}], "attachments": [{"name": "log", "source": "5d859134-3bdf-41ec-8378-646be15207a7-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=<DeliveryLastMile.TANAIS: 'TANAIS'>, city_id=<DeliveryCityId.ALIEXPRESS_UZ: 11>, delivery_point_id=<DeliveryPointId.TANAIS: 13>, last_mile_id=<DeliveryLastMileId.TANAIS: 13>, first_mile_id=<DeliveryFirstMileId.Uzbekistan: 12>, assembly_group_id=<AssemblyGroupId.TANAIS: 13>, order_source=<OrderSource.GLOBAL: 'GLOBAL'>, provider_name=<DeliveryLastMile.TANAIS: 'TANAIS'>), 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": 1775346818411, "stop": 1775346872007, "uuid": "4e8b9d4f-c9e9-4222-96d3-263e77d80f71", "historyId": "4282700904f24bc84f359996ae86dbb7", "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-gid8mt59"}, {"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"]}