1 line
22 KiB
JSON
1 line
22 KiB
JSON
{"name": "Pass request approval requires two confirmations", "status": "failed", "statusDetails": {"message": "AssertionError: passRequests не вернул results за 40s. Последний ответ: {'data': {'passRequests': {'results': []}}}\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 31, in step_query_pass_requests_my_token\n resp = td.wait_for_pass_request(token=token, pass_id=getattr(context, \"pass_id\", None))\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 1487, in wait_for_pass_request\n raise AssertionError(f\"passRequests не вернул results за {timeout_s:.0f}s. Последний ответ: {last_resp!r}\")\n"}, "steps": [{"name": "When get access token", "status": "passed", "start": 1777905732934, "stop": 1777905733076}, {"name": "And prepare nested places and employees for pass request approval flow", "status": "passed", "steps": [{"name": "GraphQL: createPlaceMultiple (passreq-place-1, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "6014cb1e-cd0c-4e32-b7ba-7fcf86df507c-attachment.json", "type": "application/json"}], "start": 1777905733077, "stop": 1777905733119}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "3b325e68-9ebd-4e86-9b42-38952eb14723-attachment.json", "type": "application/json"}], "start": 1777905733119, "stop": 1777905733165}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "1d02d0f8-64a8-42ad-9d5a-5d7acb771aec-attachment.json", "type": "application/json"}], "start": 1777905733166, "stop": 1777905733209}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "988d06a7-00ed-428a-8ec7-6095916c08a4-attachment.json", "type": "application/json"}], "start": 1777905733209, "stop": 1777905733256}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8b04532367dfb4b45a64c)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "93fd4823-887d-4689-bf67-830a58224aec-attachment.json", "type": "application/json"}], "start": 1777905733256, "stop": 1777905733323}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "bbe5f125-4dd5-480f-a1bc-5c5c63c63db5-attachment.json", "type": "application/json"}], "start": 1777905733323, "stop": 1777905733362}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8b04517bb1e0c5fc4df7f)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "9d199c79-7574-40c1-a5a3-55833f7e7bec-attachment.json", "type": "application/json"}], "start": 1777905733362, "stop": 1777905733480}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "62fd8292-c717-460a-bc64-5587ebd4eea1-attachment.json", "type": "application/json"}], "start": 1777905733480, "stop": 1777905733525}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8b045c15e6311636d88ed)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "1b0c5916-4aff-4994-b100-f0ef3d9cf757-attachment.json", "type": "application/json"}], "start": 1777905733525, "stop": 1777905733614}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "aa8c9c4c-7690-41b9-8b10-f8ed2e04fdee-attachment.json", "type": "application/json"}], "start": 1777905733614, "stop": 1777905735325}, {"name": "Auth: get access_token for new approver", "status": "passed", "start": 1777905735325, "stop": 1777905735440}, {"name": "GraphQL: addEmployee (new approver with passRequests attrs)", "status": "passed", "attachments": [{"name": "addEmployee(new approver) response", "source": "0f447dd2-9b67-4f57-a757-6989a137b6e4-attachment.json", "type": "application/json"}], "start": 1777905735440, "stop": 1777905735478}], "start": 1777905733076, "stop": 1777905735480}, {"name": "And create pass in place #3 for approval flow", "status": "passed", "steps": [{"name": "GraphQL: createEntrance(RegisterEntranceDTO)", "status": "passed", "attachments": [{"name": "RuntimeError: createEntrance", "source": "e3b0f24e-e39c-4187-ba31-5288cee96abb-attachment.txt", "type": "text/plain"}, {"name": "createEntrance failed (best-effort)", "source": "adc22e34-910c-4007-ac3c-ea7bb911481e-attachment.txt", "type": "text/plain"}], "start": 1777905735480, "stop": 1777905735503}, {"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "94fd6c41-4ebe-405d-8ad5-80736a2d6d2d-attachment.json", "type": "application/json"}], "start": 1777905735503, "stop": 1777905735535}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "422ec886-5e13-491d-acc0-17215ad0e884-attachment.json", "type": "application/json"}], "start": 1777905735535, "stop": 1777905735585}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "a07f3258-d95e-4962-8fb2-354da17aab64-attachment.json", "type": "application/json"}], "start": 1777905735586, "stop": 1777905735644}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "de77eac5-bbc1-485c-b077-7825106318d6-attachment.json", "type": "application/json"}], "start": 1777905735644, "stop": 1777905735708}, {"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "e382828b-e643-423c-ae5a-0dbe4d0d087c-attachment.json", "type": "application/json"}], "start": 1777905735708, "stop": 1777905735953}], "start": 1777905735480, "stop": 1777905735953}, {"name": "When query passRequests by created pass_id with my token", "status": "failed", "statusDetails": {"message": "AssertionError: passRequests не вернул results за 40s. Последний ответ: {'data': {'passRequests': {'results': []}}}\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 31, in step_query_pass_requests_my_token\n resp = td.wait_for_pass_request(token=token, pass_id=getattr(context, \"pass_id\", None))\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 1487, in wait_for_pass_request\n raise AssertionError(f\"passRequests не вернул results за {timeout_s:.0f}s. Последний ответ: {last_resp!r}\")\n"}, "steps": [{"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8ae0618b-5da2-4de8-9dc7-13ee017813c7-attachment.json", "type": "application/json"}], "start": 1777905735955, "stop": 1777905736009}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "99d48bd3-0051-444d-a257-a76fe01cb796-attachment.json", "type": "application/json"}], "start": 1777905737009, "stop": 1777905737075}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "3e9f9be2-deba-4246-968f-2e1fdd6d266e-attachment.json", "type": "application/json"}], "start": 1777905738076, "stop": 1777905738119}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "46a90ee2-56ea-4409-aa60-6bc0f9de025e-attachment.json", "type": "application/json"}], "start": 1777905739119, "stop": 1777905739179}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "14ad02c4-a882-44c1-9bbf-e20594c0963b-attachment.json", "type": "application/json"}], "start": 1777905740180, "stop": 1777905740223}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "402e5ed4-101d-43b0-acd9-3d402ce7ca5b-attachment.json", "type": "application/json"}], "start": 1777905741224, "stop": 1777905741269}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "4921cedf-ed2c-432c-9e56-45e2fefe5239-attachment.json", "type": "application/json"}], "start": 1777905742270, "stop": 1777905742306}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "f9f94191-ac18-4cba-be99-d85ec23c91bb-attachment.json", "type": "application/json"}], "start": 1777905743307, "stop": 1777905743363}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "3355d050-14cd-429c-b371-b6616eed6aea-attachment.json", "type": "application/json"}], "start": 1777905744364, "stop": 1777905744398}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "5201bbf0-1e91-42b7-8645-e788520d915a-attachment.json", "type": "application/json"}], "start": 1777905745399, "stop": 1777905745433}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "b16aed02-815c-44c4-87c4-c706b8ea6a80-attachment.json", "type": "application/json"}], "start": 1777905746434, "stop": 1777905746497}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "10c23715-f0f0-401f-bbd7-c671b3e268cf-attachment.json", "type": "application/json"}], "start": 1777905747498, "stop": 1777905747557}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "d6cb0e2b-047e-4a20-a089-3bced76c63b0-attachment.json", "type": "application/json"}], "start": 1777905748557, "stop": 1777905748596}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "fa9331a1-6fe3-4075-bd9f-6dd6aaa95e44-attachment.json", "type": "application/json"}], "start": 1777905749596, "stop": 1777905749652}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "72921b68-7c60-4e0b-82d9-742c4a0271d1-attachment.json", "type": "application/json"}], "start": 1777905750652, "stop": 1777905750695}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "a9386032-58be-4719-983b-9acdf6f4c789-attachment.json", "type": "application/json"}], "start": 1777905751696, "stop": 1777905751737}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "53628ec7-c58c-4017-a120-1fc24a4d2f8d-attachment.json", "type": "application/json"}], "start": 1777905752737, "stop": 1777905752793}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "3f144cc8-7cdb-4b32-84fe-1033725abad7-attachment.json", "type": "application/json"}], "start": 1777905753793, "stop": 1777905753834}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "950601fc-38fb-4178-82d8-fece003bd5a2-attachment.json", "type": "application/json"}], "start": 1777905754834, "stop": 1777905754872}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "6cb912c4-c8a5-463c-9aab-9acb16005507-attachment.json", "type": "application/json"}], "start": 1777905755872, "stop": 1777905755914}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "9db0c58f-1d70-4c9f-8d10-16c0265d09cc-attachment.json", "type": "application/json"}], "start": 1777905756915, "stop": 1777905756957}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "d5884ba1-7651-4e6a-b146-a81fed319571-attachment.json", "type": "application/json"}], "start": 1777905757958, "stop": 1777905757998}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "62c75d90-7470-4a77-85cd-873495869443-attachment.json", "type": "application/json"}], "start": 1777905758999, "stop": 1777905759041}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "64613f04-1110-4c85-b7a4-1ab1ae5270e1-attachment.json", "type": "application/json"}], "start": 1777905760041, "stop": 1777905760096}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "ee9ad290-4c62-4b58-a9ac-b45000a8dacf-attachment.json", "type": "application/json"}], "start": 1777905761097, "stop": 1777905761136}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "e125b340-9e97-4a25-be85-c61fa0e89af5-attachment.json", "type": "application/json"}], "start": 1777905762137, "stop": 1777905762180}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "22b867f1-80d6-46c4-8677-ab73af9aedb9-attachment.json", "type": "application/json"}], "start": 1777905763181, "stop": 1777905763218}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "73aff9d7-9336-47cb-94e3-ed2bc1559ee9-attachment.json", "type": "application/json"}], "start": 1777905764219, "stop": 1777905764259}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "9aa55fd4-20e0-4b24-aa63-dacce47b2edb-attachment.json", "type": "application/json"}], "start": 1777905765260, "stop": 1777905765304}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "92f3515e-94ac-4478-9903-7bc705bafb7b-attachment.json", "type": "application/json"}], "start": 1777905766305, "stop": 1777905766344}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "9cc7149d-58a0-4576-8554-8b3c7b4e650f-attachment.json", "type": "application/json"}], "start": 1777905767344, "stop": 1777905767384}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "4b37e13c-e791-4dd5-a473-8fe2d8914cd8-attachment.json", "type": "application/json"}], "start": 1777905768384, "stop": 1777905768422}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "42d5716a-2d5f-4713-b9b9-bb016aceb13e-attachment.json", "type": "application/json"}], "start": 1777905769422, "stop": 1777905769459}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "542043ab-06e3-4a57-88f5-187d0a8bcaee-attachment.json", "type": "application/json"}], "start": 1777905770460, "stop": 1777905770497}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8ee06ba2-ab91-4e12-a128-90be891297ad-attachment.json", "type": "application/json"}], "start": 1777905771498, "stop": 1777905771543}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "26b668ae-dbe4-4f69-b12a-726937110f67-attachment.json", "type": "application/json"}], "start": 1777905772543, "stop": 1777905772585}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "58626b65-43fe-4381-b17e-08c797deb4cf-attachment.json", "type": "application/json"}], "start": 1777905773585, "stop": 1777905773622}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "3cbbb849-ba4c-4960-9f4d-f69c1605da05-attachment.json", "type": "application/json"}], "start": 1777905774623, "stop": 1777905774680}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "be670e18-b24b-41a6-83be-ba62392cc402-attachment.json", "type": "application/json"}], "start": 1777905775681, "stop": 1777905775723}], "start": 1777905735954, "stop": 1777905776725}, {"name": "Cleanup: _cleanup_delete_pass", "status": "broken", "statusDetails": {"message": "RuntimeError: GraphQL HTTP 400: {\"errors\":[{\"message\":\"Unknown argument \\\"id\\\" on field \\\"Mutation.deletePass\\\".\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"},{\"message\":\"Field \\\"deletePass\\\" argument \\\"pass_id\\\" of type \\\"String!\\\" is required, but it was not provided.\",\"code\":\"Server Error\",\"status\":500,\"description\":\"The server encountered an unexpected condition which prevented it from fulfilling the request\"}]}\n\n", "trace": " File \"Pass_request\\features\\environment.py\", line 49, in after_scenario\n fn()\n ~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 1439, in _cleanup_delete_pass\n _exec_or_fail(op_name=\"deletePass\", token=token, query=delete_mutation, variables={\"id\": pass_id}, company_id=self.company_id)\n ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 30, in _exec_or_fail\n return execute_graphql(\n query=query,\n ...<2 lines>...\n access_token=token,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\worklib\\graphql_client.py\", line 180, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n"}, "attachments": [{"name": "RuntimeError: deletePass", "source": "12532a16-0562-4407-9a3f-d5f5a9367d85-attachment.txt", "type": "text/plain"}], "start": 1777905776726, "stop": 1777905776755}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905776760, "stop": 1777905777019}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777905777019, "stop": 1777905777105}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905777105, "stop": 1777905777275}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905777275, "stop": 1777905777443}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905777443, "stop": 1777905777608}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905777608, "stop": 1777905777763}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905777763, "stop": 1777905777815}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905777816, "stop": 1777905777882}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905777882, "stop": 1777905777936}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "When approve pass request with my token", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}, {"name": "Then pass request status is active", "status": "skipped", "start": 1777905777939, "stop": 1777905777939}], "attachments": [{"name": "Cleanup error", "source": "637647e7-f68c-40b7-9526-6a3cb0d188c1-attachment.txt", "type": "text/plain"}], "start": 1777905732933, "stop": 1777905777939, "uuid": "17e9183f-ec7d-4a6e-a039-04ca74d6a0de", "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"]} |