1 line
6.9 KiB
JSON
1 line
6.9 KiB
JSON
{"name": "passRequests returns results for created pass", "status": "failed", "statusDetails": {"message": "AssertionError: В results нет записи с pass_id='69f8aee25bf357cd11710a60'. 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_requests_steps.py\", line 50, in step_assert_pass_requests\n assert isinstance(matched, dict), f\"В results нет записи с pass_id={pass_id!r}. results={results!r}\"\n ~~~~~~~~~~^^^^^^^^^^^^^^^\n"}, "steps": [{"name": "When get access token", "status": "passed", "start": 1777905377553, "stop": 1777905377897}, {"name": "And prepare place, entrance, service and user for pass", "status": "passed", "steps": [{"name": "GraphQL: createPlaceMultiple (main place)", "status": "passed", "attachments": [{"name": "createPlaceMultiple(main) response", "source": "1475e52b-ccdc-4abb-aadb-0f32553a949f-attachment.json", "type": "application/json"}], "start": 1777905377900, "stop": 1777905377944}, {"name": "GraphQL: createService", "status": "passed", "attachments": [{"name": "createService response", "source": "9f1f6da7-4b29-4b0d-89f3-25939b934aa0-attachment.json", "type": "application/json"}], "start": 1777905377944, "stop": 1777905377974}, {"name": "GraphQL: addPlaceToService", "status": "passed", "attachments": [{"name": "addPlaceToService response", "source": "4dd6ced0-66f1-4813-94a7-4893218a9279-attachment.json", "type": "application/json"}], "start": 1777905377974, "stop": 1777905378013}, {"name": "GraphQL: createUser (for pass target)", "status": "passed", "attachments": [{"name": "createUser response", "source": "dc1c3449-0af9-4c8b-bd66-747c5e7be38e-attachment.json", "type": "application/json"}], "start": 1777905378013, "stop": 1777905378058}, {"name": "GraphQL: addUserToPlace (attach user to pass place)", "status": "passed", "attachments": [{"name": "addUserToPlace response", "source": "d741fc56-9c1c-4f6b-a076-05aab34d73dd-attachment.json", "type": "application/json"}], "start": 1777905378058, "stop": 1777905378137}], "start": 1777905377897, "stop": 1777905378137}, {"name": "And create pass for prepared place", "status": "passed", "steps": [{"name": "GraphQL: createPass (variant 1)", "status": "passed", "attachments": [{"name": "createPass(v1) response", "source": "b76ee626-2ed0-46fe-969e-9135af2048e7-attachment.json", "type": "application/json"}], "start": 1777905378138, "stop": 1777905378368}], "start": 1777905378138, "stop": 1777905378369}, {"name": "When query passRequests by created pass_id", "status": "passed", "steps": [{"name": "GraphQL: passRequests (by pass_id)", "status": "passed", "attachments": [{"name": "passRequests response", "source": "589e5038-8e93-4820-af73-3bf118fc63b8-attachment.json", "type": "application/json"}], "start": 1777905378370, "stop": 1777905378412}], "start": 1777905378369, "stop": 1777905378412}, {"name": "Then passRequests response contains created pass", "status": "failed", "statusDetails": {"message": "AssertionError: В results нет записи с pass_id='69f8aee25bf357cd11710a60'. 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_requests_steps.py\", line 50, in step_assert_pass_requests\n assert isinstance(matched, dict), f\"В results нет записи с pass_id={pass_id!r}. results={results!r}\"\n ~~~~~~~~~~^^^^^^^^^^^^^^^\n"}, "start": 1777905378412, "stop": 1777905378416}, {"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": "12199416-3a70-4264-ae93-5bac3cecc024-attachment.txt", "type": "text/plain"}], "start": 1777905378417, "stop": 1777905378438}, {"name": "Cleanup: _cleanup_delete_user", "status": "passed", "start": 1777905378444, "stop": 1777905378616}, {"name": "Cleanup: _cleanup_unbind_and_delete_service", "status": "passed", "start": 1777905378616, "stop": 1777905378744}, {"name": "Cleanup: _cleanup_delete_place", "status": "passed", "start": 1777905378744, "stop": 1777905378800}], "attachments": [{"name": "Cleanup error", "source": "b35329d6-aced-4ce3-b9cb-102875cc04dd-attachment.txt", "type": "text/plain"}], "start": 1777905377551, "stop": 1777905378802, "uuid": "03dc680f-b5b3-4327-a6a0-750a19e34a17", "historyId": "010e40997e6f0fca0e1d5f22e2b8daaf", "testCaseId": "71a81ed0e9d65cf2d6e3ac890e15da11", "fullName": "Pass requests: passRequests returns results for created pass", "labels": [{"name": "severity", "value": "normal"}, {"name": "feature", "value": "Pass requests"}, {"name": "framework", "value": "behave"}, {"name": "language", "value": "cpython3"}], "titlePath": ["Pass_request", "features", "Pass requests"]} |