1 line
19 KiB
JSON
1 line
19 KiB
JSON
{"uid":"20b30d1780de2741","name":"Pass request approval requires two confirmations","fullName":"Pass requests: Pass request approval requires two confirmations","historyId":"34532a485fee47211dd0b378a7dc503c","time":{"start":1777905378804,"stop":1777905382737,"duration":3933},"status":"failed","statusMessage":"AssertionError: passRequests.results пустой/не list: {'data': {'passRequests': {'results': []}}}\n","statusTrace":" 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","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"failed","statusMessage":"AssertionError: passRequests.results пустой/не list: {'data': {'passRequests': {'results': []}}}\n","statusTrace":" 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","time":{"start":1777905378805,"stop":1777905378935,"duration":130},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And prepare nested places and employees for pass request approval flow","time":{"start":1777905378935,"stop":1777905380937,"duration":2002},"status":"passed","steps":[{"name":"GraphQL: createPlaceMultiple (passreq-place-1, place_type=flat)","time":{"start":1777905378936,"stop":1777905378979,"duration":43},"status":"passed","steps":[],"attachments":[{"uid":"f9594fb1bcf55038","name":"createPlaceMultiple response","source":"f9594fb1bcf55038.json","type":"application/json","size":148}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPlaceMultiple (passreq-place-2, place_type=flat)","time":{"start":1777905378979,"stop":1777905379033,"duration":54},"status":"passed","steps":[],"attachments":[{"uid":"29ec8736ee084b6e","name":"createPlaceMultiple response","source":"29ec8736ee084b6e.json","type":"application/json","size":148}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPlaceMultiple (passreq-place-3, place_type=flat)","time":{"start":1777905379033,"stop":1777905379069,"duration":36},"status":"passed","steps":[],"attachments":[{"uid":"5b64748da6d0b3f3","name":"createPlaceMultiple response","source":"5b64748da6d0b3f3.json","type":"application/json","size":148}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777905379069,"stop":1777905380228,"duration":1159},"status":"passed","steps":[],"attachments":[{"uid":"4cd93ca017d4553","name":"createUser(generic) response","source":"4cd93ca017d4553.json","type":"application/json","size":440}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3c15e6311636d8762)","time":{"start":1777905380228,"stop":1777905380310,"duration":82},"status":"passed","steps":[],"attachments":[{"uid":"a49f4fd327d7d48a","name":"addUserToPlace(generic) response","source":"a49f4fd327d7d48a.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777905380310,"stop":1777905380355,"duration":45},"status":"passed","steps":[],"attachments":[{"uid":"3be6eaa3eae0bbe1","name":"createUser(generic) response","source":"3be6eaa3eae0bbe1.json","type":"application/json","size":440}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3c15e6311636d8765)","time":{"start":1777905380355,"stop":1777905380451,"duration":96},"status":"passed","steps":[],"attachments":[{"uid":"da13eccbdc8b692e","name":"addUserToPlace(generic) response","source":"da13eccbdc8b692e.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (place member)","time":{"start":1777905380451,"stop":1777905380529,"duration":78},"status":"passed","steps":[],"attachments":[{"uid":"63e000bbda89fcfa","name":"createUser(generic) response","source":"63e000bbda89fcfa.json","type":"application/json","size":440}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (AddUserToPlaceDTO/dto-input, place_id=69f8aee3037d44249d0d136f)","time":{"start":1777905380529,"stop":1777905380606,"duration":77},"status":"passed","steps":[],"attachments":[{"uid":"8d83ba0984be25b6","name":"addUserToPlace(generic) response","source":"8d83ba0984be25b6.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (new approver)","time":{"start":1777905380606,"stop":1777905380737,"duration":131},"status":"passed","steps":[],"attachments":[{"uid":"3bad7d6cea03e666","name":"createUser(new approver) response","source":"3bad7d6cea03e666.json","type":"application/json","size":444}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"Auth: get access_token for new approver","time":{"start":1777905380737,"stop":1777905380881,"duration":144},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"GraphQL: addEmployee (new approver with passRequests attrs)","time":{"start":1777905380881,"stop":1777905380935,"duration":54},"status":"passed","steps":[],"attachments":[{"uid":"fed02e0feab11956","name":"addEmployee(new approver) response","source":"fed02e0feab11956.json","type":"application/json","size":85}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":11,"attachmentStep":false,"stepsCount":12,"hasContent":true},{"name":"And create pass in place #3 for approval flow","time":{"start":1777905380937,"stop":1777905381414,"duration":477},"status":"passed","steps":[{"name":"GraphQL: createService","time":{"start":1777905380938,"stop":1777905380986,"duration":48},"status":"passed","steps":[],"attachments":[{"uid":"ce209b1715b093f5","name":"createService response","source":"ce209b1715b093f5.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addPlaceToService","time":{"start":1777905380986,"stop":1777905381022,"duration":36},"status":"passed","steps":[],"attachments":[{"uid":"cc58bef31360791a","name":"addPlaceToService response","source":"cc58bef31360791a.json","type":"application/json","size":91}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createUser (for pass target)","time":{"start":1777905381022,"stop":1777905381086,"duration":64},"status":"passed","steps":[],"attachments":[{"uid":"c7faeb4551bfb076","name":"createUser response","source":"c7faeb4551bfb076.json","type":"application/json","size":440}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: addUserToPlace (attach user to pass place)","time":{"start":1777905381086,"stop":1777905381170,"duration":84},"status":"passed","steps":[],"attachments":[{"uid":"aea41c866984a401","name":"addUserToPlace response","source":"aea41c866984a401.json","type":"application/json","size":153}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createPass (variant 1)","time":{"start":1777905381170,"stop":1777905381414,"duration":244},"status":"passed","steps":[],"attachments":[{"uid":"a7ff581a8a5a0c2c","name":"createPass(v1) response","source":"a7ff581a8a5a0c2c.json","type":"application/json","size":346}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":5,"attachmentStep":false,"stepsCount":5,"hasContent":true},{"name":"When query passRequests by created pass_id with my token","time":{"start":1777905381414,"stop":1777905381448,"duration":34},"status":"failed","statusMessage":"AssertionError: passRequests.results пустой/не list: {'data': {'passRequests': {'results': []}}}\n","statusTrace":" 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)","time":{"start":1777905381415,"stop":1777905381447,"duration":32},"status":"passed","steps":[],"attachments":[{"uid":"24f2e9dfae8925b0","name":"passRequests response","source":"24f2e9dfae8925b0.json","type":"application/json","size":67}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":1,"attachmentStep":false,"stepsCount":1,"hasContent":true},{"name":"Cleanup: _cleanup_delete_pass","time":{"start":1777905381449,"stop":1777905381480,"duration":31},"status":"broken","statusMessage":"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","statusTrace":" 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","steps":[],"attachments":[{"uid":"3132890463a84115","name":"RuntimeError: deletePass","source":"3132890463a84115.txt","type":"text/plain","size":507}],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777905381486,"stop":1777905381656,"duration":170},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_unbind_and_delete_service","time":{"start":1777905381656,"stop":1777905381747,"duration":91},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777905381747,"stop":1777905381933,"duration":186},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777905381933,"stop":1777905382111,"duration":178},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777905382111,"stop":1777905382276,"duration":165},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_user","time":{"start":1777905382276,"stop":1777905382524,"duration":248},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777905382524,"stop":1777905382606,"duration":82},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777905382606,"stop":1777905382678,"duration":72},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777905382678,"stop":1777905382734,"duration":56},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is pending","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When approve pass request with my token","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And re-query passRequests by created pass_id with my token","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is pending","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When approve pass request with new employee token","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And query passRequests by created pass_id with new employee token","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is active","time":{"start":1777905382737,"stop":1777905382737,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false}],"attachments":[{"uid":"74b4ad18be9c9801","name":"Cleanup error","source":"74b4ad18be9c9801.txt","type":"text/plain","size":2919}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":19,"attachmentStep":false,"stepsCount":39,"hasContent":true},"afterStages":[],"labels":[{"name":"severity","value":"normal"},{"name":"feature","value":"Pass requests"},{"name":"framework","value":"behave"},{"name":"language","value":"cpython3"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"20b30d1780de2741.json","parameterValues":[]} |