{"name": "test_task_confirm_with_deficit[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160428 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 0x7fb69556b790>\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 0x7fb68d71e710>)\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_with_deficit(self, wms_warehouse_stocks: DTO, order_type):\n        for item in wms_warehouse_stocks.stocks.items:\n            item.qty += 10\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.stocks.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:72: \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 = 75346873252688\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 160428 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": "c6317b0c-1204-479b-ad9e-a18ec6022506-attachment.json", "type": "application/json"}, {"name": "Response", "source": "e4500e52-ecd8-49aa-8a71-d51d91c3fd32-attachment.json", "type": "application/json"}], "start": 1775346873264, "stop": 1775346873282}, {"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": "1e188096-1aa4-4ee1-b25d-bb843f5bb98a-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "59c675cf-eb79-4423-81f3-45b33453f4e7-attachment.json", "type": "application/json"}], "start": 1775346881260, "stop": 1775346881260}, {"name": "Response → 200, trace_id: ae0add02f8c4814b49bcdf9eb92992c1", "status": "passed", "attachments": [{"name": "response.headers", "source": "d9bf6bf9-096a-46e4-a84e-d444d2bb8168-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "98f8077b-b4d5-4381-b7d9-06bbf7f2eaea-attachment.json", "type": "application/json"}], "start": 1775346881260, "stop": 1775346881261}], "attachments": [{"name": "cURL", "source": "7a3056f4-63a1-4207-af0e-8d3338862467-attachment.txt", "type": "text/plain"}], "start": 1775346881260, "stop": 1775346881261}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775346881265, "stop": 1775346881267}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "0884b07c-263c-428a-8d5c-a23f290884ed-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "3be8fc96-b538-4dbe-b9cd-40d44778b745-attachment.json", "type": "application/json"}], "start": 1775346881281, "stop": 1775346881281}, {"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": "416bfe2d-ed0b-4418-ac43-d89a135d6bd0-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "e79bc8a7-90f7-4a7e-875b-2ecf35bb7dd3-attachment.json", "type": "application/json"}], "start": 1775346881332, "stop": 1775346881332}, {"name": "Response → 200, trace_id: f5fa39363da786268b7082f190e6649d", "status": "passed", "attachments": [{"name": "response.headers", "source": "4d8cba1c-4897-49bc-9d02-4074fd55731e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6e008a92-6a5e-42a6-8fbf-e2a79071bf9c-attachment.json", "type": "application/json"}], "start": 1775346881332, "stop": 1775346881332}], "attachments": [{"name": "cURL", "source": "73cf0daf-b7cf-4935-ae8c-6c57117eba45-attachment.txt", "type": "text/plain"}], "start": 1775346881332, "stop": 1775346881332}, {"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": "f5be4d10-7e4a-4a51-bf96-e6f2f48bf629-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "3d1bf6ff-63d3-4b52-94bb-eaf5bad29507-attachment.json", "type": "application/json"}], "start": 1775346881377, "stop": 1775346881377}, {"name": "Response → 200, trace_id: 75caa68af9407dfed23b6a733f225a49", "status": "passed", "attachments": [{"name": "response.headers", "source": "b9b3dc71-dd48-4e5f-8093-5658f5ce86be-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2c533c37-e365-4238-be2e-a71efc0b6d16-attachment.json", "type": "application/json"}], "start": 1775346881377, "stop": 1775346881377}], "attachments": [{"name": "cURL", "source": "3113231c-139e-4ed8-a145-148f980331cc-attachment.txt", "type": "text/plain"}], "start": 1775346881377, "stop": 1775346881377}, {"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": "d2b89121-c8e1-4781-9d93-55f59b96a367-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "fc1304ee-c2c4-4714-abb3-253d2b9fcdfb-attachment.json", "type": "application/json"}], "start": 1775346881420, "stop": 1775346881421}, {"name": "Response → 200, trace_id: 461db7489e62f4cf0ca129356d766b74", "status": "passed", "attachments": [{"name": "response.headers", "source": "f0457543-094e-413f-9df1-4f7c0fc95a0f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7e166448-8b58-4deb-9650-22435b2dcd5d-attachment.json", "type": "application/json"}], "start": 1775346881421, "stop": 1775346881421}], "attachments": [{"name": "cURL", "source": "aa45348a-198a-4be3-838e-26f139457d12-attachment.txt", "type": "text/plain"}], "start": 1775346881420, "stop": 1775346881421}], "attachments": [{"name": "log", "source": "29364c2a-82b6-41d0-9b67-6f919473e832-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": 1775346873253, "stop": 1775346930576, "uuid": "9d01bd0d-413d-43df-b0fc-9adeedcbac14", "historyId": "b026abbd85e6f9fc82130fd35a8f9bb5", "testCaseId": "5379fbae3aca09418083203f4b169063", "fullName": "tests.wms.test_b2b_seller_return.test_b2b_task.TestB2BTask#test_task_confirm_with_deficit", "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-gid8mt59"}, {"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"]}