{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160456 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 0x7ef68b678ed0>\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 0x7ef68865e4d0>)\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 = 75605547245117\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 160456 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": "b8489984-7721-4da5-8eac-902a1e777d1d-attachment.json", "type": "application/json"}, {"name": "Response", "source": "24752da1-1e36-43a4-ab50-abfd8290ee53-attachment.json", "type": "application/json"}], "start": 1775605547262, "stop": 1775605547277}, {"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": "6222cf2e-038a-4b34-8a0b-e5ea872f2038-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1dd8b03f-099d-457c-957d-715ba8674bae-attachment.json", "type": "application/json"}], "start": 1775605552384, "stop": 1775605552384}, {"name": "Response → 200, trace_id: 807db462e6335c25cab559b19d6bb768", "status": "passed", "attachments": [{"name": "response.headers", "source": "f355d0b6-7962-43f0-b2e9-cea7621d3ef3-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "268bc67c-c046-4d04-98e5-43247e6c1006-attachment.json", "type": "application/json"}], "start": 1775605552384, "stop": 1775605552384}], "attachments": [{"name": "cURL", "source": "2ea07ff1-a056-4c27-b423-d52ffa195014-attachment.txt", "type": "text/plain"}], "start": 1775605552384, "stop": 1775605552384}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775605552388, "stop": 1775605552390}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "8558501e-7427-4330-8e52-e20f56707c21-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "e13a98df-f47f-4855-8b2b-f9726fc4780c-attachment.json", "type": "application/json"}], "start": 1775605552562, "stop": 1775605552562}, {"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": "a94daabe-fce7-4604-a1ce-dcc8b0962776-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8136d41a-c94e-490d-92cf-25d272c2427f-attachment.json", "type": "application/json"}], "start": 1775605552612, "stop": 1775605552613}, {"name": "Response → 200, trace_id: adb44e37b7a152df416d0db7566f4f43", "status": "passed", "attachments": [{"name": "response.headers", "source": "d206993c-9330-459b-bf91-3d128631d27e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "3e822d28-a48a-4847-baa9-26362071db13-attachment.json", "type": "application/json"}], "start": 1775605552613, "stop": 1775605552613}], "attachments": [{"name": "cURL", "source": "6ecf9225-101b-4224-8c1d-9ab58c59c2c1-attachment.txt", "type": "text/plain"}], "start": 1775605552612, "stop": 1775605552613}, {"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": "339500a5-f691-4384-9a2e-0e3a8666d52b-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "1a0415fb-c2a5-42ea-a169-f31bc91c7329-attachment.json", "type": "application/json"}], "start": 1775605552658, "stop": 1775605552658}, {"name": "Response → 200, trace_id: 8b8242cb1a2755760b492dcb63b002ed", "status": "passed", "attachments": [{"name": "response.headers", "source": "537c40a4-3abb-4b21-a963-3a37e3a66d6f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "b65abb85-2b5a-4824-af54-4dc80429e42d-attachment.json", "type": "application/json"}], "start": 1775605552658, "stop": 1775605552658}], "attachments": [{"name": "cURL", "source": "1044bfff-6173-470d-8447-c411fc34e38a-attachment.txt", "type": "text/plain"}], "start": 1775605552658, "stop": 1775605552659}, {"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": "d7b05c53-30d5-42b5-9741-e6e71ba965dc-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "534ffd2b-ccc2-4bb1-a5e0-ca4c2b3d07bc-attachment.json", "type": "application/json"}], "start": 1775605552704, "stop": 1775605552704}, {"name": "Response → 200, trace_id: 1eb18bf23e651449e11432493b5e4204", "status": "passed", "attachments": [{"name": "response.headers", "source": "733ebf0a-7d0e-4c2a-a168-3e31be77a783-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "03b1bfcc-a650-4f7b-af10-2e368c0b37fd-attachment.json", "type": "application/json"}], "start": 1775605552704, "stop": 1775605552705}], "attachments": [{"name": "cURL", "source": "4e3c3b91-3abc-4dcf-ade7-bec497a8c798-attachment.txt", "type": "text/plain"}], "start": 1775605552704, "stop": 1775605552705}], "attachments": [{"name": "log", "source": "4af877c7-7128-4f37-8588-bb2f2f914dba-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": 1775605547245, "stop": 1775605601879, "uuid": "8846dd89-abc0-4e78-9a03-6bbe37aed410", "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-tf3sk45l"}, {"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"]}