{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160451 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 0x7eea81801490>\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 0x7eea7bb28cd0>)\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 = 75519153995260\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 160451 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": "b9aec5e3-d673-47bb-aa43-2c8cacbbb80e-attachment.json", "type": "application/json"}, {"name": "Response", "source": "fa317d62-38b0-4264-8dca-11ebf55fd6bd-attachment.json", "type": "application/json"}], "start": 1775519154008, "stop": 1775519154024}, {"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": "c49fbfba-a9cc-4d3d-a9de-87f79b15ce52-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "5ab80dd2-24b8-4a0e-bf5f-9669f00611f5-attachment.json", "type": "application/json"}], "start": 1775519158280, "stop": 1775519158280}, {"name": "Response → 200, trace_id: d5d287c97c52425b715a2aa89e4f281b", "status": "passed", "attachments": [{"name": "response.headers", "source": "659cae16-d6e5-4968-8b10-748163a995b9-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4e915398-1e0e-4bdb-a46d-6b752e182824-attachment.json", "type": "application/json"}], "start": 1775519158280, "stop": 1775519158280}], "attachments": [{"name": "cURL", "source": "bd63f5d2-bf89-42fa-bcd6-b8c9767028f0-attachment.txt", "type": "text/plain"}], "start": 1775519158280, "stop": 1775519158280}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775519158284, "stop": 1775519158286}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "569691c6-47d5-4767-b47c-e21f228d5863-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "35d9eb22-489b-44de-8709-eddecdf85583-attachment.json", "type": "application/json"}], "start": 1775519158300, "stop": 1775519158301}, {"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": "84fb6bb1-ae35-4581-8962-e3c46d9bc795-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1df444e3-a4ab-404e-bd36-2ad3b032db1c-attachment.json", "type": "application/json"}], "start": 1775519158347, "stop": 1775519158347}, {"name": "Response → 200, trace_id: 8f2a9e0913fe0d952476d901a97de966", "status": "passed", "attachments": [{"name": "response.headers", "source": "74de8533-5f5e-45d6-b333-653f2abe5af2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "74d84f70-3b10-4dcb-9563-19ab3408bf6a-attachment.json", "type": "application/json"}], "start": 1775519158347, "stop": 1775519158347}], "attachments": [{"name": "cURL", "source": "56f00e00-af5d-4b75-a40f-442cc6bb2ec3-attachment.txt", "type": "text/plain"}], "start": 1775519158347, "stop": 1775519158347}, {"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": "e2a6030b-2ff7-4021-8731-47406adcbecf-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6989d545-29b1-4878-a93e-4efb845b3786-attachment.json", "type": "application/json"}], "start": 1775519158389, "stop": 1775519158390}, {"name": "Response → 200, trace_id: 48ac7b2d80f1e562c520e23c47bf8583", "status": "passed", "attachments": [{"name": "response.headers", "source": "53db6b86-4e32-4027-8ec8-aa4433dfc68e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "cd7f8b3a-af5c-4c8a-af5e-4939b337c278-attachment.json", "type": "application/json"}], "start": 1775519158390, "stop": 1775519158390}], "attachments": [{"name": "cURL", "source": "6b2943f9-9855-4205-87e3-ec758adc16f7-attachment.txt", "type": "text/plain"}], "start": 1775519158389, "stop": 1775519158390}, {"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": "cd06336e-9b2d-49d4-853a-748c2305e7a6-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "81c99471-d5e6-43f0-9367-99006d1f490e-attachment.json", "type": "application/json"}], "start": 1775519158435, "stop": 1775519158435}, {"name": "Response → 200, trace_id: 5b07a4916ae98c5b5a48d9d5d4030aa8", "status": "passed", "attachments": [{"name": "response.headers", "source": "8fee622d-6a5f-44c9-95cf-0dfb294b4247-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "5862b031-64d7-4fa3-a35c-e50b28ca6fd6-attachment.json", "type": "application/json"}], "start": 1775519158435, "stop": 1775519158435}], "attachments": [{"name": "cURL", "source": "045375c7-5306-425c-b7fc-918488202730-attachment.txt", "type": "text/plain"}], "start": 1775519158435, "stop": 1775519158435}], "attachments": [{"name": "log", "source": "546d7241-ff24-420a-9437-e6300146b89e-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": 1775519153995, "stop": 1775519207588, "uuid": "ae26f11b-7c4b-4198-bc33-de710074c77d", "historyId": "cf3f51bac18cc3b6491375f7aa5c4fc0", "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"]}