{"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": "d0376574-4439-40a8-8314-a3395c97c198-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "398bd227-16c7-43b6-8028-f2c5611e97fd-attachment.json", "type": "application/json"}], "start": 1775692123631, "stop": 1775692123631}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "cdb346e8-f1db-430a-ad17-67547ba876ef-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "d8609250-c181-45c8-9cf4-7e2331a89839-attachment.json", "type": "application/json"}], "start": 1775692123638, "stop": 1775692123638}], "start": 1775692123631, "stop": 1775692123641}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "8f6a34a4-2752-4674-8ad0-7727cfbbe08b-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "fe67664a-d80d-4b7f-850e-e02675061bc3-attachment.json", "type": "application/json"}], "start": 1775692123649, "stop": 1775692123649}, {"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": "4a480dbb-9f59-41c7-b47d-f0ddf32bd968-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "839d379c-2735-4a14-9a33-48bad143cc97-attachment.json", "type": "application/json"}], "start": 1775692123679, "stop": 1775692123680}, {"name": "Response → 200, trace_id: f92bcb9be7f1ad7fff03f8d2faf5bc0c", "status": "passed", "attachments": [{"name": "response.headers", "source": "340e127c-cf21-446d-88b8-6f444abd9884-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4f5dd0c4-ec41-42d6-8ce6-c355e86c6b1d-attachment.json", "type": "application/json"}], "start": 1775692123680, "stop": 1775692123680}], "attachments": [{"name": "cURL", "source": "8e284816-6080-4be5-91cb-283172b8d668-attachment.txt", "type": "text/plain"}], "start": 1775692123679, "stop": 1775692123680}], "start": 1775692123650, "stop": 1775692123682}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "ccc113be-b789-48b4-b2bc-c095fe7eed3a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "2ee529ae-00b5-4ec5-9df3-acc9c9f5b3b5-attachment.json", "type": "application/json"}], "start": 1775692123685, "stop": 1775692123715}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775692123716, "stop": 1775692126089}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692126089, "stop": 1775692127716}, {"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": "0ecb307b-25ba-43f2-a07c-a42d6ef74e8c-attachment.json", "type": "application/json"}, {"name": "Response", "source": "0e1d78d6-1ec0-497a-a437-93696a535b5a-attachment.json", "type": "application/json"}], "start": 1775692127716, "stop": 1775692127754}, {"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": "9dc65685-ab48-482d-b21a-d0084b88348a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "72a079d4-67ff-4f43-93b2-47878356014c-attachment.json", "type": "application/json"}], "start": 1775692127755, "stop": 1775692128088}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692128090, "stop": 1775692129717}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "a21741b6-7688-4e9b-8793-02dcb05d0864-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "2f81a0cf-1748-4cba-8f14-c564e32b663a-attachment.json", "type": "application/json"}], "start": 1775692129723, "stop": 1775692129724}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "0c02d0b2-1148-4eba-98ad-51a201d5f5f2-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "f6b36e7a-ded6-4891-b44b-7c09b43073e8-attachment.json", "type": "application/json"}], "start": 1775692129725, "stop": 1775692129725}], "start": 1775692129724, "stop": 1775692129726}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "7e15245e-604c-4831-b900-b78c17ff0c36-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "ef8a1a17-0de0-4ea5-8ce2-d3c834db5a23-attachment.json", "type": "application/json"}], "start": 1775692129736, "stop": 1775692129736}, {"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": "c42ca57b-753f-4e38-a1e5-12e59a7fcb9c-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "647dea3b-19c1-4ee3-826f-23f1fb761064-attachment.json", "type": "application/json"}], "start": 1775692129768, "stop": 1775692129768}, {"name": "Response → 200, trace_id: e18a6893b1860a7177271e021d5bf7d9", "status": "passed", "attachments": [{"name": "response.headers", "source": "fffa2a86-70b1-4a8b-9745-3d4c43afe68b-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "aa5a6eee-3042-4b18-9044-e68963c7b9ec-attachment.json", "type": "application/json"}], "start": 1775692129768, "stop": 1775692129768}], "attachments": [{"name": "cURL", "source": "e7fced0a-cf24-4720-986e-f47fa7ef1189-attachment.txt", "type": "text/plain"}], "start": 1775692129768, "stop": 1775692129769}], "start": 1775692129737, "stop": 1775692129771}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "7c302883-0d92-44c9-a42a-22fb29f6116a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "6e9ae0dd-562d-4164-a67c-a240f196cb0e-attachment.json", "type": "application/json"}], "start": 1775692129773, "stop": 1775692129798}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775692129798, "stop": 1775692132136}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692132136, "stop": 1775692133264}, {"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": "b5393b9c-0739-42d5-ac5a-ed3bb1b9af41-attachment.json", "type": "application/json"}, {"name": "Response", "source": "10c497c5-ad7b-4129-a618-59262d4d494b-attachment.json", "type": "application/json"}], "start": 1775692133264, "stop": 1775692133302}, {"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": "789f33ea-0f0b-49db-9b26-0ff9d2058238-attachment.json", "type": "application/json"}, {"name": "Response", "source": "16726525-1cc4-4a2f-9186-d432fd5ebe39-attachment.json", "type": "application/json"}], "start": 1775692133303, "stop": 1775692133639}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692133640, "stop": 1775692134353}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "7d5a9511-fd77-49d3-9bda-b16efcd61b4e-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "655d792b-1842-425a-9a3e-0ac350e472f2-attachment.json", "type": "application/json"}], "start": 1775692134358, "stop": 1775692134358}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "3a7120c5-6bad-4a0d-a05d-ad81c4e751e1-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "0d51f2f7-2d54-4f75-a3fb-e68ca0a3df8e-attachment.json", "type": "application/json"}], "start": 1775692134359, "stop": 1775692134359}], "start": 1775692134359, "stop": 1775692134361}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "40484335-41cc-4bea-a582-5c9ba03342c4-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "8e8daf38-a6df-46ed-89a2-990e33a6db1a-attachment.json", "type": "application/json"}], "start": 1775692134363, "stop": 1775692134363}, {"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": "27127b8d-e08c-4a73-a5bd-1791551ab9d0-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "e2a94e02-efe5-4d0b-80c4-d01def1dbc55-attachment.json", "type": "application/json"}], "start": 1775692134395, "stop": 1775692134395}, {"name": "Response → 200, trace_id: 12c0fb99cb625979a4506a042b224513", "status": "passed", "attachments": [{"name": "response.headers", "source": "ff81c295-8875-4954-b04f-591a3c1fa487-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "722a8e08-2477-40f1-9689-f5b18ad52d77-attachment.json", "type": "application/json"}], "start": 1775692134395, "stop": 1775692134395}], "attachments": [{"name": "cURL", "source": "a4cf3613-c31d-4ff8-99bf-c36e8410d5e3-attachment.txt", "type": "text/plain"}], "start": 1775692134395, "stop": 1775692134395}], "start": 1775692134364, "stop": 1775692134399}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "86a1b2da-2d80-44f7-99a6-7f8d4acc7a17-attachment.json", "type": "application/json"}, {"name": "Response", "source": "2a777c99-bd89-4751-bacc-c116feede780-attachment.json", "type": "application/json"}], "start": 1775692134401, "stop": 1775692134434}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775692134435, "stop": 1775692136775}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692136775, "stop": 1775692137404}, {"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": "cf5fb068-b531-4450-b16a-33162d79e857-attachment.json", "type": "application/json"}, {"name": "Response", "source": "b92a3183-5bdf-490c-acde-8ed71a14331f-attachment.json", "type": "application/json"}], "start": 1775692137405, "stop": 1775692137440}, {"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": "5121f1f4-f9c4-427c-b0e9-30003ddf05f5-attachment.json", "type": "application/json"}, {"name": "Response", "source": "f04ba35a-0648-48e9-8f90-524b7bb16451-attachment.json", "type": "application/json"}], "start": 1775692137441, "stop": 1775692137771}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692137773, "stop": 1775692139900}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "3ed6b1d7-29a4-4f6e-9733-a030535bde6d-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "cf6bbed7-5dc4-4f31-9ddb-629da33eeba1-attachment.json", "type": "application/json"}], "start": 1775692139905, "stop": 1775692139906}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "b5bef1ac-ac64-4619-aa14-c1dc9dccc479-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "5db62144-3ad0-4d37-b546-56757ac102da-attachment.json", "type": "application/json"}], "start": 1775692139906, "stop": 1775692139906}], "start": 1775692139906, "stop": 1775692139907}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "47af66b3-b5e9-43f1-a514-48b3507fb543-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "5d795cad-1dc0-4597-8e26-f186137a943f-attachment.json", "type": "application/json"}], "start": 1775692139909, "stop": 1775692139910}, {"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": "97d18099-b540-4f2c-a6d9-199962b8ca32-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "ebe2f56c-b54e-4a15-9637-26964d49af88-attachment.json", "type": "application/json"}], "start": 1775692139940, "stop": 1775692139940}, {"name": "Response → 200, trace_id: de8fc99f4fe8eec96287058a95e271fe", "status": "passed", "attachments": [{"name": "response.headers", "source": "19a8060b-7b64-44ae-943e-b9aaf81bc457-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "df137e10-f714-4af6-b0ed-7e05ef607eb1-attachment.json", "type": "application/json"}], "start": 1775692139940, "stop": 1775692139941}], "attachments": [{"name": "cURL", "source": "f326a964-5438-494c-9037-dca444d6682f-attachment.txt", "type": "text/plain"}], "start": 1775692139940, "stop": 1775692139941}], "start": 1775692139910, "stop": 1775692139944}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "5164fb6d-b8d8-43e9-9d05-016badb3ac57-attachment.json", "type": "application/json"}, {"name": "Response", "source": "27100cc4-a1fe-4c40-bb11-bbe75e59900c-attachment.json", "type": "application/json"}], "start": 1775692139946, "stop": 1775692139976}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775692139977, "stop": 1775692142317}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692142317, "stop": 1775692143940}, {"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": "d96219e0-9aa9-49b9-8f91-52b08787869d-attachment.json", "type": "application/json"}, {"name": "Response", "source": "8e2c72ac-83ed-466a-b11e-9e4ebd51b9b5-attachment.json", "type": "application/json"}], "start": 1775692143940, "stop": 1775692143979}, {"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": "c28386e9-28f7-43ae-ba3f-125068056ba8-attachment.json", "type": "application/json"}, {"name": "Response", "source": "3f9970c4-1027-4c35-9fcd-ca2d8603481a-attachment.json", "type": "application/json"}], "start": 1775692143980, "stop": 1775692144316}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775692144318, "stop": 1775692146446}], "attachments": [{"name": "log", "source": "70159cb7-9bfd-4f46-831d-20b65754a296-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": 1775692123617, "stop": 1775692146446, "uuid": "5bcf3b88-711e-43ac-a69d-c1ca14f162c1", "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-hrdeb7ax"}, {"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"]}