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 1500, 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": 1777975030010, "stop": 1777975030167}, {"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": "a916b182-359d-460f-9350-2aab84af0162-attachment.json", "type": "application/json"}], "start": 1777975030168, "stop": 1777975030220}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "01cfe334-37e4-4f6a-9ceb-1898b864c014-attachment.json", "type": "application/json"}], "start": 1777975030220, "stop": 1777975030272}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "6042119f-fe76-4907-b5b3-7675361b46c5-attachment.json", "type": "application/json"}], "start": 1777975030272, "stop": 1777975030316}, {"name": "GraphQL: createEntrance(RegisterEntranceDTO)", "status": "passed", "attachments": [{"name": "createEntrance response", "source": "4aa32357-bc68-45a2-8315-fa50e2ac3022-attachment.json", "type": "application/json"}], "start": 1777975030316, "stop": 1777975030384}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "40a9f2a1-3a7e-485b-b66a-d4a545d5ae3f-attachment.json", "type": "application/json"}], "start": 1777975030384, "stop": 1777975031679}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f9bef6037d44249d0d168c)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "e4c6c261-9deb-420b-92b9-82b61bce344c-attachment.json", "type": "application/json"}], "start": 1777975031679, "stop": 1777975031768}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "0cf9109d-c258-4905-80f7-01a0ad09ff33-attachment.json", "type": "application/json"}], "start": 1777975031769, "stop": 1777975031821}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f9bef6037d44249d0d168f)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "dc241a36-be89-4a6f-b27c-0e2eab8931ff-attachment.json", "type": "application/json"}], "start": 1777975031822, "stop": 1777975031899}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "b83226ba-ff00-4e3e-bcd0-61961dd3d322-attachment.json", "type": "application/json"}], "start": 1777975031899, "stop": 1777975031953}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f9bef617bb1e0c5fc4e138)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "cc982e5d-5296-4922-8281-6f058a4c33e2-attachment.json", "type": "application/json"}], "start": 1777975031953, "stop": 1777975032065}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "ec592509-3057-463b-a06f-b324915a1501-attachment.json", "type": "application/json"}], "start": 1777975032065, "stop": 1777975032221}, {"name": "Auth: get access_token for new approver", "status": "passed", "start": 1777975032221, "stop": 1777975032375}, {"name": "GraphQL: addEmployee (new approver with passRequests attrs)", "status": "passed", "attachments": [{"name": "addEmployee(new approver) response", "source": "a94c0e2d-ca39-4608-bfca-b971dcfa67de-attachment.json", "type": "application/json"}], "start": 1777975032375, "stop": 1777975032430}], "start": 1777975030167, "stop": 1777975032432}, {"name": "And create pass in place #3 for approval flow", "status": "passed", "steps": [{"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "b493b59a-3e4e-48a0-a3c3-43f7e61a7c7b-attachment.json", "type": "application/json"}], "start": 1777975032432, "stop": 1777975032478}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "5a6dd524-f0ca-435c-aa24-6b1065246f6a-attachment.json", "type": "application/json"}], "start": 1777975032478, "stop": 1777975032529}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "8a66542c-fa12-4767-b19e-5dd9ae0799b9-attachment.json", "type": "application/json"}], "start": 1777975032529, "stop": 1777975032585}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "b09a8d5f-76ad-488a-83f6-dddacd03f3ca-attachment.json", "type": "application/json"}], "start": 1777975032585, "stop": 1777975032654}, {"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "6caa9cac-e659-4e9d-9802-7907e8020d89-attachment.json", "type": "application/json"}], "start": 1777975032654, "stop": 1777975032901}], "start": 1777975032432, "stop": 1777975032902}, {"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 1500, 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": "8d0e74e3-df81-4a4d-9960-3393c337b536-attachment.json", "type": "application/json"}], "start": 1777975032903, "stop": 1777975032956}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "c4e438f4-bdf1-4c3b-b166-2344158a26b8-attachment.json", "type": "application/json"}], "start": 1777975033958, "stop": 1777975034047}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "523cd5d8-3f39-4d11-bfec-c7bcfe1fc386-attachment.json", "type": "application/json"}], "start": 1777975035048, "stop": 1777975035116}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "d211f770-5c31-46a9-a5fc-f7b38b080b86-attachment.json", "type": "application/json"}], "start": 1777975036116, "stop": 1777975036175}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "f36d03f8-39f7-4f54-89db-ed9bcb00c516-attachment.json", "type": "application/json"}], "start": 1777975037175, "stop": 1777975037225}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "2653992a-c455-4eb9-b11a-8a218bf1fd53-attachment.json", "type": "application/json"}], "start": 1777975038226, "stop": 1777975038281}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "86ac8b79-ef03-4e91-89f9-c515f11c48c4-attachment.json", "type": "application/json"}], "start": 1777975039282, "stop": 1777975039331}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "31944300-3c8b-4633-bd67-3ae19b86845e-attachment.json", "type": "application/json"}], "start": 1777975040331, "stop": 1777975040384}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "a5d887b7-e9ee-4fed-8c95-b2a60ed84723-attachment.json", "type": "application/json"}], "start": 1777975041384, "stop": 1777975041435}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "6570e117-faf6-4a1e-9cb1-76bd70328b3a-attachment.json", "type": "application/json"}], "start": 1777975042435, "stop": 1777975042487}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "00d857a1-efd4-427d-9975-18f4a5ff8b86-attachment.json", "type": "application/json"}], "start": 1777975043488, "stop": 1777975043544}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "63b21415-9e11-4c65-9372-0d99b9617906-attachment.json", "type": "application/json"}], "start": 1777975044545, "stop": 1777975044591}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "3d222996-496c-40de-a4d9-99d80438caa5-attachment.json", "type": "application/json"}], "start": 1777975045592, "stop": 1777975045649}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "ccfebf80-3388-48e3-b01f-8bd3ba28e757-attachment.json", "type": "application/json"}], "start": 1777975046649, "stop": 1777975046702}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "93fb7071-946e-4154-89bb-a17e9128b19b-attachment.json", "type": "application/json"}], "start": 1777975047702, "stop": 1777975047755}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "da154f50-2f9e-4b14-8fbd-437b8c69d506-attachment.json", "type": "application/json"}], "start": 1777975048755, "stop": 1777975048807}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "2c02561a-11c9-4e16-95a7-d100596b3b9d-attachment.json", "type": "application/json"}], "start": 1777975049807, "stop": 1777975049862}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8dfccb47-600c-4f73-8c74-a8a278bb03d0-attachment.json", "type": "application/json"}], "start": 1777975050862, "stop": 1777975050916}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8a54a59e-c0e6-4372-ae8c-645b015c9813-attachment.json", "type": "application/json"}], "start": 1777975051916, "stop": 1777975051984}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "6ddccf2b-0c59-4fc2-99f5-f86ee520b6bb-attachment.json", "type": "application/json"}], "start": 1777975052985, "stop": 1777975053033}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "99100179-ee13-4abf-aef9-96b344e45814-attachment.json", "type": "application/json"}], "start": 1777975054035, "stop": 1777975054098}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "b1a771b6-c2f3-469e-bfbe-2bcdf18528dc-attachment.json", "type": "application/json"}], "start": 1777975055098, "stop": 1777975055192}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "262a7c4b-acaa-4320-8fcb-93caf5edb4f9-attachment.json", "type": "application/json"}], "start": 1777975056193, "stop": 1777975056242}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "f12c300a-0343-4189-ba92-fdbb7d93992e-attachment.json", "type": "application/json"}], "start": 1777975057242, "stop": 1777975057295}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8fdec01a-ba17-4cfe-bdcd-7f98a9c9967a-attachment.json", "type": "application/json"}], "start": 1777975058295, "stop": 1777975058344}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "44a3b3a1-69a4-46eb-8ed7-024dac3614e4-attachment.json", "type": "application/json"}], "start": 1777975059345, "stop": 1777975059395}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "e31e2aed-5be6-4efc-9ed2-dc4f79ea90de-attachment.json", "type": "application/json"}], "start": 1777975060396, "stop": 1777975060452}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "172e85aa-58b9-4930-8100-1941daa0d72b-attachment.json", "type": "application/json"}], "start": 1777975061452, "stop": 1777975061505}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "b1fd0962-4096-42f9-ac7c-fa14443db821-attachment.json", "type": "application/json"}], "start": 1777975062505, "stop": 1777975062552}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "6af03887-ca43-481e-920a-a95d291094e6-attachment.json", "type": "application/json"}], "start": 1777975063552, "stop": 1777975063600}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8282e80b-20ae-4bc5-98c1-f6b78aa9b44b-attachment.json", "type": "application/json"}], "start": 1777975064600, "stop": 1777975064647}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "ff377ff4-5cf0-4161-bf00-5071d4788204-attachment.json", "type": "application/json"}], "start": 1777975065648, "stop": 1777975065706}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "549bcece-aa17-4b1b-ab8e-92b2cf15056a-attachment.json", "type": "application/json"}], "start": 1777975066707, "stop": 1777975066756}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "5f98608b-2dd4-4a3c-90cc-c960b59d435f-attachment.json", "type": "application/json"}], "start": 1777975067756, "stop": 1777975067808}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "2ed00a01-7297-46f3-b69f-463c3dc646ea-attachment.json", "type": "application/json"}], "start": 1777975068808, "stop": 1777975068857}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "cb63901e-6f55-492b-b6cc-65811e811d14-attachment.json", "type": "application/json"}], "start": 1777975069858, "stop": 1777975069916}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "697d32c4-b682-40b6-bf2f-999a2e782bba-attachment.json", "type": "application/json"}], "start": 1777975070916, "stop": 1777975070967}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "a8464706-ba18-4ce3-919d-d633463740c6-attachment.json", "type": "application/json"}], "start": 1777975071967, "stop": 1777975072022}], "start": 1777975032902, "stop": 1777975073025}, {"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 1452, 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 35, 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 206, in execute_graphql\n raise RuntimeError(f\"GraphQL HTTP {e.code}: {body}\") from e\n"}, "attachments": [{"name": "RuntimeError: deletePass", "source": "bcc161d9-bd9d-4a32-9348-66372ccea866-attachment.txt", "type": "text/plain"}], "start": 1777975073025, "stop": 1777975073065}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975073069, "stop": 1777975073308}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777975073308, "stop": 1777975073415}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975073415, "stop": 1777975073671}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975073671, "stop": 1777975073879}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975073879, "stop": 1777975074089}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777975074089, "stop": 1777975074297}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975074297, "stop": 1777975074357}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975074357, "stop": 1777975074424}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777975074424, "stop": 1777975074501}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "When approve pass request with my token", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}, {"name": "Then pass request status is active", "status": "skipped", "start": 1777975074503, "stop": 1777975074503}], "attachments": [{"name": "Cleanup error", "source": "43a7ce33-4606-4043-b985-c4f8d0f17b0b-attachment.txt", "type": "text/plain"}], "start": 1777975030008, "stop": 1777975074503, "uuid": "f9ef678a-cddb-48fe-a377-36393d3d9f54", "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"]} |