{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160432 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 0x70d884d30110>\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 0x70d87f39e510>)\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 = 75411418853436\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 160432 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": "d23478e2-c33b-477e-81e9-34d540650423-attachment.json", "type": "application/json"}, {"name": "Response", "source": "36599b9d-d123-4f11-8061-707105a0918a-attachment.json", "type": "application/json"}], "start": 1775411418865, "stop": 1775411418881}, {"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": "6632d391-0c91-4379-be95-c1618cbe8e86-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "9a44b728-6eed-43a0-9504-5536ff60fbd9-attachment.json", "type": "application/json"}], "start": 1775411423075, "stop": 1775411423075}, {"name": "Response → 200, trace_id: 6114fb049222ea9efc0b5acac20e7ffc", "status": "passed", "attachments": [{"name": "response.headers", "source": "4620b277-4d7c-449b-ae44-2104fc0632d6-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "f26044bd-5004-48f9-b152-e877190ed04f-attachment.json", "type": "application/json"}], "start": 1775411423075, "stop": 1775411423076}], "attachments": [{"name": "cURL", "source": "7eafeebc-6288-4be0-b41d-039f4a9895db-attachment.txt", "type": "text/plain"}], "start": 1775411423075, "stop": 1775411423076}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775411423079, "stop": 1775411423082}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "9f106661-3ed5-4611-b2a5-520155824a3c-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "fd404bb2-939a-4a48-af62-337d94ea7c17-attachment.json", "type": "application/json"}], "start": 1775411423276, "stop": 1775411423277}, {"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": "b298f011-9d7d-4302-8465-91a2bd4cf842-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "810c3ac5-18c5-4db6-b9f5-0332c12a2654-attachment.json", "type": "application/json"}], "start": 1775411423329, "stop": 1775411423329}, {"name": "Response → 200, trace_id: 3f4f630a23d70dd010d863604bd74913", "status": "passed", "attachments": [{"name": "response.headers", "source": "73c2afbd-4180-4ada-b2f0-bc4be66bd537-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "38ddceaf-3b53-4886-a77e-dc7c25d51fda-attachment.json", "type": "application/json"}], "start": 1775411423329, "stop": 1775411423329}], "attachments": [{"name": "cURL", "source": "87bc3905-ef56-4377-bd67-5df86e663836-attachment.txt", "type": "text/plain"}], "start": 1775411423329, "stop": 1775411423329}, {"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": "e94c57be-6e7c-45d3-8d61-42f1c502128e-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "c71563de-9b57-47f9-aa8f-240022160743-attachment.json", "type": "application/json"}], "start": 1775411423374, "stop": 1775411423374}, {"name": "Response → 200, trace_id: 59dc6ce5c8752abb59f28bceb7478eae", "status": "passed", "attachments": [{"name": "response.headers", "source": "c9735e25-516d-4305-b947-4c3fbbdae6ed-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4a9b2065-0530-4519-8144-b4abaec8da66-attachment.json", "type": "application/json"}], "start": 1775411423374, "stop": 1775411423374}], "attachments": [{"name": "cURL", "source": "74693310-490d-49af-b63a-fd8515514201-attachment.txt", "type": "text/plain"}], "start": 1775411423374, "stop": 1775411423374}, {"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": "a621113a-57dc-43af-ad1a-6a4ced121bdd-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "69f877c7-c107-4235-842f-d3bed023fa35-attachment.json", "type": "application/json"}], "start": 1775411423419, "stop": 1775411423419}, {"name": "Response → 200, trace_id: 155a5b59d9d4e2f2daccffab8de18ca7", "status": "passed", "attachments": [{"name": "response.headers", "source": "0aa17609-03cb-4f4a-b27b-615012ea0a4f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fb553ef5-9dc8-420f-9550-0401e2df0295-attachment.json", "type": "application/json"}], "start": 1775411423420, "stop": 1775411423420}], "attachments": [{"name": "cURL", "source": "4a5f5e41-35d8-4c2c-9e9a-ef0f5f44ea58-attachment.txt", "type": "text/plain"}], "start": 1775411423419, "stop": 1775411423420}], "attachments": [{"name": "log", "source": "dd8bc391-b216-4bba-850f-de994991f207-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": "'B2B'"}], "start": 1775411418853, "stop": 1775411472577, "uuid": "26813801-bb63-4842-8249-e474fe733355", "historyId": "6f6c54d43c7e7de23bc48987bc01d04a", "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"]}