1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"name": "Pass request rejection prevents activation even with second confirmation", "status": "failed", "statusDetails": {"message": "AssertionError: passRequests.results пустой/не list: {'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 33, in step_query_pass_requests_my_token\n pr = td.extract_single_pass_request(resp)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 1474, in extract_single_pass_request\n assert isinstance(results, list) and results, f\"passRequests.results пустой/не list: {resp!r}\"\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"}, "steps": [{"name": "When get access token", "status": "passed", "start": 1777905382741, "stop": 1777905382861}, {"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": "bf48a50c-0055-40ee-a4c5-588e2a1bc4a9-attachment.json", "type": "application/json"}], "start": 1777905382862, "stop": 1777905382905}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "53c9fd63-5331-425c-b24d-f5bbae9b1024-attachment.json", "type": "application/json"}], "start": 1777905382905, "stop": 1777905382944}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "284c6aeb-d227-4e5a-8e74-2c35d09ab2e7-attachment.json", "type": "application/json"}], "start": 1777905382944, "stop": 1777905382988}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "0a8b2c81-9d8a-4db8-a145-edc9c60eebcc-attachment.json", "type": "application/json"}], "start": 1777905382988, "stop": 1777905383024}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee732367dfb4b45a4a8)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "eedbc74c-b675-4719-a915-fb38ce5e8230-attachment.json", "type": "application/json"}], "start": 1777905383024, "stop": 1777905383118}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "244da1ba-314e-497b-b4b1-91882b8fb6ac-attachment.json", "type": "application/json"}], "start": 1777905383118, "stop": 1777905383156}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee732367dfb4b45a4ab)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "6f038618-8fff-44ae-827b-465b6fd3ae7f-attachment.json", "type": "application/json"}], "start": 1777905383156, "stop": 1777905383224}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "c122ebb7-28b7-4685-8381-887b27b9e273-attachment.json", "type": "application/json"}], "start": 1777905383224, "stop": 1777905383267}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee7c15e6311636d877b)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "de3fdc54-2f80-4a35-a4e5-98dccdc70f89-attachment.json", "type": "application/json"}], "start": 1777905383267, "stop": 1777905383326}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "4f6cf653-7cb3-4371-b8bc-25a00c7c065b-attachment.json", "type": "application/json"}], "start": 1777905383327, "stop": 1777905383482}, {"name": "Auth: get access_token for new approver", "status": "passed", "start": 1777905383482, "stop": 1777905383591}, {"name": "GraphQL: addEmployee (new approver with passRequests attrs)", "status": "passed", "attachments": [{"name": "addEmployee(new approver) response", "source": "4890563b-59bf-4144-9e2a-13f0b8a31a21-attachment.json", "type": "application/json"}], "start": 1777905383591, "stop": 1777905383624}], "start": 1777905382861, "stop": 1777905383625}, {"name": "And create pass in place #3 for approval flow", "status": "passed", "steps": [{"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "7fb320ca-9d76-4fcf-92b5-ab4ad75a9e91-attachment.json", "type": "application/json"}], "start": 1777905383626, "stop": 1777905383658}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "f3016b1e-6bcb-46e6-8f1c-3187923fc91c-attachment.json", "type": "application/json"}], "start": 1777905383658, "stop": 1777905383692}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "a8023bb5-8d3b-44bf-8349-b29b3431733a-attachment.json", "type": "application/json"}], "start": 1777905383693, "stop": 1777905383734}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "2cf1b58b-236c-4946-b542-05fa5225f0e6-attachment.json", "type": "application/json"}], "start": 1777905383734, "stop": 1777905383888}, {"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "a24cff69-3e21-42a7-9312-5c92df9489b6-attachment.json", "type": "application/json"}], "start": 1777905383888, "stop": 1777905384132}], "start": 1777905383625, "stop": 1777905384133}, {"name": "When query passRequests by created pass_id with my token", "status": "failed", "statusDetails": {"message": "AssertionError: passRequests.results пустой/не list: {'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 33, in step_query_pass_requests_my_token\n pr = td.extract_single_pass_request(resp)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 1474, in extract_single_pass_request\n assert isinstance(results, list) and results, f\"passRequests.results пустой/не list: {resp!r}\"\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"}, "steps": [{"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "c574cf2f-0cfe-47da-8d28-4007e1979221-attachment.json", "type": "application/json"}], "start": 1777905384134, "stop": 1777905384165}], "start": 1777905384133, "stop": 1777905384167}, {"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 1440, 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": "40ceb747-4f60-47ec-8317-84d974e06266-attachment.txt", "type": "text/plain"}], "start": 1777905384168, "stop": 1777905384202}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905384209, "stop": 1777905384489}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777905384489, "stop": 1777905384556}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905384556, "stop": 1777905384725}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905384725, "stop": 1777905384895}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905384895, "stop": 1777905385064}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905385064, "stop": 1777905385244}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905385244, "stop": 1777905385296}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905385296, "stop": 1777905385354}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905385354, "stop": 1777905385411}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905385412, "stop": 1777905385412}, {"name": "When reject pass request with my token", "status": "skipped", "start": 1777905385412, "stop": 1777905385412}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777905385413, "stop": 1777905385413}, {"name": "Then pass request status is not active", "status": "skipped", "start": 1777905385413, "stop": 1777905385413}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777905385413, "stop": 1777905385413}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777905385413, "stop": 1777905385413}, {"name": "Then pass request status is not active", "status": "skipped", "start": 1777905385413, "stop": 1777905385413}], "attachments": [{"name": "Cleanup error", "source": "a2942a2e-4001-479f-b24b-55e6ed7fd8a3-attachment.txt", "type": "text/plain"}], "start": 1777905382740, "stop": 1777905385413, "uuid": "25a0703a-86d6-4551-a7ed-8e0527e08aa0", "historyId": "d5214a811b3d7cd98d122456dbf59131", "testCaseId": "e6e5289fd68251094ffad43532c84933", "fullName": "Pass requests: Pass request rejection prevents activation even with second confirmation", "labels": [{"name": "severity", "value": "normal"}, {"name": "feature", "value": "Pass requests"}, {"name": "framework", "value": "behave"}, {"name": "language", "value": "cpython3"}], "titlePath": ["Pass_request", "features", "Pass requests"]} |