{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160439 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 0x7f0194ed6b50>\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 0x7f018e1ec0d0>)\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 = 75432809005240\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 160439 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": "081ae973-c9ca-4fd1-9f53-472bd63845ee-attachment.json", "type": "application/json"}, {"name": "Response", "source": "601e4585-a63a-4f12-b2cc-e1016d002112-attachment.json", "type": "application/json"}], "start": 1775432809019, "stop": 1775432809035}, {"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": "9e884265-0586-4159-8c3d-2cbbe6ea8958-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a2be5de7-058a-4913-9ba6-a9e0a265851a-attachment.json", "type": "application/json"}], "start": 1775432813305, "stop": 1775432813305}, {"name": "Response → 200, trace_id: 2199124076c0cd45a5ec41647ef31d0e", "status": "passed", "attachments": [{"name": "response.headers", "source": "3548d391-40c8-433b-89cc-00fcc05d7b4b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "365a6e7c-342d-497f-84bc-3bc67b2112a2-attachment.json", "type": "application/json"}], "start": 1775432813305, "stop": 1775432813306}], "attachments": [{"name": "cURL", "source": "3ac8d667-4b15-4b1c-802c-14ab9692b39f-attachment.txt", "type": "text/plain"}], "start": 1775432813305, "stop": 1775432813306}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775432813309, "stop": 1775432813312}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "4220ad78-a3a3-4c62-9e07-014c63346b71-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "c0ac1da1-7c47-47fe-acf3-4b804e6cef55-attachment.json", "type": "application/json"}], "start": 1775432813328, "stop": 1775432813328}, {"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": "06fa69cf-6dee-424d-a42d-6608c5074b9f-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f50c9901-b351-4fe3-9bda-5f113df38f60-attachment.json", "type": "application/json"}], "start": 1775432813374, "stop": 1775432813374}, {"name": "Response → 200, trace_id: 3bda6635538c71f7f5717680f40b8e98", "status": "passed", "attachments": [{"name": "response.headers", "source": "ac331bd9-256e-411b-9b99-fbcea51407c5-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "aa2f8931-572d-45e8-9ae8-9769cc157efc-attachment.json", "type": "application/json"}], "start": 1775432813374, "stop": 1775432813374}], "attachments": [{"name": "cURL", "source": "e2e3f1db-7038-469d-8bca-ad6d7a25bb62-attachment.txt", "type": "text/plain"}], "start": 1775432813374, "stop": 1775432813374}, {"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": "5ae26333-eaa9-4e4a-ba4a-888b570d43da-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "9ed642d0-a0eb-49c5-8800-b76f95c2ed54-attachment.json", "type": "application/json"}], "start": 1775432813416, "stop": 1775432813416}, {"name": "Response → 200, trace_id: b93d811ebb46846a2fe16fab02e7b084", "status": "passed", "attachments": [{"name": "response.headers", "source": "ab35de70-5792-49f8-9126-f18612ad4540-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "63892ad1-31f2-4302-97a2-a839f1c656b3-attachment.json", "type": "application/json"}], "start": 1775432813416, "stop": 1775432813416}], "attachments": [{"name": "cURL", "source": "575b5fb4-8d96-463e-861d-a890f8c9e581-attachment.txt", "type": "text/plain"}], "start": 1775432813416, "stop": 1775432813417}, {"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": "0e60dee7-8048-4180-9489-b17c4374e3b3-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "1e5485ae-a2da-4081-be61-d4e6cf661289-attachment.json", "type": "application/json"}], "start": 1775432813456, "stop": 1775432813456}, {"name": "Response → 200, trace_id: f1c165387c7552ba265540302623aefb", "status": "passed", "attachments": [{"name": "response.headers", "source": "4337f648-8290-4fec-bea8-1cd1942ca973-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e3ad8f0f-c822-4608-a037-85fe0a09e0dd-attachment.json", "type": "application/json"}], "start": 1775432813456, "stop": 1775432813457}], "attachments": [{"name": "cURL", "source": "3183e865-0c04-4172-823c-fba167bebc0a-attachment.txt", "type": "text/plain"}], "start": 1775432813456, "stop": 1775432813457}], "attachments": [{"name": "log", "source": "57fc2acd-d308-4c84-bacf-5f2696f2b9e8-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": 1775432809005, "stop": 1775432862606, "uuid": "0ee185fc-0a91-41e2-977e-34e0981ae14a", "historyId": "4282700904f24bc84f359996ae86dbb7", "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-a1dh9731"}, {"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"]}