{"uuid": "99ab53bb-cd59-48b8-ac66-fbce67df997d", "children": ["30aa8db7-c0fd-4b1a-817b-acd32caacb33"], "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": "f8a69e97-3d95-4d5e-a1fa-63a9f9b9f358-attachment.json", "type": "application/json"}], "start": 1775518757676, "stop": 1775518757677}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "e0a2ebd3-41ec-4ff0-8e58-1b00dc11f484-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "4f1495e8-2bc9-40d5-a229-28e8c40b5b01-attachment.json", "type": "application/json"}], "start": 1775518757677, "stop": 1775518757677}], "attachments": [{"name": "cURL", "source": "e1a00529-6622-4bef-a871-ba0cdb7fa41a-attachment.txt", "type": "text/plain"}], "start": 1775518757676, "stop": 1775518757677}, {"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": "68be375b-e950-454f-82f0-880c0dd6bee9-attachment.json", "type": "application/json"}], "start": 1775518757764, "stop": 1775518757765}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "af617fa4-bf06-486c-b9d1-d029931f022e-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "d6f40258-ea1e-4429-8b9b-bc01c0974fbc-attachment.json", "type": "application/json"}], "start": 1775518757765, "stop": 1775518757765}], "attachments": [{"name": "cURL", "source": "00fd1afa-8add-4756-be02-845e1bf40e45-attachment.txt", "type": "text/plain"}], "start": 1775518757764, "stop": 1775518757765}, {"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": "b0fca82e-75dc-4d95-9e9b-359c300ed707-attachment.json", "type": "application/json"}], "start": 1775518757789, "stop": 1775518757789}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "38d9c73b-09d8-4e36-ac44-b4d2eef8110f-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "7aeee5bd-9390-4358-acca-5d2e80dfa9b9-attachment.json", "type": "application/json"}], "start": 1775518757789, "stop": 1775518757789}], "attachments": [{"name": "cURL", "source": "2dfadbfa-ee47-45fc-9c8c-4e6888353dd8-attachment.txt", "type": "text/plain"}], "start": 1775518757789, "stop": 1775518757789}, {"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": "81fe289b-8016-4d7a-be05-b04823236cca-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "db5bd4dd-1d4c-458e-aae8-dd981e214542-attachment.json", "type": "application/json"}], "start": 1775518757876, "stop": 1775518757876}, {"name": "Response → 200, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "5a320c82-b720-43d8-989f-fe17dc2cfe75-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "aab2b7e5-b886-4c92-bcd4-fda7da39a531-attachment.json", "type": "application/json"}], "start": 1775518757876, "stop": 1775518757876}], "attachments": [{"name": "cURL", "source": "c76a9eb6-2160-4195-b060-e487b3aa4bca-attachment.txt", "type": "text/plain"}], "start": 1775518757876, "stop": 1775518757877}, {"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": "ff8e8667-cbbd-42a5-bd34-4895eb8ca568-attachment.json", "type": "application/json"}, {"name": "request.body", "source": "3c433780-a53b-4c20-946e-1356e7fdf81a-attachment.json", "type": "application/json"}], "start": 1775518757966, "stop": 1775518757966}, {"name": "Response → 500, trace_id: None", "status": "passed", "attachments": [{"name": "response.headers", "source": "bedd692d-19c5-4c03-b70a-b5fb6d5579d2-attachment.json", "type": "application/json"}, {"name": "response.body", "source": "fcdaadad-4eee-4ee1-bb9d-2903a0c61e48-attachment.json", "type": "application/json"}], "start": 1775518757966, "stop": 1775518757967}], "attachments": [{"name": "cURL", "source": "1e4913d3-458f-4235-8d0d-bd88b58cca65-attachment.txt", "type": "text/plain"}], "start": 1775518757966, "stop": 1775518757967}], "start": 1775518757597, "stop": 1775518757967}], "start": 1775518757597, "stop": 1775518758151}