Noob_test/allure-results/ea185334-7e5a-446a-bddc-bac4e84fd96c-result.json

1 line
12 KiB
JSON

{"name": "Pass request approval requires two confirmations", "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": 1777905378805, "stop": 1777905378935}, {"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": "b60fe6cb-c085-46b0-b56b-2a7ba406051e-attachment.json", "type": "application/json"}], "start": 1777905378936, "stop": 1777905378979}, {"name": "GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "fee2ebd4-d9f7-40e1-ac6e-0b1c96e70e49-attachment.json", "type": "application/json"}], "start": 1777905378979, "stop": 1777905379033}, {"name": "GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)", "status": "passed", "attachments": [{"name": "createPlaceMultiple response", "source": "deb99ba4-1a27-436e-b672-cc09b54acbf0-attachment.json", "type": "application/json"}], "start": 1777905379033, "stop": 1777905379069}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "e1b09ec3-ed68-4f9e-a384-ffd869facebe-attachment.json", "type": "application/json"}], "start": 1777905379069, "stop": 1777905380228}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3c15e6311636d8762)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "9f8c4cb4-5fd9-42de-8179-07dbe14e9608-attachment.json", "type": "application/json"}], "start": 1777905380228, "stop": 1777905380310}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "a5ff820a-2abe-4ce8-9ae1-83a02fa97a36-attachment.json", "type": "application/json"}], "start": 1777905380310, "stop": 1777905380355}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3c15e6311636d8765)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "8caa9ed0-cf80-4554-b081-d3737c9c31dd-attachment.json", "type": "application/json"}], "start": 1777905380355, "stop": 1777905380451}, {"name": "GraphQL: createUser (place member)", "status": "passed", "attachments": [{"name": "createUser(generic) response", "source": "8e185f82-8d38-4f9c-a528-b7a63034c11f-attachment.json", "type": "application/json"}], "start": 1777905380451, "stop": 1777905380529}, {"name": "GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3037d44249d0d136f)", "status": "passed", "attachments": [{"name": "addUserToPlace(generic) response", "source": "efc52f3e-960c-4864-87f2-f2a4b809b054-attachment.json", "type": "application/json"}], "start": 1777905380529, "stop": 1777905380606}, {"name": "GraphQL: createUser (new approver)", "status": "passed", "attachments": [{"name": "createUser(new approver) response", "source": "fc29540c-9236-4c02-b803-1c9b0d05711b-attachment.json", "type": "application/json"}], "start": 1777905380606, "stop": 1777905380737}, {"name": "Auth: get access_token for new approver", "status": "passed", "start": 1777905380737, "stop": 1777905380881}, {"name": "GraphQL: addEmployee (new approver with passRequests attrs)", "status": "passed", "attachments": [{"name": "addEmployee(new approver) response", "source": "cce7b6c0-1ec0-409f-9ff3-eba36a2db930-attachment.json", "type": "application/json"}], "start": 1777905380881, "stop": 1777905380935}], "start": 1777905378935, "stop": 1777905380937}, {"name": "And create pass in place #3 for approval flow", "status": "passed", "steps": [{"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "59ae5d4d-f725-442f-b750-11229b4a97a7-attachment.json", "type": "application/json"}], "start": 1777905380938, "stop": 1777905380986}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "28ec7b40-c16d-41ca-83a6-2fa6ea986b26-attachment.json", "type": "application/json"}], "start": 1777905380986, "stop": 1777905381022}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "2293c6a5-542c-4283-83d5-badd921cc9de-attachment.json", "type": "application/json"}], "start": 1777905381022, "stop": 1777905381086}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "e64f89be-d5ab-44fb-9769-f8fd806d30d0-attachment.json", "type": "application/json"}], "start": 1777905381086, "stop": 1777905381170}, {"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "e5c8b42f-52b6-4297-83d5-f2b6c531844b-attachment.json", "type": "application/json"}], "start": 1777905381170, "stop": 1777905381414}], "start": 1777905380937, "stop": 1777905381414}, {"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": "a5a0977d-f22d-45f4-abd5-d208e683ffe7-attachment.json", "type": "application/json"}], "start": 1777905381415, "stop": 1777905381447}], "start": 1777905381414, "stop": 1777905381448}, {"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": "bf964502-df40-40da-a634-d54104dd2b4f-attachment.txt", "type": "text/plain"}], "start": 1777905381449, "stop": 1777905381480}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905381486, "stop": 1777905381656}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777905381656, "stop": 1777905381747}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905381747, "stop": 1777905381933}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905381933, "stop": 1777905382111}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905382111, "stop": 1777905382276}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905382276, "stop": 1777905382524}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905382524, "stop": 1777905382606}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905382606, "stop": 1777905382678}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905382678, "stop": 1777905382734}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "When approve pass request with my token", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "And re-query passRequests by created pass_id with my token", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "Then pass request status is pending", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "When approve pass request with new employee token", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "And query passRequests by created pass_id with new employee token", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}, {"name": "Then pass request status is active", "status": "skipped", "start": 1777905382737, "stop": 1777905382737}], "attachments": [{"name": "Cleanup error", "source": "4e6c81a5-a726-489b-a651-ea7a362d908c-attachment.txt", "type": "text/plain"}], "start": 1777905378804, "stop": 1777905382737, "uuid": "9e2e1b5c-82b7-422b-b5a9-bc9c4b6cabe7", "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"]}