{"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": "06155803-bf35-4bee-ab67-a2e2ead9ebb9-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "2490f530-ef74-4eac-994c-c1cf49489c62-attachment.json", "type": "application/json"}], "start": 1775411548618, "stop": 1775411548618}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "eb18ff43-714e-4acb-a57d-cc7790979846-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "0759e250-91e1-49b3-b637-907ed0c9c617-attachment.json", "type": "application/json"}], "start": 1775411548626, "stop": 1775411548626}], "start": 1775411548618, "stop": 1775411548629}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "c2a2b8b7-3a4a-4999-b5f9-1fb78c03ded5-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "e56b36ab-778a-4f69-ae6f-142606a1a9d3-attachment.json", "type": "application/json"}], "start": 1775411548637, "stop": 1775411548637}, {"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": "f37aa32b-c6b0-4601-a8b0-d715250d1f51-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "5ca43f23-2d92-49eb-afb1-b645af63ed7e-attachment.json", "type": "application/json"}], "start": 1775411548667, "stop": 1775411548668}, {"name": "Response → 200, trace_id: 82643dcc6d8c7c78ab5e94d3f21467bd", "status": "passed", "attachments": [{"name": "response.headers", "source": "5b23973c-38cd-4fc8-bc8a-fd90a8800a5a-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "32386711-7747-4ef1-8c9c-10c5b5b48cfa-attachment.json", "type": "application/json"}], "start": 1775411548668, "stop": 1775411548668}], "attachments": [{"name": "cURL", "source": "9e5adc20-4180-4049-b7b1-e011b226ee16-attachment.txt", "type": "text/plain"}], "start": 1775411548667, "stop": 1775411548668}], "start": 1775411548638, "stop": 1775411548670}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "44ef152d-4fa5-4b09-9905-5f78ab735aa8-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8df06b2b-15b9-45d4-8625-379787b596db-attachment.json", "type": "application/json"}], "start": 1775411548673, "stop": 1775411548701}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775411548702, "stop": 1775411551119}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411551119, "stop": 1775411551743}, {"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": "f3a1687d-be07-4e0a-91fd-22d78ab7b541-attachment.json", "type": "application/json"}, {"name": "Response", "source": "30b8028a-cfde-4b2d-a2b0-063ab8fa299d-attachment.json", "type": "application/json"}], "start": 1775411551743, "stop": 1775411551785}, {"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": "59034177-64da-4897-b50c-0b1887cf4c27-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8021de42-e43b-4501-9804-b0bc1ed7894b-attachment.json", "type": "application/json"}], "start": 1775411551786, "stop": 1775411552116}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411552118, "stop": 1775411553112}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "b2709df5-37c9-4b5d-91cc-febedeb308f8-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "00d25fd3-f1b8-430d-ab80-8b059170e45f-attachment.json", "type": "application/json"}], "start": 1775411553127, "stop": 1775411553128}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "1c6c3894-a110-4fa7-9baa-ee75baf0903e-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "4972ccd5-03a2-4a94-9b5b-65c58f7dbe17-attachment.json", "type": "application/json"}], "start": 1775411553128, "stop": 1775411553128}], "start": 1775411553128, "stop": 1775411553130}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "b3ebe1d8-0c0b-40cf-b05f-e8b31fd77d04-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "f6045000-4819-4672-9a4d-4e9594042d00-attachment.json", "type": "application/json"}], "start": 1775411553138, "stop": 1775411553138}, {"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": "3e2a6076-20dd-4615-84c9-157ff7736217-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "33e07507-5b6d-4b2d-bf11-7d7f21838e67-attachment.json", "type": "application/json"}], "start": 1775411553170, "stop": 1775411553171}, {"name": "Response → 200, trace_id: 5f9cd4f027ee3cb24cedfa80a49a1358", "status": "passed", "attachments": [{"name": "response.headers", "source": "d225077d-0371-463e-a9de-8cd5cfc71999-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "47088296-93f3-4f92-ba3c-669303ff56ce-attachment.json", "type": "application/json"}], "start": 1775411553171, "stop": 1775411553171}], "attachments": [{"name": "cURL", "source": "66f92923-7827-4628-a946-ad8989d1bf36-attachment.txt", "type": "text/plain"}], "start": 1775411553170, "stop": 1775411553171}], "start": 1775411553140, "stop": 1775411553173}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "aabf7913-2b4a-4155-8283-5c5a78307535-attachment.json", "type": "application/json"}, {"name": "Response", "source": "1e28505f-4942-4027-b3b7-6e4ca785d2e3-attachment.json", "type": "application/json"}], "start": 1775411553175, "stop": 1775411553202}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775411553203, "stop": 1775411555583}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411555583, "stop": 1775411556202}, {"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": "a0c5e260-5b31-497c-9eae-ada12081a0b2-attachment.json", "type": "application/json"}, {"name": "Response", "source": "a874e0ab-eb08-4b42-b371-d12f78d3f270-attachment.json", "type": "application/json"}], "start": 1775411556202, "stop": 1775411556238}, {"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": "dcf66dc6-d97d-4c65-91f4-839d56251111-attachment.json", "type": "application/json"}, {"name": "Response", "source": "4ea5cb22-a4cc-4576-87d8-f875cfc5b44c-attachment.json", "type": "application/json"}], "start": 1775411556239, "stop": 1775411556572}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411556573, "stop": 1775411557570}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "76e7fa15-1e82-4634-8df5-51492fa63c39-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "29aee546-7788-49a3-a9de-6366e469d6b7-attachment.json", "type": "application/json"}], "start": 1775411557576, "stop": 1775411557576}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "c50ab33e-939c-47c1-a711-98413c0c2514-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "adb2fde3-005f-47ce-9cbd-999f9425d0f4-attachment.json", "type": "application/json"}], "start": 1775411557577, "stop": 1775411557577}], "start": 1775411557576, "stop": 1775411557579}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "05957fec-0d87-4c31-accd-311346c89cd5-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "5e1d3513-907e-4f94-bbe3-15f991d05612-attachment.json", "type": "application/json"}], "start": 1775411557581, "stop": 1775411557581}, {"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": "f6983e29-6edd-4df0-b441-b35a1307de72-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ea7bc0d3-dc60-4ebc-87a2-28994dbcb671-attachment.json", "type": "application/json"}], "start": 1775411557614, "stop": 1775411557614}, {"name": "Response → 200, trace_id: 2dd07ff2bd423d20ae0de775e8e89f01", "status": "passed", "attachments": [{"name": "response.headers", "source": "2895d56e-6d0d-4906-9844-af051af767e8-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "0ab4de00-d782-48ba-b1c5-fc6bf288a64a-attachment.json", "type": "application/json"}], "start": 1775411557614, "stop": 1775411557615}], "attachments": [{"name": "cURL", "source": "c7c0d48f-ccd1-4e31-9502-0f3aedb03c41-attachment.txt", "type": "text/plain"}], "start": 1775411557614, "stop": 1775411557615}], "start": 1775411557581, "stop": 1775411557617}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "fcdaab19-26f7-4d15-a6ee-cba06b168296-attachment.json", "type": "application/json"}, {"name": "Response", "source": "75f722f1-9f05-43e9-a534-16dd4ddb4e43-attachment.json", "type": "application/json"}], "start": 1775411557620, "stop": 1775411557649}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775411557650, "stop": 1775411560033}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411560033, "stop": 1775411560652}, {"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": "660fa144-5807-4145-a656-458e54da1720-attachment.json", "type": "application/json"}, {"name": "Response", "source": "9da2e9be-56e1-41ab-bdc8-fbd940fa0655-attachment.json", "type": "application/json"}], "start": 1775411560652, "stop": 1775411560689}, {"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": "8ec4bc77-7f8a-4338-97ca-9852f021d927-attachment.json", "type": "application/json"}, {"name": "Response", "source": "e3c8abdd-d746-4900-aeff-ad9e31c1ab4a-attachment.json", "type": "application/json"}], "start": 1775411560690, "stop": 1775411561023}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411561025, "stop": 1775411562487}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "39c9d3df-9dff-4e8e-971a-5bd19e993172-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "1d8fb56e-d284-4069-b9a1-945fae682c5a-attachment.json", "type": "application/json"}], "start": 1775411562493, "stop": 1775411562493}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "43cb6951-2fc2-4cda-a383-1e28baf5f5d1-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "d1b5be25-a17f-4c1d-93c0-de4ef07552d6-attachment.json", "type": "application/json"}], "start": 1775411562494, "stop": 1775411562494}], "start": 1775411562494, "stop": 1775411562495}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "dfdf9219-09f1-469c-914f-035eddeb3de8-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "746d1689-30e2-47c8-98c5-1dfd63638e35-attachment.json", "type": "application/json"}], "start": 1775411562497, "stop": 1775411562497}, {"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": "a1b456ed-c800-4212-aab3-461704fb7aed-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "8fcc2d2a-8b7c-499d-9663-86ffbde2fa96-attachment.json", "type": "application/json"}], "start": 1775411562529, "stop": 1775411562530}, {"name": "Response → 200, trace_id: db69c93bf2e47e792d001d47e9c1f9aa", "status": "passed", "attachments": [{"name": "response.headers", "source": "c12a7c4d-7d10-471c-a84b-3008892692a7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e3c01bdb-7963-41e7-b3cc-e3cc69b36f01-attachment.json", "type": "application/json"}], "start": 1775411562530, "stop": 1775411562530}], "attachments": [{"name": "cURL", "source": "2653fefc-644f-4ecb-93ef-999b7a36b320-attachment.txt", "type": "text/plain"}], "start": 1775411562529, "stop": 1775411562530}], "start": 1775411562498, "stop": 1775411562533}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "0f932592-5655-47b6-83ee-3fd8b6c8f94a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "43b87ee5-3fbb-411b-a3e6-3868515ee345-attachment.json", "type": "application/json"}], "start": 1775411562536, "stop": 1775411562564}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775411562565, "stop": 1775411564920}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411564920, "stop": 1775411565041}, {"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": "071ed55f-961b-4803-b5a0-16959e65a5b3-attachment.json", "type": "application/json"}, {"name": "Response", "source": "d7b1318d-c2b6-433f-825d-e222d4ab0845-attachment.json", "type": "application/json"}], "start": 1775411565041, "stop": 1775411565077}, {"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": "6513239a-61b8-467b-a1a0-67585abe56e5-attachment.json", "type": "application/json"}, {"name": "Response", "source": "3893fbf6-8bf2-4005-a45c-a1cfe9acee63-attachment.json", "type": "application/json"}], "start": 1775411565078, "stop": 1775411565444}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775411565445, "stop": 1775411566986}], "attachments": [{"name": "log", "source": "7128f08f-e352-43e7-953d-8f9faa7f8f0d-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='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": 1775411548602, "stop": 1775411566986, "uuid": "6a1f5613-2117-4445-ae91-f74308e8c37b", "historyId": "7e04002fb5391f2834ff91395d3018f6", "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-rfr6b07k"}, {"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"]}