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 1488, 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": 1777905533471, "stop": 1777905533618}, {"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": "2cf22727-ca9a-4bdc-bbc3-2ee110fa26b1-attachment.json", "type": "application/json"}], "start": 1777905533620, "stop": 1777905533658}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "4d49966e-f3f4-4cbf-9602-d5a336962dbf-attachment.json", "type": "application/json"}], "start": 1777905533658, "stop": 1777905533697}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "0324129e-f58a-4221-808a-f99c3047872d-attachment.json", "type": "application/json"}], "start": 1777905533697, "stop": 1777905534658}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "f717c8f7-1d7a-4361-81e7-141e67549035-attachment.json", "type": "application/json"}], "start": 1777905534658, "stop": 1777905534703}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8af7d037d44249d0d144d)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "610c2a10-bac1-4267-85f3-bd05df733ab8-attachment.json", "type": "application/json"}], "start": 1777905534703, "stop": 1777905534780}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "ed1708ed-7ecf-4b13-9976-1cbef4926209-attachment.json", "type": "application/json"}], "start": 1777905534780, "stop": 1777905534818}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8af7d17bb1e0c5fc4df08)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "56d5aea3-208e-471b-b96d-aa0b6047d9ff-attachment.json", "type": "application/json"}], "start": 1777905534818, "stop": 1777905534879}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "b3969753-5f57-4182-b4f3-4a3f03295b9b-attachment.json", "type": "application/json"}], "start": 1777905534879, "stop": 1777905534918}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8af7e037d44249d0d1450)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "99dad3aa-54b9-4318-bad6-ca7508efac52-attachment.json", "type": "application/json"}], "start": 1777905534918, "stop": 1777905534991}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "0a1b8f8f-e1eb-4ce9-8940-ca708c009ddc-attachment.json", "type": "application/json"}], "start": 1777905534991, "stop": 1777905535137}, {"name": "Auth: get access_token for new approver", "status": "passed", "start": 1777905535137, "stop": 1777905535301}, {"name": "GraphQL: addEmployee (new approver with passRequests attrs)", "status": "passed", "attachments": [{"name": "addEmployee(new approver) response", "source": "20aa1a81-f83c-4ba9-972f-879cb7099972-attachment.json", "type": "application/json"}], "start": 1777905535301, "stop": 1777905535332}], "start": 1777905533618, "stop": 1777905535333}, {"name": "And create pass in place #3 for approval flow", "status": "passed", "steps": [{"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "bd58ebe4-5f33-4fbd-8911-183d37525263-attachment.json", "type": "application/json"}], "start": 1777905535334, "stop": 1777905535366}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "4087e2ff-22d0-45c6-a01e-7d7e524c6ee1-attachment.json", "type": "application/json"}], "start": 1777905535366, "stop": 1777905535398}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "5da130ad-b111-44da-b517-675252eb2ae0-attachment.json", "type": "application/json"}], "start": 1777905535398, "stop": 1777905535442}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "7b121719-ab0e-48c5-9f63-580c7f5ae75f-attachment.json", "type": "application/json"}], "start": 1777905535442, "stop": 1777905535501}, {"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "fff3869e-b8c8-4c94-9f0b-332bba8613e9-attachment.json", "type": "application/json"}], "start": 1777905535502, "stop": 1777905535766}], "start": 1777905535333, "stop": 1777905535766}, {"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 1488, 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": "0796a76b-33c3-4339-9482-e42c21c307c0-attachment.json", "type": "application/json"}], "start": 1777905535767, "stop": 1777905535810}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "588c3f64-7a12-4daf-b72d-d75afb315168-attachment.json", "type": "application/json"}], "start": 1777905536810, "stop": 1777905536857}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "a977a52b-b35e-4d3b-a6c3-acfe83c1bdf1-attachment.json", "type": "application/json"}], "start": 1777905537857, "stop": 1777905537924}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "aab06dce-b3e0-4cd6-aa6f-2fcd8b758b2a-attachment.json", "type": "application/json"}], "start": 1777905538924, "stop": 1777905538981}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "2b3eeeb4-2659-4e63-b03b-a81272959603-attachment.json", "type": "application/json"}], "start": 1777905539982, "stop": 1777905540018}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "024ffd8e-f36d-40e6-a6f8-5e1c65168a6a-attachment.json", "type": "application/json"}], "start": 1777905541019, "stop": 1777905541075}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "ca3283f9-9433-4b03-b456-31db0488db47-attachment.json", "type": "application/json"}], "start": 1777905542076, "stop": 1777905542116}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "0cbae07d-ba8d-4492-bcd6-a2b00a04cfb4-attachment.json", "type": "application/json"}], "start": 1777905543116, "stop": 1777905543155}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "53f14054-c945-42a2-9526-bfb6c1cf06ad-attachment.json", "type": "application/json"}], "start": 1777905544178, "stop": 1777905544219}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "41411254-4189-40c1-9b37-87d9527905ac-attachment.json", "type": "application/json"}], "start": 1777905545220, "stop": 1777905545258}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "15559c03-2160-4602-8ee0-9ccf59493f5f-attachment.json", "type": "application/json"}], "start": 1777905546258, "stop": 1777905546299}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "2801b0cc-a99c-4919-be80-572c4995f939-attachment.json", "type": "application/json"}], "start": 1777905547300, "stop": 1777905547337}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "580ec498-d4ae-4f71-bf08-701699fc67cd-attachment.json", "type": "application/json"}], "start": 1777905548337, "stop": 1777905548402}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "ee4ffd39-af7e-47ac-923a-a20710cf7c20-attachment.json", "type": "application/json"}], "start": 1777905549403, "stop": 1777905549444}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "153ab470-3026-4b05-92b1-f1ead07146eb-attachment.json", "type": "application/json"}], "start": 1777905550444, "stop": 1777905550501}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "b61d5a94-439d-4b07-9ea6-2fef46e2b4b8-attachment.json", "type": "application/json"}], "start": 1777905551502, "stop": 1777905551543}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "5a0975e2-4174-41fa-8eff-e855491aba4f-attachment.json", "type": "application/json"}], "start": 1777905552543, "stop": 1777905552589}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "0633367e-7333-4c00-b095-cb9e213228ce-attachment.json", "type": "application/json"}], "start": 1777905553589, "stop": 1777905553624}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "46bfe53f-7d2a-4fe5-a8b6-100d3b85a566-attachment.json", "type": "application/json"}], "start": 1777905554625, "stop": 1777905554675}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "4e836d8a-0bc2-4970-9190-de4981d4d16f-attachment.json", "type": "application/json"}], "start": 1777905555676, "stop": 1777905555711}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8bc215fb-64d5-4e89-b7c5-73969bdfbe90-attachment.json", "type": "application/json"}], "start": 1777905556712, "stop": 1777905556762}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "723a8479-48f1-46c8-af84-7425b473ce21-attachment.json", "type": "application/json"}], "start": 1777905557763, "stop": 1777905557798}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "5b365882-0781-4c30-8073-b350b2b0703a-attachment.json", "type": "application/json"}], "start": 1777905558799, "stop": 1777905558841}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "8fc24922-4b5d-4387-bace-a38ca3a8bfca-attachment.json", "type": "application/json"}], "start": 1777905559842, "stop": 1777905559875}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "68e2cdae-d696-454f-9fa7-bbf81b0b2228-attachment.json", "type": "application/json"}], "start": 1777905560876, "stop": 1777905560914}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "27f2b33d-ef87-4328-8aaa-f69dcbb2eb11-attachment.json", "type": "application/json"}], "start": 1777905561915, "stop": 1777905561955}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "1c7ed3db-200d-4721-b6c7-53efdea619b3-attachment.json", "type": "application/json"}], "start": 1777905562955, "stop": 1777905562993}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "16a774e4-3c43-4ed4-bd33-22a27f632f2a-attachment.json", "type": "application/json"}], "start": 1777905563994, "stop": 1777905564047}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "40ea8dba-df44-4160-8541-effdb6768c8d-attachment.json", "type": "application/json"}], "start": 1777905565048, "stop": 1777905565089}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "0eef9f01-b71c-431f-9ce3-731a7815252f-attachment.json", "type": "application/json"}], "start": 1777905566089, "stop": 1777905566135}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "85c308e1-671f-439e-bbe6-b57ba6521fbf-attachment.json", "type": "application/json"}], "start": 1777905567135, "stop": 1777905567174}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "cc9229f8-928f-414a-9081-0b31920fc971-attachment.json", "type": "application/json"}], "start": 1777905568175, "stop": 1777905568215}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "fa084fd8-e0c7-4397-a9b3-35cb726df0a0-attachment.json", "type": "application/json"}], "start": 1777905569216, "stop": 1777905569276}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "81375480-edf0-4377-848d-1d4a842487fb-attachment.json", "type": "application/json"}], "start": 1777905570277, "stop": 1777905570316}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "765ed64e-3240-4f67-863f-b01fd2dfdd95-attachment.json", "type": "application/json"}], "start": 1777905571316, "stop": 1777905571363}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "d06ee5c1-35f0-4a3f-a0da-dcaa4eb21898-attachment.json", "type": "application/json"}], "start": 1777905572363, "stop": 1777905572412}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "c2841028-0a9f-4ae2-8cbe-16fe13547f74-attachment.json", "type": "application/json"}], "start": 1777905573413, "stop": 1777905573455}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "543631ea-8545-4d2a-b26f-a475fc0cd0d2-attachment.json", "type": "application/json"}], "start": 1777905574455, "stop": 1777905574506}, {"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "046ceea6-3220-416e-a37f-6a28028503e5-attachment.json", "type": "application/json"}], "start": 1777905575506, "stop": 1777905575564}], "start": 1777905535766, "stop": 1777905576568}, {"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": "525687b8-497f-4c58-a1b4-3688de2972b1-attachment.txt", "type": "text/plain"}], "start": 1777905576568, "stop": 1777905576594}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905576600, "stop": 1777905576812}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777905576812, "stop": 1777905576891}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905576891, "stop": 1777905577067}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905577067, "stop": 1777905577241}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905577241, "stop": 1777905577416}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905577417, "stop": 1777905577622}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905577622, "stop": 1777905577673}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905577673, "stop": 1777905577725}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905577725, "stop": 1777905577789}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "When approve pass request with my token", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}, {"name": "Then pass request status is active", "status": "skipped", "start": 1777905577791, "stop": 1777905577791}], "attachments": [{"name": "Cleanup error", "source": "31c84db6-8560-4937-aa2e-70e4b1e1966a-attachment.txt", "type": "text/plain"}], "start": 1777905533469, "stop": 1777905577791, "uuid": "b66d7d55-c52f-4461-9bed-5636a9ee9d8e", "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"]} |