{"name": "test_task_confirm[Uzbekistan-B2B]", "status": "failed", "statusDetails": {"message": "AssertionError: task item 160426 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 0x7fb695569e10>\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 0x7fb695597a50>)\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 = 75346751435538\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 160426 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": "fd559ad9-b816-4d49-b0b5-9f103bba4e82-attachment.json", "type": "application/json"}, {"name": "Response", "source": "dd5424b7-07e4-41b0-86b5-6d0baf77522a-attachment.json", "type": "application/json"}], "start": 1775346751452, "stop": 1775346751470}, {"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": "88c1a8ac-1726-46fd-a250-6371763e4033-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a29f5edf-507e-4f5b-9a01-f1d0c1a1e9f5-attachment.json", "type": "application/json"}], "start": 1775346767028, "stop": 1775346767028}, {"name": "Response → 200, trace_id: 8d871f834edc675be829baefaae85226", "status": "passed", "attachments": [{"name": "response.headers", "source": "118e94db-aef3-4132-a2e8-23e28661073a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "8d29efcc-f653-4789-8358-0082338a521c-attachment.json", "type": "application/json"}], "start": 1775346767028, "stop": 1775346767028}], "attachments": [{"name": "cURL", "source": "bf4beb85-76a1-4aa6-b8c6-d7ce1aeaa61a-attachment.txt", "type": "text/plain"}], "start": 1775346767028, "stop": 1775346767028}, {"name": "Waiter function: wait_business_queue_records_created", "status": "passed", "start": 1775346767032, "stop": 1775346767034}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "fb7516f6-5c8e-4b39-b0c4-1c59a41a2ae9-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "c6cbadfd-194d-4c5d-afa5-473f5531c441-attachment.json", "type": "application/json"}], "start": 1775346767204, "stop": 1775346767205}, {"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": "e9577b95-2a5b-467a-bf71-b3ca7c07a464-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "5f34a440-142a-4cc6-b4df-4fe542d55a12-attachment.json", "type": "application/json"}], "start": 1775346767256, "stop": 1775346767256}, {"name": "Response → 200, trace_id: 5674ecbafe2de15dde4b0a206099f61c", "status": "passed", "attachments": [{"name": "response.headers", "source": "1d7019d1-779e-47fa-a07a-c16b38fde104-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "60a205dc-34be-4794-bc48-1c66bcbacf53-attachment.json", "type": "application/json"}], "start": 1775346767256, "stop": 1775346767256}], "attachments": [{"name": "cURL", "source": "c3e64d4a-0294-4783-80d6-ac7ec8565700-attachment.txt", "type": "text/plain"}], "start": 1775346767256, "stop": 1775346767256}, {"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": "5b526c6e-65c5-4a0c-be8c-a5981016d068-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "4f132aa6-9fe2-4460-84ee-efb02411d72e-attachment.json", "type": "application/json"}], "start": 1775346767299, "stop": 1775346767299}, {"name": "Response → 200, trace_id: 6a256ff5df4318110cab2cf6e56c54bf", "status": "passed", "attachments": [{"name": "response.headers", "source": "c5cc876e-d6e1-4a09-8db1-bca717af282f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "2ee2d2f9-b491-4286-bd10-9ddb37490fb5-attachment.json", "type": "application/json"}], "start": 1775346767299, "stop": 1775346767300}], "attachments": [{"name": "cURL", "source": "0d0fbb89-c26f-4599-98e8-3be48b415dfa-attachment.txt", "type": "text/plain"}], "start": 1775346767299, "stop": 1775346767300}, {"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": "7905e621-6457-4ca1-8d8e-a77a28a76471-attachment.json", "type": "application/json"}, {"name": "request.params", "source": "026d5d6f-7a17-4b8b-8ed0-b61572c134ac-attachment.json", "type": "application/json"}], "start": 1775346767340, "stop": 1775346767340}, {"name": "Response → 200, trace_id: db0d3aacd4748f93eea8fe20adb3ca4f", "status": "passed", "attachments": [{"name": "response.headers", "source": "2fa32d3d-6d49-436c-a780-e9eed6cee19e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "24802b99-a505-4847-8177-bb317037535a-attachment.json", "type": "application/json"}], "start": 1775346767340, "stop": 1775346767340}], "attachments": [{"name": "cURL", "source": "39318f1a-5e96-4707-8f94-9948f78f57db-attachment.txt", "type": "text/plain"}], "start": 1775346767340, "stop": 1775346767340}], "attachments": [{"name": "log", "source": "6daae2db-41bb-42ca-8d73-d6099be064c3-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": 1775346751435, "stop": 1775346816504, "uuid": "f82f533a-e6c1-437f-8ad5-f8de3f64b885", "historyId": "482ad89857108ee8e214cbe370b0ee17", "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-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"]}