1 line
17 KiB
JSON
1 line
17 KiB
JSON
{"uid":"7a6256b9f52d7dd1","name":"Pass request approval requires two confirmations","fullName":"Pass requests: Pass request approval requires two confirmations","historyId":"34532a485fee47211dd0b378a7dc503c","time":{"start":1777975276912,"stop":1777975278500,"duration":1588},"status":"broken","statusMessage":"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","statusTrace":" 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","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"broken","statusMessage":"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","statusTrace":" 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","time":{"start":1777975276913,"stop":1777975278404,"duration":1491},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And prepare nested places and employees for pass request approval flow","time":{"start":1777975278404,"stop":1777975278494,"duration":90},"status":"broken","statusMessage":"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","statusTrace":" 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)","time":{"start":1777975278405,"stop":1777975278406,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"d9d5f3ed5f017e33","name":"createPlaceMultiple response","source":"d9d5f3ed5f017e33.json","type":"application/json","size":136}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)","time":{"start":1777975278406,"stop":1777975278407,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"7308f0daaf1bfcff","name":"createPlaceMultiple response","source":"7308f0daaf1bfcff.json","type":"application/json","size":136}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)","time":{"start":1777975278407,"stop":1777975278409,"duration":2},"status":"passed","steps":[],"attachments":[{"uid":"3eae94cff365c6e8","name":"createPlaceMultiple response","source":"3eae94cff365c6e8.json","type":"application/json","size":136}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createEntrance(RegisterEntranceDTO)","time":{"start":1777975278409,"stop":1777975278410,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"fba7892face52ee4","name":"createEntrance response","source":"fba7892face52ee4.json","type":"application/json","size":16}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777975278410,"stop":1777975278411,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"4b0a567ade55bcfd","name":"createUser(generic) response","source":"4b0a567ade55bcfd.json","type":"application/json","size":57}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_934fb831ee82)","time":{"start":1777975278411,"stop":1777975278412,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"bd1c15f273fcfefd","name":"addUserToPlace(generic) response","source":"bd1c15f273fcfefd.json","type":"application/json","size":130}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777975278413,"stop":1777975278414,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"508d32b6d666f8f","name":"createUser(generic) response","source":"508d32b6d666f8f.json","type":"application/json","size":57}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_f87ea4376860)","time":{"start":1777975278414,"stop":1777975278415,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"c2617d0b161c8ff","name":"addUserToPlace(generic) response","source":"c2617d0b161c8ff.json","type":"application/json","size":130}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777975278415,"stop":1777975278416,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"e149257d53258ea3","name":"createUser(generic) response","source":"e149257d53258ea3.json","type":"application/json","size":57}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=place_67a307dd0574)","time":{"start":1777975278416,"stop":1777975278417,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"dba47b39865c49a9","name":"addUserToPlace(generic) response","source":"dba47b39865c49a9.json","type":"application/json","size":130}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (new approver)","time":{"start":1777975278417,"stop":1777975278418,"duration":1},"status":"passed","steps":[],"attachments":[{"uid":"37359b0d461e1566","name":"createUser(new approver) response","source":"37359b0d461e1566.json","type":"application/json","size":57}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"Auth: get access_token for new approver","time":{"start":1777975278418,"stop":1777975278481,"duration":63},"status":"broken","statusMessage":"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","statusTrace":" 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":[],"attachments":[],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":11,"attachmentStep":false,"stepsCount":12,"hasContent":true},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777975278495,"stop":1777975278495,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And create pass in place #3 for approval flow","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When query passRequests by created pass_id with my token","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is pending","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When approve pass request with my token","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And re-query passRequests by created pass_id with my token","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is pending","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When approve pass request with new employee token","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And query passRequests by created pass_id with new employee token","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is active","time":{"start":1777975278500,"stop":1777975278500,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":11,"attachmentStep":false,"stepsCount":30,"hasContent":true},"afterStages":[],"labels":[{"name":"severity","value":"normal"},{"name":"feature","value":"Pass requests"},{"name":"framework","value":"behave"},{"name":"language","value":"cpython3"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"7a6256b9f52d7dd1.json","parameterValues":[]} |