{"name": "test_task_confirm[Uzbekistan-SELLER_RETURN]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160463 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 0x7198cbd7d910>\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 0x7198c9d82790>)\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 = 75692028254823\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 160463 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": "75e3c520-cc21-47c6-9d10-62f8c542892d-attachment.json", "type": "application/json"}, {"name": "Response", "source": "d5800307-d173-480a-a288-2893b09cdba7-attachment.json", "type": "application/json"}], "start": 1775692028267, "stop": 1775692028282}, {"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": "a3c49cf0-d191-445d-9466-e17ce92c997b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "aef96f64-c3f7-4c04-aaf0-f2b054776810-attachment.json", "type": "application/json"}], "start": 1775692032990, "stop": 1775692032991}, {"name": "Response → 200, trace_id: 147dec48a90e49e2c5f50eada89e98eb", "status": "passed", "attachments": [{"name": "response.headers", "source": "7131cfd2-8f48-4219-9c02-27cf191a4605-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "c231b128-1ef1-4d56-baa2-9ece7b12128e-attachment.json", "type": "application/json"}], "start": 1775692032991, "stop": 1775692032991}], "attachments": [{"name": "cURL", "source": "8166c03c-6e49-4288-b782-95f25d51e3e8-attachment.txt", "type": "text/plain"}], "start": 1775692032990, "stop": 1775692032991}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775692032994, "stop": 1775692032996}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "a23c4fa4-0787-43f4-830e-25d8fb1c4943-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "27cf13d5-0e51-4ea7-a2ec-9ffc95760b14-attachment.json", "type": "application/json"}], "start": 1775692033011, "stop": 1775692033011}, {"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": "450a34af-bfd5-4d6e-8b29-fd778f857bde-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "e004b862-e43b-4a98-8c35-89ab96239483-attachment.json", "type": "application/json"}], "start": 1775692033056, "stop": 1775692033056}, {"name": "Response → 200, trace_id: 2cc4dacf854818ffae9a39d24c0a407c", "status": "passed", "attachments": [{"name": "response.headers", "source": "2f993314-6dc6-4725-9066-90abd0479e3d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "69cc1f1f-0ff6-4ec1-9d32-b498ca46fcca-attachment.json", "type": "application/json"}], "start": 1775692033056, "stop": 1775692033057}], "attachments": [{"name": "cURL", "source": "ce3cab89-e8c5-4132-9ef9-e7b387ffa269-attachment.txt", "type": "text/plain"}], "start": 1775692033056, "stop": 1775692033057}, {"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": "ce920296-fed9-4e98-b052-3abc6273672b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "07229ef8-f8d4-4021-b152-07e802764165-attachment.json", "type": "application/json"}], "start": 1775692033100, "stop": 1775692033100}, {"name": "Response → 200, trace_id: 6f3ad7f579cc5aaa7f84af7c15271f71", "status": "passed", "attachments": [{"name": "response.headers", "source": "0c96f03f-8cd2-4b0c-9da9-78ab3df787f7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "6bb33cf2-61ce-4b26-83f1-ccc2e20431c8-attachment.json", "type": "application/json"}], "start": 1775692033100, "stop": 1775692033100}], "attachments": [{"name": "cURL", "source": "ac314ba4-d456-44ec-bd9b-e075854bf7b1-attachment.txt", "type": "text/plain"}], "start": 1775692033100, "stop": 1775692033100}, {"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": "477a0c6a-3ed4-48dd-8323-345b18858c2f-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "88e2e4b1-7efe-475d-b688-6f15607d181c-attachment.json", "type": "application/json"}], "start": 1775692033142, "stop": 1775692033142}, {"name": "Response → 200, trace_id: e4830eefd160d541cc2fb5bdd72b1720", "status": "passed", "attachments": [{"name": "response.headers", "source": "ac4f911a-23ae-4c23-a528-64b51873b310-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "66f493e1-576a-4cdc-8669-fc79f65f4e26-attachment.json", "type": "application/json"}], "start": 1775692033142, "stop": 1775692033142}], "attachments": [{"name": "cURL", "source": "408b837a-b130-45b5-adbb-c58bd896b42c-attachment.txt", "type": "text/plain"}], "start": 1775692033142, "stop": 1775692033143}], "attachments": [{"name": "log", "source": "bff891bd-5d45-4a2b-b4a1-34a31cbf48f2-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": 1775692028255, "stop": 1775692082298, "uuid": "606770e2-c7eb-4989-bb71-e24956b8e5df", "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-zefpifhd"}, {"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"]}