{"uid":"d30b5b5afde0a78f","name":"Pass request rejection prevents activation even with second confirmation","fullName":"Pass requests: Pass request rejection prevents activation even with second confirmation","historyId":"d5214a811b3d7cd98d122456dbf59131","time":{"start":1777904073285,"stop":1777904073568,"duration":283},"status":"broken","statusMessage":"RuntimeError: GraphQL errors: [{'message': 'Bad Request', 'code': 'Client Error', 'status': 400, 'description': 'The request could not be understood by the server due to malformed syntax'}]\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 13, in step_prepare_nested_places_and_employees\n td.prepare_pass_request_approval_flow()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 710, in prepare_pass_request_approval_flow\n p1, p2, p3 = self.ensure_three_nested_places()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 326, in ensure_three_nested_places\n p2 = self._create_place(parent_id=p1, title_prefix=\"passreq-place-2\", place_type=p2_type)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 284, in _create_place\n resp = self._retry_graphql(\n op_name=\"createPlaceMultiple\",\n ...<4 lines>...\n retries=2,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 205, in _retry_graphql\n return _exec_or_fail(op_name=op_name, token=token, query=query, variables=variables, company_id=company_id)\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 191, in execute_graphql\n raise RuntimeError(f\"GraphQL errors: {errors}\")\n","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"broken","statusMessage":"RuntimeError: GraphQL errors: [{'message': 'Bad Request', 'code': 'Client Error', 'status': 400, 'description': 'The request could not be understood by the server due to malformed syntax'}]\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 13, in step_prepare_nested_places_and_employees\n td.prepare_pass_request_approval_flow()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 710, in prepare_pass_request_approval_flow\n p1, p2, p3 = self.ensure_three_nested_places()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 326, in ensure_three_nested_places\n p2 = self._create_place(parent_id=p1, title_prefix=\"passreq-place-2\", place_type=p2_type)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 284, in _create_place\n resp = self._retry_graphql(\n op_name=\"createPlaceMultiple\",\n ...<4 lines>...\n retries=2,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 205, in _retry_graphql\n return _exec_or_fail(op_name=op_name, token=token, query=query, variables=variables, company_id=company_id)\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 191, in execute_graphql\n raise RuntimeError(f\"GraphQL errors: {errors}\")\n","steps":[{"name":"When get access token","time":{"start":1777904073287,"stop":1777904073426,"duration":139},"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":1777904073426,"stop":1777904073512,"duration":86},"status":"broken","statusMessage":"RuntimeError: GraphQL errors: [{'message': 'Bad Request', 'code': 'Client Error', 'status': 400, 'description': 'The request could not be understood by the server due to malformed syntax'}]\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 13, in step_prepare_nested_places_and_employees\n td.prepare_pass_request_approval_flow()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 710, in prepare_pass_request_approval_flow\n p1, p2, p3 = self.ensure_three_nested_places()\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 326, in ensure_three_nested_places\n p2 = self._create_place(parent_id=p1, title_prefix=\"passreq-place-2\", place_type=p2_type)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 284, in _create_place\n resp = self._retry_graphql(\n op_name=\"createPlaceMultiple\",\n ...<4 lines>...\n retries=2,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 205, in _retry_graphql\n return _exec_or_fail(op_name=op_name, token=token, query=query, variables=variables, company_id=company_id)\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 191, in execute_graphql\n raise RuntimeError(f\"GraphQL errors: {errors}\")\n","steps":[{"name":"GraphQL: createPlaceMultiple (passreq-place-1, place_type=flat)","time":{"start":1777904073427,"stop":1777904073470,"duration":43},"status":"passed","steps":[],"attachments":[{"uid":"69a1d7261dfb818f","name":"createPlaceMultiple response","source":"69a1d7261dfb818f.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":1777904073470,"stop":1777904073506,"duration":36},"status":"broken","statusMessage":"RuntimeError: GraphQL errors: [{'message': 'Bad Request', 'code': 'Client Error', 'status': 400, 'description': 'The request could not be understood by the server due to malformed syntax'}]\n","statusTrace":" File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 284, in _create_place\n resp = self._retry_graphql(\n op_name=\"createPlaceMultiple\",\n ...<4 lines>...\n retries=2,\n )\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Pass_request\\testdata\\pass_request_test_data.py\", line 205, in _retry_graphql\n return _exec_or_fail(op_name=op_name, token=token, query=query, variables=variables, company_id=company_id)\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 191, in execute_graphql\n raise RuntimeError(f\"GraphQL errors: {errors}\")\n","steps":[],"attachments":[{"uid":"1b415674bbb4360f","name":"RuntimeError: createPlaceMultiple","source":"1b415674bbb4360f.txt","type":"text/plain","size":175}],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":2,"attachmentStep":false,"stepsCount":2,"hasContent":true},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1777904073512,"stop":1777904073565,"duration":53},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And create pass in place #3 for approval flow","time":{"start":1777904073567,"stop":1777904073568,"duration":1},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When query passRequests by created pass_id with my token","time":{"start":1777904073568,"stop":1777904073568,"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":1777904073568,"stop":1777904073568,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When reject pass request with my token","time":{"start":1777904073568,"stop":1777904073568,"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":1777904073568,"stop":1777904073568,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is not active","time":{"start":1777904073568,"stop":1777904073568,"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":1777904073568,"stop":1777904073568,"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":1777904073568,"stop":1777904073568,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then pass request status is not active","time":{"start":1777904073568,"stop":1777904073568,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":2,"attachmentStep":false,"stepsCount":14,"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":"d30b5b5afde0a78f.json","parameterValues":[]}