{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160469 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 0x7e26e16f9690>\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 0x7e26dbb0b350>)\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 = 75778370652694\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 160469 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": "7229bf23-c467-4a67-97aa-fe88cb73c585-attachment.json", "type": "application/json"}, {"name": "Response", "source": "bbcda7fa-8990-4ba8-a15a-f8b075bf6bf4-attachment.json", "type": "application/json"}], "start": 1775778370664, "stop": 1775778370679}, {"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": "457e84c3-9712-454a-be19-f5a2ed68c299-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "e8617fa4-2aff-42f9-ae14-e5eec6ed5fdf-attachment.json", "type": "application/json"}], "start": 1775778375210, "stop": 1775778375211}, {"name": "Response → 200, trace_id: 4f08f1a8e7d182a3bd2d3ca7c33744d6", "status": "passed", "attachments": [{"name": "response.headers", "source": "de1b4f71-6f8c-4eb2-abff-37d66f678f01-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7738e087-17cd-468b-8845-cd04d9228151-attachment.json", "type": "application/json"}], "start": 1775778375211, "stop": 1775778375211}], "attachments": [{"name": "cURL", "source": "cac8a404-4663-4554-89ee-0cff2222efea-attachment.txt", "type": "text/plain"}], "start": 1775778375210, "stop": 1775778375211}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775778375215, "stop": 1775778375217}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "b881d4c5-68e6-4c2d-bfae-84771dbf320d-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "48d7e2bb-b566-40ae-aadc-b28654014298-attachment.json", "type": "application/json"}], "start": 1775778375232, "stop": 1775778375232}, {"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": "6d7beee2-f332-419c-b39c-d9150bfd01ef-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "496d4688-29b0-4de6-a809-abab76617ee6-attachment.json", "type": "application/json"}], "start": 1775778375276, "stop": 1775778375276}, {"name": "Response → 200, trace_id: 7cdcd66f1a7987a5ef7414895decd506", "status": "passed", "attachments": [{"name": "response.headers", "source": "48b2098c-5480-419f-9308-33d6e63df9eb-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7b201aa0-59c0-43af-94c6-ac5c70ca6ec2-attachment.json", "type": "application/json"}], "start": 1775778375276, "stop": 1775778375276}], "attachments": [{"name": "cURL", "source": "4c2fa6e5-4c40-4eea-8c37-58560181d4a3-attachment.txt", "type": "text/plain"}], "start": 1775778375276, "stop": 1775778375277}, {"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": "a270daa8-a7ac-4702-bec4-a0e85fa86364-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6aa0659b-1168-4b00-9f22-2643d668c4a2-attachment.json", "type": "application/json"}], "start": 1775778375323, "stop": 1775778375324}, {"name": "Response → 200, trace_id: e3920595348f0fcf3a16de8de81a3688", "status": "passed", "attachments": [{"name": "response.headers", "source": "c4c0c132-e35f-4ad7-a8f7-c4b646f21d89-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "02b6be2c-cc72-4a18-94de-60e5ddd0e152-attachment.json", "type": "application/json"}], "start": 1775778375324, "stop": 1775778375324}], "attachments": [{"name": "cURL", "source": "d7294616-e30f-4b22-a6bd-69d852f635db-attachment.txt", "type": "text/plain"}], "start": 1775778375323, "stop": 1775778375324}, {"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": "7b66ad06-41b7-4721-9e5f-f4a977d956f2-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "ac04e7d8-3410-4eae-b12a-047289f0600f-attachment.json", "type": "application/json"}], "start": 1775778375364, "stop": 1775778375365}, {"name": "Response → 200, trace_id: 4c0831a3c7a79dc6a8bf071bcfd2ea11", "status": "passed", "attachments": [{"name": "response.headers", "source": "be7827ab-b245-4d70-b3f2-b3ea7f1e50c6-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e4923de3-f5f6-44f6-bd8b-8ce9fd19dfab-attachment.json", "type": "application/json"}], "start": 1775778375365, "stop": 1775778375365}], "attachments": [{"name": "cURL", "source": "33b3412d-202f-4381-be90-b1fa9d1f04e4-attachment.txt", "type": "text/plain"}], "start": 1775778375364, "stop": 1775778375365}], "attachments": [{"name": "log", "source": "057f1f90-f00b-4469-8c19-b0956a625ffa-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": 1775778370653, "stop": 1775778424524, "uuid": "c4a066ec-14c2-468e-8780-d26fdeebd770", "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-p2vydqzi"}, {"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"]}