{"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": "8cece350-a91f-4e4e-9cf8-698ec8256135-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "896e0f7a-bf63-496a-b3f9-d59ed581c282-attachment.json", "type": "application/json"}], "start": 1775605693783, "stop": 1775605693783}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "70757816-fca8-4392-a1f8-d2156e5a7f49-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "358ac2ef-2efe-4443-ac46-d8de10febec4-attachment.json", "type": "application/json"}], "start": 1775605693790, "stop": 1775605693790}], "start": 1775605693784, "stop": 1775605693793}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "ea249be9-e49e-47f6-957d-67c3a7bddbee-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "0cbf9188-a13e-44ec-beba-6129a3898384-attachment.json", "type": "application/json"}], "start": 1775605693809, "stop": 1775605693809}, {"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": "4673bbc3-75b7-4a4d-906f-25e9e34dcd4a-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "56d772f5-e7f4-44ed-9780-5eff9c12b2ae-attachment.json", "type": "application/json"}], "start": 1775605693844, "stop": 1775605693845}, {"name": "Response → 200, trace_id: 09ed997647fa3a8e495d7d6b27c4a508", "status": "passed", "attachments": [{"name": "response.headers", "source": "cecfef02-dcd0-492e-abb8-6438d0cbc024-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "447178a6-74c5-4c89-b8ec-1ea59f09f659-attachment.json", "type": "application/json"}], "start": 1775605693845, "stop": 1775605693845}], "attachments": [{"name": "cURL", "source": "785b609d-a42d-4494-8c5a-36b02082bfa0-attachment.txt", "type": "text/plain"}], "start": 1775605693844, "stop": 1775605693845}], "start": 1775605693813, "stop": 1775605693848}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "7fcd14b2-e548-40c5-a7ce-5d034c33d46a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "4a75be5c-c539-4b29-ba1f-47bf8a7b54ef-attachment.json", "type": "application/json"}], "start": 1775605693851, "stop": 1775605693883}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775605693884, "stop": 1775605696272}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605696273, "stop": 1775605697896}, {"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": "6719025d-2938-4949-9d0b-6ed018bd2dd5-attachment.json", "type": "application/json"}, {"name": "Response", "source": "5572873c-14d6-4b57-ab4a-0c28a181ef9d-attachment.json", "type": "application/json"}], "start": 1775605697896, "stop": 1775605697933}, {"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": "7078723e-c26d-4c6e-9849-fafebed39c1f-attachment.json", "type": "application/json"}, {"name": "Response", "source": "53bc254d-d68b-40b2-bda6-64a35d7fb7fe-attachment.json", "type": "application/json"}], "start": 1775605697934, "stop": 1775605698270}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605698271, "stop": 1775605700825}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "cab8fd35-15e5-4169-a91d-ccc38c655e49-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "13155423-eac6-4065-b50b-6396040327c2-attachment.json", "type": "application/json"}], "start": 1775605700831, "stop": 1775605700832}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "50cada9c-69df-4c3e-9fbe-1da192744404-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "87337106-e661-49c9-be1f-9c2bc711c7e3-attachment.json", "type": "application/json"}], "start": 1775605700832, "stop": 1775605700832}], "start": 1775605700832, "stop": 1775605700833}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "2ab6af00-f3d5-488b-a9c7-c57080db0018-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "e4273677-d95b-4be5-a57d-e997f9a1fbb2-attachment.json", "type": "application/json"}], "start": 1775605700843, "stop": 1775605700843}, {"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": "4725f60d-9b25-4db0-b6c4-e4f46cbd672d-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "6660253f-0292-4d43-8ec3-bf4e95f524a5-attachment.json", "type": "application/json"}], "start": 1775605700875, "stop": 1775605700875}, {"name": "Response → 200, trace_id: 4d51a3174b579e14b40b3ea30dd0b92a", "status": "passed", "attachments": [{"name": "response.headers", "source": "133e9f6e-b3cc-40c7-babc-22beec8980a7-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fd1a38ae-3906-4d81-8cfc-37388adb2107-attachment.json", "type": "application/json"}], "start": 1775605700875, "stop": 1775605700875}], "attachments": [{"name": "cURL", "source": "d0130de4-541a-4e69-baf0-382722e0d9d1-attachment.txt", "type": "text/plain"}], "start": 1775605700875, "stop": 1775605700875}], "start": 1775605700844, "stop": 1775605700878}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "9c55d6e7-4b6d-4b0e-aa07-8dc090fb8e64-attachment.json", "type": "application/json"}, {"name": "Response", "source": "a1961579-a993-4807-a53f-1814aa4c8780-attachment.json", "type": "application/json"}], "start": 1775605700879, "stop": 1775605700906}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775605700906, "stop": 1775605703249}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605703249, "stop": 1775605704384}, {"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": "8d11ac0b-3eda-4aa0-95b5-79e10997d2d9-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c57cd673-b625-49eb-bcc9-e179288e2325-attachment.json", "type": "application/json"}], "start": 1775605704384, "stop": 1775605704417}, {"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": "6dc2d2e2-a2f8-421b-8623-d6c5c859b5aa-attachment.json", "type": "application/json"}, {"name": "Response", "source": "2974949d-e855-47c7-8b81-9cfb8bb95480-attachment.json", "type": "application/json"}], "start": 1775605704418, "stop": 1775605704750}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605704752, "stop": 1775605706879}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "98245a3a-5771-43af-9ed6-eae3155a6d20-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "763c1adb-0b35-4473-bcf1-dbb373e9dbaa-attachment.json", "type": "application/json"}], "start": 1775605706886, "stop": 1775605706886}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "71bec4b0-9de3-4eda-8bcb-4c9ee7242b22-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "eaa46aa0-aad1-4e0b-ac7c-1464b5e99978-attachment.json", "type": "application/json"}], "start": 1775605706887, "stop": 1775605706887}], "start": 1775605706886, "stop": 1775605706888}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "5dd0322d-14f0-4504-b17b-f4bd3fccaaed-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "5a33c3f6-57cf-416e-ac46-da7483eb20fc-attachment.json", "type": "application/json"}], "start": 1775605706890, "stop": 1775605706890}, {"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": "dcfead59-0826-44e3-a0ee-716d9d75a8f7-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "a8e85bae-e04c-46fa-ae1f-2f2a43a42f1f-attachment.json", "type": "application/json"}], "start": 1775605706921, "stop": 1775605706921}, {"name": "Response → 200, trace_id: 482128065ce700ed9e3685fb7474b7b0", "status": "passed", "attachments": [{"name": "response.headers", "source": "ca178eca-21cb-48b5-b84f-242778f7a0eb-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "40c55d44-023a-41be-88d1-45c3a25592ba-attachment.json", "type": "application/json"}], "start": 1775605706921, "stop": 1775605706921}], "attachments": [{"name": "cURL", "source": "c672ae34-8762-4edb-983f-b1980ecdb69b-attachment.txt", "type": "text/plain"}], "start": 1775605706921, "stop": 1775605706921}], "start": 1775605706891, "stop": 1775605706925}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "6d6bdac2-534a-416a-ad01-4a83d50d7b11-attachment.json", "type": "application/json"}, {"name": "Response", "source": "83de06ca-3107-4005-8713-7fcf5be1e528-attachment.json", "type": "application/json"}], "start": 1775605706927, "stop": 1775605706954}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775605706955, "stop": 1775605709311}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605709311, "stop": 1775605710937}, {"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": "3eb3d5f0-84ae-4a4a-ada8-048d390998dd-attachment.json", "type": "application/json"}, {"name": "Response", "source": "65d26b0f-5849-4598-987e-d9714f7a199c-attachment.json", "type": "application/json"}], "start": 1775605710937, "stop": 1775605710971}, {"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": "c4aee832-7a16-48e8-b08a-3b51d4b8f4ec-attachment.json", "type": "application/json"}, {"name": "Response", "source": "141b60f4-ad29-4401-8024-e22f06be0569-attachment.json", "type": "application/json"}], "start": 1775605710972, "stop": 1775605711307}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605711308, "stop": 1775605713860}, {"name": "db.request SQLAlchemy query SELECT → dm_wms_be_service_availability ", "status": "passed", "attachments": [{"name": "query", "source": "3e82a028-2114-495c-9b67-008290aa20cc-attachment.txt", "type": "text/plain"}, {"name": "result", "source": "9ba9eba1-0695-4f43-b120-1e90bed6b8b0-attachment.json", "type": "application/json"}], "start": 1775605713865, "stop": 1775605713866}, {"name": "AssemblyPackingTable add to database", "status": "passed", "steps": [{"name": "SQLAlchemy query INSERT ", "status": "passed", "attachments": [{"name": "query", "source": "f0083b10-8d00-4d98-af56-cdb6cb6c1898-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "bbde3696-0504-4070-a27d-de40997df721-attachment.json", "type": "application/json"}], "start": 1775605713866, "stop": 1775605713866}], "start": 1775605713866, "stop": 1775605713867}, {"name": "SQLAlchemy query UNDEFINED ", "status": "passed", "attachments": [{"name": "query", "source": "4390160e-f33f-42c3-a682-4c4ed3632b93-attachment.txt", "type": "text/plain"}, {"name": "params", "source": "2d2ab88f-4fb4-464a-9609-d99b6400287e-attachment.json", "type": "application/json"}], "start": 1775605713869, "stop": 1775605713870}, {"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": "0649ca9a-6620-4232-aba3-b36fa27c7780-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "2df35bb9-3340-4633-8dd0-b852909b70d2-attachment.json", "type": "application/json"}], "start": 1775605713899, "stop": 1775605713899}, {"name": "Response → 200, trace_id: 61a46db3f7696b0eb11da6f63fbdc28e", "status": "passed", "attachments": [{"name": "response.headers", "source": "4dfc0045-b0c6-4b90-837c-deb3398d467d-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fcffe31b-f6c5-4413-b6dc-8f6a4655b34e-attachment.json", "type": "application/json"}], "start": 1775605713899, "stop": 1775605713900}], "attachments": [{"name": "cURL", "source": "0b95e076-a1cc-48ff-ad59-481a017715bb-attachment.txt", "type": "text/plain"}], "start": 1775605713899, "stop": 1775605713900}], "start": 1775605713870, "stop": 1775605713902}, {"name": "POST → https://dm-ff-be-facade-gateway.k8s-review.dailymail-tech.uz/supply/ya/api/v1/order", "status": "passed", "attachments": [{"name": "Request", "source": "e15a74b5-9345-43fb-adaa-5b79dd84da0a-attachment.json", "type": "application/json"}, {"name": "Response", "source": "c3e8bf04-5d76-446c-b315-2584291fa44b-attachment.json", "type": "application/json"}], "start": 1775605713904, "stop": 1775605713933}, {"name": "Waiter function: wait_order_order_by_platform_tracking_code", "status": "passed", "start": 1775605713934, "stop": 1775605716313}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605716313, "stop": 1775605717941}, {"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": "1100ba38-84bd-4854-9836-7cab30047914-attachment.json", "type": "application/json"}, {"name": "Response", "source": "ea060188-8ed0-4c00-9235-b12ed82e5eb7-attachment.json", "type": "application/json"}], "start": 1775605717942, "stop": 1775605717976}, {"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": "242c5f3a-75f0-4c50-a6a1-5de7dd10f948-attachment.json", "type": "application/json"}, {"name": "Response", "source": "5ddf4b6e-ae51-4e66-a697-bc66dddc20f2-attachment.json", "type": "application/json"}], "start": 1775605717977, "stop": 1775605718314}, {"name": "Waiter function: wait_stock_event_msg", "status": "passed", "start": 1775605718315, "stop": 1775605720870}], "attachments": [{"name": "log", "source": "ebe7e785-50c8-453e-9714-195c338fe0ca-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": 1775605693768, "stop": 1775605720870, "uuid": "7d5dca24-cbd1-46cf-ac01-7afee0e58939", "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-s7hqs9cr"}, {"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"]}