{"name": "test_more_orders_than_stock[Uzbekistan | YaMarket-wms_provider_warehouse_mono_stock0]", "status": "passed", "description": "\n        Создание большего количество ордеров чем есть стока (oversale), с последующей их отменой.\n        С контролем отправки stock_event типов ORDER_NEW и ORDER_CANCEL\n\n        - создаём x1 sku на N количества\n        - создаём N*2 ордеров на х1 единицу товара, по ходу проверяя wms_ff_stock_event на наличие там ORDER_NEW\n        - отменяем заказы, по ходу проверяя wms_ff_stock_event на наличие там ORDER_CANCEL\n        ", "steps": [{"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "7220b3e1-137a-459e-827f-751a2108ba82-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "bdabdf79-cbfd-4b2f-957c-91f6abf7a0f3-attachment.json", "type": "application/json"}], "start": 1775432915482, "stop": 1775432915482}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "beecdaa5-ef4a-4b0c-a082-97c95850a180-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "7b41fec8-4fdd-4a4c-950f-2a0f326b31f5-attachment.json", "type": "application/json"}], "start": 1775432915490, "stop": 1775432915490}], "start": 1775432915482, "stop": 1775432915494}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "3803936e-461b-4e69-8b14-997568d006ee-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "4ced9d6d-4f0a-4182-b4a8-8721cb78806d-attachment.json", "type": "application/json"}], "start": 1775432915503, "stop": 1775432915504}, {"name": "Waiter function: login_or_refresh", "status": "passed", "steps": [{"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/oauth/custom/token", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "43bbcdbb-206e-455e-851b-c53ba1b21bf2-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "b7d48848-a276-49ea-8868-4677be72469c-attachment.json", "type": "application/json"}], "start": 1775432915535, "stop": 1775432915536}, {"name": "Response → 200, trace_id: 378e05b8614f2f4f41c6035c8defbb63", "status": "passed", "attachments": [{"name": "response.headers", "source": "ec93fac7-a836-4d3d-99f1-7dd9947e63da-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "bbb75cbb-3a33-46cb-a320-f90deb886634-attachment.json", "type": "application/json"}], "start": 1775432915536, "stop": 1775432915536}], "attachments": [{"name": "cURL", "source": "353e67f3-401a-422a-ba52-7f233e6ea6e5-attachment.txt", "type": "text/plain"}], "start": 1775432915535, "stop": 1775432915536}], "start": 1775432915505, "stop": 1775432915539}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "aa451f54-4bf5-40af-8f8a-4edaaf11040c-attachment.json", "type": "application/json"}, {"name": "Response", "source": "2b816e5e-b0ac-4224-ae32-73f72a2687e6-attachment.json", "type": "application/json"}], "start": 1775432915543, "stop": 1775432915575}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775432915575, "stop": 1775432917977}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432917978, "stop": 1775432919601}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/internal/order/can-be-canceled", "status": "passed", "attachments": [{"name": "Request", "source": "a0b5350e-b93c-473c-8687-853773f1ce7e-attachment.json", "type": "application/json"}, {"name": "Response", "source": "d8c177a4-a56e-4768-b7cc-9156301f7dec-attachment.json", "type": "application/json"}], "start": 1775432919602, "stop": 1775432919647}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/v2/internal/order/cancel", "status": "passed", "attachments": [{"name": "Request", "source": "6b244beb-642d-417b-a487-5e481bd896c6-attachment.json", "type": "application/json"}, {"name": "Response", "source": "7394c6b8-9762-407d-bc16-851ffab6afc4-attachment.json", "type": "application/json"}], "start": 1775432919647, "stop": 1775432919988}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432919989, "stop": 1775432922907}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "4c383915-6acf-4fa0-a1f2-7df1b5034d60-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "b2c4c6cc-fa2e-4cff-bbb1-2ca8d31302e3-attachment.json", "type": "application/json"}], "start": 1775432922913, "stop": 1775432922913}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "aeaac716-c191-4d03-93b5-5e2d9f89b4c2-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "633d8855-4cf1-4dcf-96dc-7e7da6a26316-attachment.json", "type": "application/json"}], "start": 1775432922914, "stop": 1775432922914}], "start": 1775432922914, "stop": 1775432922915}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "5838209d-2a22-43e3-b876-dc28ef646ff4-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "e625320b-a90a-4ade-a2a3-856a6380d405-attachment.json", "type": "application/json"}], "start": 1775432922929, "stop": 1775432922929}, {"name": "Waiter function: login_or_refresh", "status": "passed", "steps": [{"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/oauth/custom/token", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "05bdbc53-c230-4f36-9740-361a46ec567d-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8e6e8ec3-d150-418f-ba72-c9fe16cbdd32-attachment.json", "type": "application/json"}], "start": 1775432922961, "stop": 1775432922961}, {"name": "Response → 200, trace_id: aadc6bd2c0d0d898ab9c64bb2fdb4a7e", "status": "passed", "attachments": [{"name": "response.headers", "source": "b72a6d3d-abdb-4a4e-9795-3c6fff42b2fd-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e155caa8-9bdd-4a8b-8996-3b364b127d97-attachment.json", "type": "application/json"}], "start": 1775432922961, "stop": 1775432922962}], "attachments": [{"name": "cURL", "source": "7f75fdb2-6cc9-4351-8791-363c27ba3052-attachment.txt", "type": "text/plain"}], "start": 1775432922961, "stop": 1775432922962}], "start": 1775432922931, "stop": 1775432922964}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "7bb07aab-3553-4e14-bc6d-03c605f03e27-attachment.json", "type": "application/json"}, {"name": "Response", "source": "5fa7e01a-0321-4f35-9c69-225a1192f17d-attachment.json", "type": "application/json"}], "start": 1775432922966, "stop": 1775432922995}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775432922996, "stop": 1775432925369}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432925369, "stop": 1775432926997}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/internal/order/can-be-canceled", "status": "passed", "attachments": [{"name": "Request", "source": "62d1daae-daea-4dfe-a80c-25557dd95eee-attachment.json", "type": "application/json"}, {"name": "Response", "source": "032ad893-dd90-449a-b95e-5e7d1c1a6d03-attachment.json", "type": "application/json"}], "start": 1775432926997, "stop": 1775432927034}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/v2/internal/order/cancel", "status": "passed", "attachments": [{"name": "Request", "source": "6dda1a09-c87a-470c-8e54-5ba73d32a9f6-attachment.json", "type": "application/json"}, {"name": "Response", "source": "20049a1d-1c1c-424d-8fc1-9aafb6fab952-attachment.json", "type": "application/json"}], "start": 1775432927035, "stop": 1775432927369}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432927370, "stop": 1775432930511}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "e0c7398d-669c-4cd8-bc9e-dc74dd6ed59e-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "83c3e46b-5704-4c3d-b055-49a60f5ce8d6-attachment.json", "type": "application/json"}], "start": 1775432930517, "stop": 1775432930517}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "e5f43eff-e30c-41e3-822f-3d2b6d16dd61-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "a084e7b8-714f-4b26-9afa-50d43e176179-attachment.json", "type": "application/json"}], "start": 1775432930518, "stop": 1775432930518}], "start": 1775432930517, "stop": 1775432930519}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "2a16263b-62dc-4e5a-be7a-07134d354b86-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "aa5913df-aeeb-47ef-9831-afe676330c03-attachment.json", "type": "application/json"}], "start": 1775432930521, "stop": 1775432930522}, {"name": "Waiter function: login_or_refresh", "status": "passed", "steps": [{"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/oauth/custom/token", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "dea716e5-6b53-44a4-b114-7639dd305035-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ebd30fd4-7471-46e8-98fe-621d20d9c50f-attachment.json", "type": "application/json"}], "start": 1775432930555, "stop": 1775432930555}, {"name": "Response → 200, trace_id: bc1d3efaf773144ed262d8737d9888ae", "status": "passed", "attachments": [{"name": "response.headers", "source": "e49934c0-99d9-489f-99fd-df8ebc081f12-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "ad65282f-e535-4127-bac5-7f16662056f1-attachment.json", "type": "application/json"}], "start": 1775432930556, "stop": 1775432930556}], "attachments": [{"name": "cURL", "source": "8337fe8c-59e2-4d6e-8d1a-ef05c98d9710-attachment.txt", "type": "text/plain"}], "start": 1775432930555, "stop": 1775432930556}], "start": 1775432930522, "stop": 1775432930559}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "4d010bd3-9b17-4262-8527-c3844aa838f1-attachment.json", "type": "application/json"}, {"name": "Response", "source": "175ab9ed-71a3-447c-bc2b-063c41c0b8c1-attachment.json", "type": "application/json"}], "start": 1775432930561, "stop": 1775432930591}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775432930592, "stop": 1775432932958}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432932958, "stop": 1775432934583}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/internal/order/can-be-canceled", "status": "passed", "attachments": [{"name": "Request", "source": "4d8e729d-db42-477c-80d0-4b82b56b0820-attachment.json", "type": "application/json"}, {"name": "Response", "source": "b564172f-0928-450d-8c58-d85e3e82dda8-attachment.json", "type": "application/json"}], "start": 1775432934583, "stop": 1775432934621}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/v2/internal/order/cancel", "status": "passed", "attachments": [{"name": "Request", "source": "bd84cfa8-0189-4e6b-aaf0-8f78ba597ebf-attachment.json", "type": "application/json"}, {"name": "Response", "source": "0eb87fa6-8e43-4d95-80e4-d62cccd5164a-attachment.json", "type": "application/json"}], "start": 1775432934622, "stop": 1775432934949}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432934950, "stop": 1775432938006}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "3f77564f-3e04-4636-baf8-f7a0df0c58b8-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "fc20e914-cd7c-43a1-b6c1-21dc2573b9a9-attachment.json", "type": "application/json"}], "start": 1775432938012, "stop": 1775432938012}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "8787b615-a7e1-455f-9dca-29bc342d4401-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "32f20df2-4d60-4c1c-b499-bf91838b80d7-attachment.json", "type": "application/json"}], "start": 1775432938013, "stop": 1775432938013}], "start": 1775432938012, "stop": 1775432938014}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "ea7bef4e-1f5e-4872-82e8-ed5e04b2c736-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "b998ab08-cc2b-4f01-8dd2-6989f83545f7-attachment.json", "type": "application/json"}], "start": 1775432938016, "stop": 1775432938016}, {"name": "Waiter function: login_or_refresh", "status": "passed", "steps": [{"name": "POST → https://dm-wms-be-service-account.k8s-review.dailymail-tech.uz/oauth/custom/token", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "4e981f81-18c4-4b91-9732-d8400313d225-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "aafe5f8e-9f59-4b2c-9ffa-1cf8e12e5bb7-attachment.json", "type": "application/json"}], "start": 1775432938049, "stop": 1775432938049}, {"name": "Response → 200, trace_id: 23543ba037ca130505f77f99dfd25efb", "status": "passed", "attachments": [{"name": "response.headers", "source": "aaff1a79-8169-446b-add4-12120f6cb2ec-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fd791695-286d-481f-8560-bf0f46144bb1-attachment.json", "type": "application/json"}], "start": 1775432938049, "stop": 1775432938049}], "attachments": [{"name": "cURL", "source": "03e01728-1f4a-4ac4-8e43-01d1967a5165-attachment.txt", "type": "text/plain"}], "start": 1775432938049, "stop": 1775432938049}], "start": 1775432938017, "stop": 1775432938052}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "88492c7d-8ede-4205-95b9-069e4299284f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "f394b012-0eef-465a-b1a8-a94692e19a9b-attachment.json", "type": "application/json"}], "start": 1775432938053, "stop": 1775432938078}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775432938079, "stop": 1775432940438}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432940438, "stop": 1775432941063}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/internal/order/can-be-canceled", "status": "passed", "attachments": [{"name": "Request", "source": "96773168-49c0-47b7-8239-e6be02b222ee-attachment.json", "type": "application/json"}, {"name": "Response", "source": "08b40d79-e259-48b2-a073-49e8a1e3ea3f-attachment.json", "type": "application/json"}], "start": 1775432941063, "stop": 1775432941099}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/wms/order/v2/internal/order/cancel", "status": "passed", "attachments": [{"name": "Request", "source": "2a95942d-8413-49e4-aa76-c8bc3cb7c0b0-attachment.json", "type": "application/json"}, {"name": "Response", "source": "6e386c96-cef3-442e-bb30-e35ad6899ba3-attachment.json", "type": "application/json"}], "start": 1775432941100, "stop": 1775432941423}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775432941424, "stop": 1775432942424}], "attachments": [{"name": "log", "source": "15c25e0f-66fd-4a6e-8f69-6e2b6824c437-attachment.txt", "type": "text/plain"}], "parameters": [{"name": "wms_providers", "value": "{'provider': 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'), 'warehouse': 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": "wms_provider_warehouse_mono_stock", "value": "{'sku_amount': 2}"}], "start": 1775432915467, "stop": 1775432942424, "uuid": "fa3b7cbf-1230-4f2d-843f-ebd3395ac45c", "historyId": "a3c1560d4ed4ee016d7b5a40649af229", "testCaseId": "76c8173385cba91b0d010b459500e8b9", "fullName": "tests.wms.test_order.test_b2c_oversale.TestB2COversale#test_more_orders_than_stock", "labels": [{"name": "feature", "value": "stock_event"}, {"name": "tag", "value": "dm-wms-be-service-order"}, {"name": "parentSuite", "value": "tests.wms.test_order"}, {"name": "suite", "value": "test_b2c_oversale"}, {"name": "subSuite", "value": "TestB2COversale"}, {"name": "host", "value": "runner-1rdl4o-mi-project-9-concurrent-0-g4geoal1"}, {"name": "thread", "value": "22-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.wms.test_order.test_b2c_oversale"}], "titlePath": ["tests", "wms", "test_order", "test_b2c_oversale.py", "TestB2COversale"]}