{"uuid": "c59f7a7d-fca2-4cdd-b15b-7125131845b3", "children": ["8a6d8787-7c4f-4266-87ee-545de20dbf16"], "befores": [{"name": "get_fmcg_invoice", "status": "failed", "statusDetails": {"message": "AssertionError: Handler: PUT https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item; \n Expected status code: 200; \n Actual status code: 500; \n Response body: {\"message\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\",\"localizedMessage\":\"query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2\"}; \n X-Aer-Trace-Id: \n", "trace": "  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 38, in run_old_style_hookwrapper\n    res = yield\n          ^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 139, in _multicall\n    teardown.throw(exception)\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 53, in run_old_style_hookwrapper\n    return result.get_result()\n           ^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_result.py\", line 103, in get_result\n    raise exc.with_traceback(tb)\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 38, in run_old_style_hookwrapper\n    res = yield\n          ^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 139, in _multicall\n    teardown.throw(exception)\n  File \"/usr/local/lib/python3.11/site-packages/_pytest/setuponly.py\", line 36, in pytest_fixture_setup\n    return (yield)\n            ^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/pluggy/_callers.py\", line 121, in _multicall\n    res = hook_impl.function(*args)\n          ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/_pytest/fixtures.py\", line 1202, in pytest_fixture_setup\n    result = call_fixture_func(fixturefunc, request, kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/_pytest/fixtures.py\", line 915, in call_fixture_func\n    fixture_result = fixturefunc(**kwargs)\n                     ^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/src/framework/fmcg/fixtures/lk.py\", line 46, in get_fmcg_invoice\n    new_invoice = FMCGInvoiceBuilder(headers=get_fmcg_auth_header).create_invoice()\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/src/framework/fmcg/builders/lk/invoice.py\", line 33, in create_invoice\n    cart_items = FMCGCartBuilder(headers=self.headers).fill_cart().current_cart\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/app/src/framework/fmcg/builders/lk/cart.py\", line 24, in fill_cart\n    CartApi(headers=self.headers).api_v1_cart_add_item_put(body=request_body, **invoice_data).data.items\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py\", line 55, in api_v1_cart_add_item_put\n    return self.api_v1_cart_add_item_put_with_http_info(body, **kwargs)  # noqa: E501\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api/cart_api.py\", line 129, in api_v1_cart_add_item_put_with_http_info\n    return self.api_client.call_api(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py\", line 339, in call_api\n    return self.__call_api(resource_path, method,\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/qacl_dm_fmcg_be_service_lk/api_client.py\", line 172, in __call_api\n    assert response_data.status == expected_status_code, \\\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"}, "steps": [{"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/categories", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "fe66f504-2dd2-4ccb-9111-e3702c129f4f-attachment.json", "type": "application/json"}], "start": 1775518757775, "stop": 1775518757775}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "78ad1eb1-e6d7-4236-af42-7ad64fd16a22-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "467e7ace-7a2b-4f53-a85e-4a4e9ba8860a-attachment.json", "type": "application/json"}], "start": 1775518757775, "stop": 1775518757775}], "attachments": [{"name": "cURL", "source": "d4355f57-d0c3-4f38-94bf-d956d86439c5-attachment.txt", "type": "text/plain"}], "start": 1775518757775, "stop": 1775518757775}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/unit", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "f4ee653f-b5ff-445e-9945-1cd33eb529b8-attachment.json", "type": "application/json"}], "start": 1775518757862, "stop": 1775518757862}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "2e15e2fe-d42c-4ad3-85f5-4c50d24b96d2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "e1b38598-55e3-4afb-9e47-e895a206fa9c-attachment.json", "type": "application/json"}], "start": 1775518757862, "stop": 1775518757862}], "attachments": [{"name": "cURL", "source": "b19f25e6-5936-444e-9688-e5de5e2c2051-attachment.txt", "type": "text/plain"}], "start": 1775518757862, "stop": 1775518757862}, {"name": "GET → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/packingtype", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "3c18e443-f008-4c08-b2c8-3fc17baaf91b-attachment.json", "type": "application/json"}], "start": 1775518757889, "stop": 1775518757889}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "481f13cd-798d-405b-a2b3-b3e3c3863e17-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7a791b80-dcb2-4668-9958-849ef477da2b-attachment.json", "type": "application/json"}], "start": 1775518757889, "stop": 1775518757889}], "attachments": [{"name": "cURL", "source": "94793bfa-303b-486f-abc0-88d9975ef07e-attachment.txt", "type": "text/plain"}], "start": 1775518757889, "stop": 1775518757889}, {"name": "POST → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/sku", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "f2ff459d-6040-4cf8-b273-bf2814d2f11c-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "fa419e75-4d4b-4e11-9a3d-3a6e32b72633-attachment.json", "type": "application/json"}], "start": 1775518758060, "stop": 1775518758060}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "d101e79e-b399-4d42-b3c6-c004c8736c2f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "db95d67c-5917-4960-ac41-12b900f3fcba-attachment.json", "type": "application/json"}], "start": 1775518758060, "stop": 1775518758061}], "attachments": [{"name": "cURL", "source": "9d5a1945-256c-41df-a6b1-ff05f8244bb8-attachment.txt", "type": "text/plain"}], "start": 1775518758060, "stop": 1775518758061}, {"name": "PUT → https://dm-fmcg-be-service-lk.k8s-review.dailymail-tech.uz/api/v1/cart/add-item", "status": "passed", "steps": [{"name": "Request", "status": "passed", "attachments": [{"name": "request.headers", "source": "04695f9b-627d-475d-bbe8-fbe5bf4bcefc-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "11baefa7-ef59-4840-abcf-224dbde8dc67-attachment.json", "type": "application/json"}], "start": 1775518758169, "stop": 1775518758170}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "c6684298-4453-45ee-bcc1-fec5c8f74f03-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "3dc3f1d2-1e87-414a-9bbb-dec6684b3c55-attachment.json", "type": "application/json"}], "start": 1775518758170, "stop": 1775518758170}], "attachments": [{"name": "cURL", "source": "2ed77697-80ab-4588-a502-7ad6a8d1b982-attachment.txt", "type": "text/plain"}], "start": 1775518758169, "stop": 1775518758170}], "start": 1775518757669, "stop": 1775518758170}], "start": 1775518757669, "stop": 1775518758405}