Noob_test/allure-results/326ee238-ff86-43a2-8384-31bc3f2889fd-result.json
2026-05-15 11:34:24 +03:00

1 line
10 KiB
JSON

{"name": "Pass request approval requires two confirmations", "status": "broken", "statusDetails": {"message": "RuntimeError: Auth HTTP 401: {\"type\":\"Client Error\",\"status\":401,\"message\":\"Unauthorized\",\"description\":\"Bad credentials\",\"data\":{},\"stack\":\"Error: Unauthorized\\n at /usr/src/app/dist/infrastructure/keycloak/keycloak.service.js:105:19\\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"}\n", "trace": " File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\model.py\", line 1991, in run\n match.run(runner.context)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\matchers.py\", line 105, in run\n self.func(context, *args, **kwargs)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"Pass_request\\features\\steps\\pass_request_approval_steps.py\", line 13, in step_prepare_nested_places_and_employees\n td.prepare_pass_request_approval_flow()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 727, in prepare_pass_request_approval_flow\n new_token, new_emp = self.create_new_employee_with_pass_requests_permissions()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 674, in create_new_employee_with_pass_requests_permissions\n new_token = get_access_token(username=username, password=password, grant_type=\"password\")\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\auth_as_employer.py\", line 73, in get_access_token\n raise RuntimeError(f\"Auth HTTP {e.code}: {body}\") from e\n"}, "steps": [{"name": "When get access token", "status": "passed", "start": 1777975276913, "stop": 1777975278404}, {"name": "And prepare nested places and employees for pass request approval flow", "status": "broken", "statusDetails": {"message": "RuntimeError: Auth HTTP 401: {\"type\":\"Client Error\",\"status\":401,\"message\":\"Unauthorized\",\"description\":\"Bad credentials\",\"data\":{},\"stack\":\"Error: Unauthorized\\n at /usr/src/app/dist/infrastructure/keycloak/keycloak.service.js:105:19\\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"}\n", "trace": " File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\model.py\", line 1991, in run\n match.run(runner.context)\n ~~~~~~~~~^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\AppData\\Local\\Python\\pythoncore-3.14-64\\Lib\\site-packages\\behave\\matchers.py\", line 105, in run\n self.func(context, *args, **kwargs)\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"Pass_request\\features\\steps\\pass_request_approval_steps.py\", line 13, in step_prepare_nested_places_and_employees\n td.prepare_pass_request_approval_flow()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 727, in prepare_pass_request_approval_flow\n new_token, new_emp = self.create_new_employee_with_pass_requests_permissions()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 674, in create_new_employee_with_pass_requests_permissions\n new_token = get_access_token(username=username, password=password, grant_type=\"password\")\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\auth_as_employer.py\", line 73, in get_access_token\n raise RuntimeError(f\"Auth HTTP {e.code}: {body}\") from e\n"}, "steps": [{"name": "GraphQL: createPlaceMultiple (passreq-place-1, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "0f0b52a9-ee83-4237-8bc3-be82f257c14b-attachment.json", "type": "application/json"}], "start": 1777975278405, "stop": 1777975278406}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "a1d8c23b-643d-485c-a4ff-338feec0bee3-attachment.json", "type": "application/json"}], "start": 1777975278406, "stop": 1777975278407}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "35a9bbee-8853-4f85-8a4a-dc8ec7a29e53-attachment.json", "type": "application/json"}], "start": 1777975278407, "stop": 1777975278409}, {"name": "GraphQL: createEntrance(RegisterEntranceDTO)", "status": "passed", "attachments": [{"name": "createEntrance response", "source": "45b95337-9063-4bcb-9d2d-91bbcfecd98c-attachment.json", "type": "application/json"}], "start": 1777975278409, "stop": 1777975278410}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "096e605b-6709-4cc3-aa3b-b616a4806f35-attachment.json", "type": "application/json"}], "start": 1777975278410, "stop": 1777975278411}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_934fb831ee82)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "e8341136-b35f-4532-86a5-61650b088722-attachment.json", "type": "application/json"}], "start": 1777975278411, "stop": 1777975278412}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "9abc502f-29ed-45bd-a891-f9f0f2966a3f-attachment.json", "type": "application/json"}], "start": 1777975278413, "stop": 1777975278414}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_f87ea4376860)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "0895f832-71e4-4351-81df-b1f8b55b64c5-attachment.json", "type": "application/json"}], "start": 1777975278414, "stop": 1777975278415}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "cbf51130-354d-4032-993c-d4e35ad46291-attachment.json", "type": "application/json"}], "start": 1777975278415, "stop": 1777975278416}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_67a307dd0574)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "e272f22b-c490-4a95-a665-991351fce059-attachment.json", "type": "application/json"}], "start": 1777975278416, "stop": 1777975278417}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "2bfaf6a3-b08d-48b8-897a-6054f4e33f39-attachment.json", "type": "application/json"}], "start": 1777975278417, "stop": 1777975278418}, {"name": "Auth: get access_token for new approver", "status": "broken", "statusDetails": {"message": "RuntimeError: Auth HTTP 401: {\"type\":\"Client Error\",\"status\":401,\"message\":\"Unauthorized\",\"description\":\"Bad credentials\",\"data\":{},\"stack\":\"Error: Unauthorized\\n at /usr/src/app/dist/infrastructure/keycloak/keycloak.service.js:105:19\\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\"}\n", "trace": " File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 674, in create_new_employee_with_pass_requests_permissions\n new_token = get_access_token(username=username, password=password, grant_type=\"password\")\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\auth_as_employer.py\", line 73, in get_access_token\n raise RuntimeError(f\"Auth HTTP {e.code}: {body}\") from e\n"}, "start": 1777975278418, "stop": 1777975278481}], "start": 1777975278404, "stop": 1777975278494}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975278495, "stop": 1777975278495}, {"name": "And create pass in place #3 for approval flow", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "When query passRequests by created pass_id with my token", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "When approve pass request with my token", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}, {"name": "Then pass request status is active", "status": "skipped", "start": 1777975278500, "stop": 1777975278500}], "start": 1777975276912, "stop": 1777975278500, "uuid": "f1285dc0-00e5-411e-9aca-f54615b58971", "historyId": "34532a485fee47211dd0b378a7dc503c", "testCaseId": "a55790f192c201485f73bc55e15e278d", "fullName": "Pass requests: Pass request approval requires two confirmations", "labels": [{"name": "severity", "value": "normal"}, {"name": "feature", "value": "Pass requests"}, {"name": "framework", "value": "behave"}, {"name": "language", "value": "cpython3"}], "titlePath": ["Pass_request", "features", "Pass requests"]}