{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160438 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 0x7f0194ed68d0>\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 0x7f018d977fd0>)\norder_type = <WMSOrderType.B2B: 'B2B'>\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 = 75432753264240\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 160438 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": "0735d53f-f458-422b-9ff6-21842a4b325e-attachment.json", "type": "application/json"}, {"name": "Response", "source": "64adc72e-a8fb-4ea9-96f3-283f8a4eb634-attachment.json", "type": "application/json"}], "start": 1775432753278, "stop": 1775432753295}, {"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": "0740eb5c-359c-4afa-8827-d8ad77ed4605-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ed10f22f-6776-4e7d-bcdd-71ea6abb1382-attachment.json", "type": "application/json"}], "start": 1775432757906, "stop": 1775432757907}, {"name": "Response → 200, trace_id: 468d03236ec168cb4e305c3a2e5eafe7", "status": "passed", "attachments": [{"name": "response.headers", "source": "eeaac10d-db9b-4ffb-a1d7-7d635abad1bb-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c47369a4-51fb-48c9-a357-e92ea4d332dd-attachment.json", "type": "application/json"}], "start": 1775432757907, "stop": 1775432757907}], "attachments": [{"name": "cURL", "source": "bab2d762-9d1f-44dc-87d7-5619dc702975-attachment.txt", "type": "text/plain"}], "start": 1775432757906, "stop": 1775432757907}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775432757910, "stop": 1775432757913}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "85ad589e-eb07-4b54-a5ec-84b10fa33641-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "eea7bd68-119a-4a63-855f-90a6ad767994-attachment.json", "type": "application/json"}], "start": 1775432758084, "stop": 1775432758085}, {"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": "b1c8b7f3-5269-4068-98cd-ca46a8978603-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "f17e7493-d4e5-47a8-a98f-e2160f323922-attachment.json", "type": "application/json"}], "start": 1775432758133, "stop": 1775432758133}, {"name": "Response → 200, trace_id: 972477a21b06eaef125abfd5a813e69c", "status": "passed", "attachments": [{"name": "response.headers", "source": "406566ff-e090-4537-83b4-a96f17a4c761-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "a1c9a96e-54bf-431a-ab06-422060924eee-attachment.json", "type": "application/json"}], "start": 1775432758133, "stop": 1775432758134}], "attachments": [{"name": "cURL", "source": "675c448a-f127-496d-bcf5-4b6536a11141-attachment.txt", "type": "text/plain"}], "start": 1775432758133, "stop": 1775432758134}, {"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": "8a5b5658-c454-41c8-8379-447153469f6e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ff67e050-4520-448d-be28-02eee509c5e8-attachment.json", "type": "application/json"}], "start": 1775432758175, "stop": 1775432758176}, {"name": "Response → 200, trace_id: 78fcadb57b793d811b6d2233064eae42", "status": "passed", "attachments": [{"name": "response.headers", "source": "e5bd7cc8-f3af-40ff-8983-8c6daa97c627-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6b0a8308-e9a9-4984-b9c3-30961cb0c746-attachment.json", "type": "application/json"}], "start": 1775432758176, "stop": 1775432758176}], "attachments": [{"name": "cURL", "source": "44ac2045-d6b9-41b8-8e27-bcca8eda5181-attachment.txt", "type": "text/plain"}], "start": 1775432758175, "stop": 1775432758176}, {"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": "82ebea99-0292-47d9-94d4-64b49812d847-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "ffbfdde7-10a6-4efb-95e0-8ae13d2d3865-attachment.json", "type": "application/json"}], "start": 1775432758219, "stop": 1775432758219}, {"name": "Response → 200, trace_id: 4004b11365256b1d79c7c2973a9c2bf1", "status": "passed", "attachments": [{"name": "response.headers", "source": "d3ae7043-d776-4fe8-9e4d-6a9c9312a8e3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f7eefb29-3478-4cc4-b0d6-f6e5910a53b0-attachment.json", "type": "application/json"}], "start": 1775432758219, "stop": 1775432758219}], "attachments": [{"name": "cURL", "source": "c3badc2e-a806-4908-a426-4718e19cd5d0-attachment.txt", "type": "text/plain"}], "start": 1775432758219, "stop": 1775432758219}], "attachments": [{"name": "log", "source": "29e9132a-b42f-495f-9d31-3ef220835795-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": "'B2B'"}], "start": 1775432753264, "stop": 1775432807374, "uuid": "ab0c02bc-7592-4261-8e79-cc75085e15b0", "historyId": "482ad89857108ee8e214cbe370b0ee17", "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"]}