{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160433 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 0x70d884d30390>\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 0x70d87fbedc90>)\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 = 75411474115732\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 160433 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": "20206286-8c08-4190-b6e8-50f1e2cdce6c-attachment.json", "type": "application/json"}, {"name": "Response", "source": "9014733e-ade7-4a70-a4cd-6edadafc5674-attachment.json", "type": "application/json"}], "start": 1775411474128, "stop": 1775411474144}, {"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": "f2b382ca-dd2d-4dab-9eee-0329e0d8ddb7-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "fb83c092-8de0-4c66-85ad-7ed1387afdd7-attachment.json", "type": "application/json"}], "start": 1775411478370, "stop": 1775411478370}, {"name": "Response → 200, trace_id: a1a3baa46cc0e2c45920e893ae820da0", "status": "passed", "attachments": [{"name": "response.headers", "source": "8fa0f98c-4f38-41d3-84b6-ca77cffb2ad0-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0d6beafe-6b7d-4777-856b-5b5ef119537c-attachment.json", "type": "application/json"}], "start": 1775411478370, "stop": 1775411478370}], "attachments": [{"name": "cURL", "source": "5dd1d6dc-625c-487d-bcce-c5e86ac2af01-attachment.txt", "type": "text/plain"}], "start": 1775411478370, "stop": 1775411478370}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775411478374, "stop": 1775411478376}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "b75e4cbc-65ed-40cd-8f53-b21691fdefe5-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "464be59c-7147-4baa-b51f-62f1391d882a-attachment.json", "type": "application/json"}], "start": 1775411478389, "stop": 1775411478390}, {"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": "f837cafb-ee2d-43ab-9948-e1db50023bee-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "fed1cf59-8721-43d8-a75a-314d22830215-attachment.json", "type": "application/json"}], "start": 1775411478437, "stop": 1775411478437}, {"name": "Response → 200, trace_id: 5c58afb8cda0094b4231fca837f82f2d", "status": "passed", "attachments": [{"name": "response.headers", "source": "62d73272-9c07-4668-8bd2-f8fefc993569-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e8fb61d1-f345-41f8-b2d7-51bc38ce1d4b-attachment.json", "type": "application/json"}], "start": 1775411478437, "stop": 1775411478437}], "attachments": [{"name": "cURL", "source": "05f36b16-4865-4288-9c9a-d0a6f7398343-attachment.txt", "type": "text/plain"}], "start": 1775411478437, "stop": 1775411478438}, {"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": "f40de2e5-4490-4845-bb08-5ac9e1d7843a-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "23a2b93f-2d64-4521-a82f-0f5de4be7458-attachment.json", "type": "application/json"}], "start": 1775411478480, "stop": 1775411478480}, {"name": "Response → 200, trace_id: acbf99a58d772562a86e90d3b43c4aa2", "status": "passed", "attachments": [{"name": "response.headers", "source": "b23b1a69-e48c-4804-81d7-c0758f39dbf7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ed01f464-c0c6-4680-a98b-53cf7cb4c049-attachment.json", "type": "application/json"}], "start": 1775411478480, "stop": 1775411478480}], "attachments": [{"name": "cURL", "source": "779d1a6d-c919-4f21-ab8d-3c8fbd8416b1-attachment.txt", "type": "text/plain"}], "start": 1775411478480, "stop": 1775411478480}, {"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": "13c55425-2c0e-4924-b24f-ca92e35792af-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "a536512e-5f44-47cf-a4ec-b40a4ccfc228-attachment.json", "type": "application/json"}], "start": 1775411478520, "stop": 1775411478520}, {"name": "Response → 200, trace_id: def96a42837603ac5501731f41232d01", "status": "passed", "attachments": [{"name": "response.headers", "source": "af261c76-e26f-469d-a83b-ff3bd6eb8225-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c8e4947d-f5f6-4e7d-a198-eb18f2c096a2-attachment.json", "type": "application/json"}], "start": 1775411478520, "stop": 1775411478521}], "attachments": [{"name": "cURL", "source": "21f27c8f-a5ec-4edb-b8da-d8996e7280a1-attachment.txt", "type": "text/plain"}], "start": 1775411478520, "stop": 1775411478521}], "attachments": [{"name": "log", "source": "fac9a940-98a2-4943-b483-f25a2ff3b9ab-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": 1775411474116, "stop": 1775411527673, "uuid": "3011430b-ae39-401f-83aa-42102135cc98", "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-08kw48s6"}, {"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"]}