{"uid":"ec188d743377d0a4","name":"Change ticket category and verify employee authorization","fullName":"Ticket GraphQL (category + employee): Change ticket category and verify employee authorization","historyId":"513dbba13eb631355480ef0f7e48bcb6","time":{"start":1778224240314,"stop":1778224240800,"duration":486},"status":"failed","statusMessage":"AssertionError: Нет доступных tickets для проверки (по умолчанию берём place_id 682733c16773cfa73dc8d0a7) и createTicket запрещён на стенде. Укажите place_id с существующими заявками (поменяйте DEFAULT_TICKETINFO_PLACE_ID в шаге) или дайте права на createTicket. Детали: Forbidden на операции: createTicket(mutation)\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 \"Ticket\\features\\steps\\ticket_category_change_testdata_steps.py\", line 67, in step_prepare_ticket_and_categories\n raise AssertionError(\n ...<5 lines>...\n )\n","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[],"testStage":{"status":"failed","statusMessage":"AssertionError: Нет доступных tickets для проверки (по умолчанию берём place_id 682733c16773cfa73dc8d0a7) и createTicket запрещён на стенде. Укажите place_id с существующими заявками (поменяйте DEFAULT_TICKETINFO_PLACE_ID в шаге) или дайте права на createTicket. Детали: Forbidden на операции: createTicket(mutation)\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 \"Ticket\\features\\steps\\ticket_category_change_testdata_steps.py\", line 67, in step_prepare_ticket_and_categories\n raise AssertionError(\n ...<5 lines>...\n )\n","steps":[{"name":"When get access token","time":{"start":1778224240315,"stop":1778224240446,"duration":131},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then access token is valid","time":{"start":1778224240447,"stop":1778224240448,"duration":1},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When prepare ticket and categories for category change test","time":{"start":1778224240448,"stop":1778224240675,"duration":227},"status":"failed","statusMessage":"AssertionError: Нет доступных tickets для проверки (по умолчанию берём place_id 682733c16773cfa73dc8d0a7) и createTicket запрещён на стенде. Укажите place_id с существующими заявками (поменяйте DEFAULT_TICKETINFO_PLACE_ID в шаге) или дайте права на createTicket. Детали: Forbidden на операции: createTicket(mutation)\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 \"Ticket\\features\\steps\\ticket_category_change_testdata_steps.py\", line 67, in step_prepare_ticket_and_categories\n raise AssertionError(\n ...<5 lines>...\n )\n","steps":[{"name":"GraphQL: createPlaceMultiple","time":{"start":1778224240517,"stop":1778224240575,"duration":58},"status":"passed","steps":[],"attachments":[{"uid":"4f7627c24b592673","name":"createPlaceMultiple response","source":"4f7627c24b592673.json","type":"application/json","size":148}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createTicketCategory (cat-old)","time":{"start":1778224240575,"stop":1778224240625,"duration":50},"status":"passed","steps":[],"attachments":[{"uid":"e73da74cecb85864","name":"createTicketCategory response","source":"e73da74cecb85864.json","type":"application/json","size":233}],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true},{"name":"GraphQL: createTicket","time":{"start":1778224240625,"stop":1778224240668,"duration":43},"status":"failed","statusMessage":"AssertionError: Forbidden на операции: createTicket(mutation)\n","statusTrace":" File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Ticket\\testdata\\ticket_test_data.py\", line 234, in create_ticket_with_category\n resp = _exec_or_fail(op_name=\"createTicket(mutation)\", token=token, query=mutation, variables=variables, company_id=self.company_id)\n File \"C:\\Users\\Степаан\\PycharmProjects\\work\\Ticket\\testdata\\ticket_test_data.py\", line 35, in _exec_or_fail\n raise AssertionError(f\"Forbidden на операции: {op_name}\") from e\n","steps":[],"attachments":[{"uid":"cc6106c6640e942a","name":"Forbidden: createTicket(mutation)","source":"cc6106c6640e942a.txt","type":"text/plain","size":164}],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":1,"attachmentStep":false,"stepsCount":0,"hasContent":true}],"attachments":[],"parameters":[],"shouldDisplayMessage":true,"attachmentsCount":3,"attachmentStep":false,"stepsCount":3,"hasContent":true},{"name":"Cleanup: _cleanup_delete_category","time":{"start":1778224240676,"stop":1778224240729,"duration":53},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Cleanup: _cleanup_delete_place","time":{"start":1778224240729,"stop":1778224240797,"duration":68},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And change ticket category to in_group category","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And query tickets by created place id","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then ticket category changed from old to in_group","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And employee is authorized for ticket","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"When change ticket category to out_group category","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"And query tickets by created place id","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false},{"name":"Then employee is NOT authorized for ticket","time":{"start":1778224240800,"stop":1778224240800,"duration":0},"status":"skipped","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"attachmentStep":false,"stepsCount":0,"hasContent":false}],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":3,"attachmentStep":false,"stepsCount":15,"hasContent":true},"afterStages":[],"labels":[{"name":"severity","value":"normal"},{"name":"feature","value":"Ticket GraphQL (category + employee)"},{"name":"framework","value":"behave"},{"name":"language","value":"cpython3"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":true,"retry":true,"extra":{"categories":[],"tags":[]},"source":"ec188d743377d0a4.json","parameterValues":[]}