From 4a55c6d4b765c1f92e6e207a3a219e0f51766b62 Mon Sep 17 00:00:00 2001 From: tony Date: Fri, 20 Feb 2026 00:22:51 +0100 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=82=D0=BE=D1=80=D0=BE=D0=B5=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=B8=D0=BF=D0=BB?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Task_2/README.md | 19 ++++++ ...89-bd7e-45e3-8697-ac954d214ef2-result.json | 1 + ...af-219b-4f5f-9bf2-910fc7752004-result.json | 1 + ...6a-f472-4bcb-b65d-5b70ddaedc2a-result.json | 1 + ...02-6bb9-4b95-a342-998f5e24c10d-result.json | 1 + ...0373-4673-8ceb-1fd36c047faa-container.json | 1 + ...9f-cf55-488f-b6fc-dc7422d9160b-result.json | 1 + ...1d-c0df-4740-bf7d-177c227b013b-result.json | 1 + ...fc-0ae2-4f74-b83a-0c6311239cb0-result.json | 1 + ...9dfe-4f0f-a9bd-b0586ea358c2-container.json | 1 + ...c4-0ae4-4e74-9f76-d9102e7e26a0-result.json | 1 + ...11e6-43e1-8455-0dea56e42bcf-container.json | 1 + ...ed9b-49fc-b973-46bfa4036435-container.json | 1 + ...31-13c8-4404-975e-434976e2e873-result.json | 1 + ...511f-4b95-ad2b-89964adff593-container.json | 1 + ...09d1-45ef-9003-922c7cec32d6-container.json | 1 + ...0349-4cf4-8949-2fee1cf5693d-container.json | 1 + ...4e-314a-47bd-8d40-bf9239d8c18b-result.json | 1 + ...6aa1-41d4-9283-bb3779a45c89-container.json | 1 + ...b443-45d7-b29b-8b7f83513515-container.json | 1 + ...dd0b-4cbd-a46d-56f1018d6e37-container.json | 1 + ...0277-487f-83e7-496cc21abecf-container.json | 1 + ...6b-b2a2-49c4-8bb1-2aaa96c2fb72-result.json | 1 + ...c1e3-4997-a71a-4e2c9e80ca43-container.json | 1 + ...cdac-4fe0-870d-3305ce818fe5-container.json | 1 + ...a6b8-4a8f-9318-548c08fc71dd-container.json | 1 + ...03-8132-470f-8a1b-454352250f33-result.json | 1 + ...fe07-45d9-8dc5-a6d410702427-container.json | 1 + ...5526-455e-95fe-02509e2d5b8e-container.json | 1 + ...87dc-4957-b60e-16cecbe26423-container.json | 1 + ...c72f-4af1-b935-cbd7cb02d6bf-container.json | 1 + ...6525-431a-8550-79d881d887a3-container.json | 1 + ...4119-447e-9bc3-18c0630d6054-container.json | 1 + ...f92d-4164-805c-a50219ba25a6-container.json | 1 + ...17da-4813-8f48-cbf2db94bbd8-container.json | 1 + ...918d-47c1-9afe-6f528af083ad-container.json | 1 + ...8cd1-4adf-8db6-9f243cfcb7b0-container.json | 1 + ...65-b037-498a-833a-a5c65deed1a1-result.json | 1 + ...73-f01a-4fe6-9af9-96c5e5f64c5d-result.json | 1 + ...a612-4619-b053-4f0289d45c4d-container.json | 1 + ...2dc4-457f-9929-29f9cfcd4b1e-container.json | 1 + ...bc-cd6c-43b1-a360-52662a384632-result.json | 1 + ...bdf4-4e86-834f-b8cebbef23b4-container.json | 1 + ...e0-2d79-4fbf-aad0-4c6dc769bb54-result.json | 1 + ...38-6582-4721-8f62-12b2a2c5f8bb-result.json | 1 + ...cf05-4296-ae99-0f209a4cb958-container.json | 1 + ...b8-8eae-4995-b142-d7a0a0adf0df-result.json | 1 + ...8603-44a5-94ea-6079e5ea158f-container.json | 1 + ...d249-4340-8870-43897d693530-container.json | 1 + ...cbe5-45a3-ae76-756df49225ac-container.json | 1 + ...bd85-4c58-bf2e-514b1554e03f-container.json | 1 + ...e9b2-4c13-a412-99dd8e782cf2-container.json | 1 + ...77-2657-46be-ab5a-a2b9d136efb3-result.json | 1 + ...5b96-490b-aa20-4f320b4c834a-container.json | 1 + ...69-ef4b-4b57-b6d3-2e1bc89b32f4-result.json | 1 + ...d2-8436-4bba-8609-dff6b58713a6-result.json | 1 + ...2d38-4a94-9462-a578a9287d24-container.json | 1 + ...23c2-4d48-814f-7f5aae8bad38-container.json | 1 + ...9663-4c9e-9dcb-0fb4a9b774f8-container.json | 1 + ...f9-9277-49ff-a4fa-4b3b80290b58-result.json | 1 + ...1985-4718-aa3a-a75233608e2a-container.json | 1 + ...1fa9-4330-9f3c-7e080b7820c7-container.json | 1 + ...71-2c82-4e8e-a982-ec42a768484b-result.json | 1 + ...7d-da03-4638-8079-258ffe19b845-result.json | 1 + ...0141-408e-b75c-dc1f43f673c1-container.json | 1 + ...1a47-4439-83f9-07144c6998ef-container.json | 1 + ...fc-edee-4968-8d49-87475319db30-result.json | 1 + ...d6d6-4798-801f-d7136d4ba400-container.json | 1 + ...ff61-4db9-9fb4-a3de6d9d2b48-container.json | 1 + ...7bac-4751-819e-d6744d046951-container.json | 1 + ...4ffb-4bac-9d1f-abe287132770-container.json | 1 + ...f8-d82b-447a-bf5f-a6a9607950ba-result.json | 1 + ...78c8-49ed-9d6b-8b5a231c6ff5-container.json | 1 + ...be3a-4190-a77e-fb3d20f087e3-container.json | 1 + ...b37a-41a2-aacf-8d780922c9fd-container.json | 1 + ...c59d-4c9c-89eb-786de27f95e6-container.json | 1 + ...f8c6-451b-bf21-990b83aa3aa3-container.json | 1 + ...c932-454b-bdd3-fcdd340c464c-container.json | 1 + ...80-bf58-4b0c-9e9a-f21714d59b84-result.json | 1 + ...ff-ab6d-4b1f-9400-7164386e03a3-result.json | 1 + ...b248-455b-b20c-4d6ccedd6bfc-container.json | 1 + ...97-3364-4b2c-9f4f-c3f9c62b7950-result.json | 1 + ...3b58-44c9-8cf7-88ce467a6ba9-container.json | 1 + ...e0b4-4d4c-9919-9047e9e28eb6-container.json | 1 + ...e281-48fa-964e-bc5eee1a7b38-container.json | 1 + ...d1-6713-45e2-901c-f6037bbf2a59-result.json | 1 + ...6d7f-470c-be1c-dc2ba4e8973a-container.json | 1 + ...fae4-4dc1-9deb-2f15b54c7463-container.json | 1 + ...45a9-4d6c-a45b-b3e66516c328-container.json | 1 + ...99-a407-4897-b5e7-1f8f52c81d5b-result.json | 1 + ...d8dc-47d1-9efb-a1e5a18777b9-container.json | 1 + ...c2-04ff-4488-893c-58e365f2b13e-result.json | 1 + ...7d-d70e-4ebe-a37c-aedb3bbec569-result.json | 1 + ...aa4c-49c0-8f13-32c90beef1db-container.json | 1 + ...1c-6cb3-4f1b-a170-85ed84642727-result.json | 1 + ...43cb-4d52-b613-9bb17a34c56a-container.json | 1 + ...a1a0-4bab-9fb7-1dd4c4413747-container.json | 1 + ...55d8-4443-8254-6d8b68423533-container.json | 1 + ...ae-6223-42cd-b822-44d19a62296a-result.json | 1 + ...d925-4bc6-8880-02f3a973e3a9-container.json | 1 + ...bb-613f-451f-8c06-6a96ff926da3-result.json | 1 + ...f1-36b4-4287-ad11-262049878235-result.json | 1 + ...7896-41e5-9667-b0d440580f6d-container.json | 1 + ...5a-300a-4b56-9fe0-f9e0bd94496c-result.json | 1 + ...045f-44b1-8406-6d3dce3e4d32-container.json | 1 + ...4c6d-4aa4-b00f-15959a377dc8-container.json | 1 + ...abda-42ba-bb52-dd58bdd3fa4c-container.json | 1 + ...53d7-4546-899e-6aeec5ee7e34-container.json | 1 + ...6978-4971-a4e8-4b27c5aed134-container.json | 1 + ...e1c5-4ba7-864e-319b25e8ee1b-container.json | 1 + ...b274-4c41-8257-0bfbaa784e51-container.json | 1 + Task_2/pytest.ini | 3 + Task_2/requirements.txt | 3 + Task_2/src/stellar_burgers/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 176 bytes .../__pycache__/api_client.cpython-310.pyc | Bin 0 -> 2499 bytes .../__pycache__/config.cpython-310.pyc | Bin 0 -> 255 bytes .../__pycache__/data_builders.cpython-310.pyc | Bin 0 -> 834 bytes Task_2/src/stellar_burgers/api_client.py | 59 +++++++++++++++++ Task_2/src/stellar_burgers/config.py | 2 + Task_2/src/stellar_burgers/data_builders.py | 20 ++++++ .../conftest.cpython-310-pytest-8.3.3.pyc | Bin 0 -> 2515 bytes .../tests/__pycache__/helpers.cpython-310.pyc | Bin 0 -> 1532 bytes .../test_orders.cpython-310-pytest-8.3.3.pyc | Bin 0 -> 8634 bytes ...t_user_create.cpython-310-pytest-8.3.3.pyc | Bin 0 -> 5214 bytes ...st_user_login.cpython-310-pytest-8.3.3.pyc | Bin 0 -> 3940 bytes ...t_user_update.cpython-310-pytest-8.3.3.pyc | Bin 0 -> 4180 bytes Task_2/tests/conftest.py | 48 ++++++++++++++ Task_2/tests/helpers.py | 28 ++++++++ Task_2/tests/test_orders.py | 62 ++++++++++++++++++ Task_2/tests/test_user_create.py | 47 +++++++++++++ Task_2/tests/test_user_login.py | 25 +++++++ Task_2/tests/test_user_update.py | 57 ++++++++++++++++ 133 files changed, 483 insertions(+) create mode 100644 Task_2/README.md create mode 100644 Task_2/allure-results/00962d89-bd7e-45e3-8697-ac954d214ef2-result.json create mode 100644 Task_2/allure-results/015778af-219b-4f5f-9bf2-910fc7752004-result.json create mode 100644 Task_2/allure-results/030a346a-f472-4bcb-b65d-5b70ddaedc2a-result.json create mode 100644 Task_2/allure-results/0394b402-6bb9-4b95-a342-998f5e24c10d-result.json create mode 100644 Task_2/allure-results/0466f0dc-0373-4673-8ceb-1fd36c047faa-container.json create mode 100644 Task_2/allure-results/05f1049f-cf55-488f-b6fc-dc7422d9160b-result.json create mode 100644 Task_2/allure-results/0629e21d-c0df-4740-bf7d-177c227b013b-result.json create mode 100644 Task_2/allure-results/0668c0fc-0ae2-4f74-b83a-0c6311239cb0-result.json create mode 100644 Task_2/allure-results/08e84639-9dfe-4f0f-a9bd-b0586ea358c2-container.json create mode 100644 Task_2/allure-results/0a845cc4-0ae4-4e74-9f76-d9102e7e26a0-result.json create mode 100644 Task_2/allure-results/104012c6-11e6-43e1-8455-0dea56e42bcf-container.json create mode 100644 Task_2/allure-results/12165b68-ed9b-49fc-b973-46bfa4036435-container.json create mode 100644 Task_2/allure-results/14f2fb31-13c8-4404-975e-434976e2e873-result.json create mode 100644 Task_2/allure-results/162f9de7-511f-4b95-ad2b-89964adff593-container.json create mode 100644 Task_2/allure-results/170b1fb7-09d1-45ef-9003-922c7cec32d6-container.json create mode 100644 Task_2/allure-results/1a0ec16b-0349-4cf4-8949-2fee1cf5693d-container.json create mode 100644 Task_2/allure-results/1aad1a4e-314a-47bd-8d40-bf9239d8c18b-result.json create mode 100644 Task_2/allure-results/1d6bd217-6aa1-41d4-9283-bb3779a45c89-container.json create mode 100644 Task_2/allure-results/22399403-b443-45d7-b29b-8b7f83513515-container.json create mode 100644 Task_2/allure-results/22a6ce45-dd0b-4cbd-a46d-56f1018d6e37-container.json create mode 100644 Task_2/allure-results/251e27ef-0277-487f-83e7-496cc21abecf-container.json create mode 100644 Task_2/allure-results/2559ee6b-b2a2-49c4-8bb1-2aaa96c2fb72-result.json create mode 100644 Task_2/allure-results/259b6a51-c1e3-4997-a71a-4e2c9e80ca43-container.json create mode 100644 Task_2/allure-results/259f1809-cdac-4fe0-870d-3305ce818fe5-container.json create mode 100644 Task_2/allure-results/26a812d3-a6b8-4a8f-9318-548c08fc71dd-container.json create mode 100644 Task_2/allure-results/27bb9403-8132-470f-8a1b-454352250f33-result.json create mode 100644 Task_2/allure-results/29b45a0f-fe07-45d9-8dc5-a6d410702427-container.json create mode 100644 Task_2/allure-results/2d871139-5526-455e-95fe-02509e2d5b8e-container.json create mode 100644 Task_2/allure-results/2f15b7fe-87dc-4957-b60e-16cecbe26423-container.json create mode 100644 Task_2/allure-results/30ff4496-c72f-4af1-b935-cbd7cb02d6bf-container.json create mode 100644 Task_2/allure-results/32e26d20-6525-431a-8550-79d881d887a3-container.json create mode 100644 Task_2/allure-results/3474e900-4119-447e-9bc3-18c0630d6054-container.json create mode 100644 Task_2/allure-results/35ab492e-f92d-4164-805c-a50219ba25a6-container.json create mode 100644 Task_2/allure-results/39b674a2-17da-4813-8f48-cbf2db94bbd8-container.json create mode 100644 Task_2/allure-results/40310cf6-918d-47c1-9afe-6f528af083ad-container.json create mode 100644 Task_2/allure-results/4491d952-8cd1-4adf-8db6-9f243cfcb7b0-container.json create mode 100644 Task_2/allure-results/44b46c65-b037-498a-833a-a5c65deed1a1-result.json create mode 100644 Task_2/allure-results/4b220e73-f01a-4fe6-9af9-96c5e5f64c5d-result.json create mode 100644 Task_2/allure-results/4c7897fe-a612-4619-b053-4f0289d45c4d-container.json create mode 100644 Task_2/allure-results/4eceb350-2dc4-457f-9929-29f9cfcd4b1e-container.json create mode 100644 Task_2/allure-results/576347bc-cd6c-43b1-a360-52662a384632-result.json create mode 100644 Task_2/allure-results/57c160c2-bdf4-4e86-834f-b8cebbef23b4-container.json create mode 100644 Task_2/allure-results/5bf6f2e0-2d79-4fbf-aad0-4c6dc769bb54-result.json create mode 100644 Task_2/allure-results/5d8fcc38-6582-4721-8f62-12b2a2c5f8bb-result.json create mode 100644 Task_2/allure-results/65726404-cf05-4296-ae99-0f209a4cb958-container.json create mode 100644 Task_2/allure-results/678e14b8-8eae-4995-b142-d7a0a0adf0df-result.json create mode 100644 Task_2/allure-results/68d9081c-8603-44a5-94ea-6079e5ea158f-container.json create mode 100644 Task_2/allure-results/6928f1a5-d249-4340-8870-43897d693530-container.json create mode 100644 Task_2/allure-results/6ad462db-cbe5-45a3-ae76-756df49225ac-container.json create mode 100644 Task_2/allure-results/6b68013f-bd85-4c58-bf2e-514b1554e03f-container.json create mode 100644 Task_2/allure-results/6fa71522-e9b2-4c13-a412-99dd8e782cf2-container.json create mode 100644 Task_2/allure-results/72154777-2657-46be-ab5a-a2b9d136efb3-result.json create mode 100644 Task_2/allure-results/76dd4311-5b96-490b-aa20-4f320b4c834a-container.json create mode 100644 Task_2/allure-results/789b2769-ef4b-4b57-b6d3-2e1bc89b32f4-result.json create mode 100644 Task_2/allure-results/7977c5d2-8436-4bba-8609-dff6b58713a6-result.json create mode 100644 Task_2/allure-results/7a02f432-2d38-4a94-9462-a578a9287d24-container.json create mode 100644 Task_2/allure-results/7aaf4dac-23c2-4d48-814f-7f5aae8bad38-container.json create mode 100644 Task_2/allure-results/7c3c2571-9663-4c9e-9dcb-0fb4a9b774f8-container.json create mode 100644 Task_2/allure-results/7e60a5f9-9277-49ff-a4fa-4b3b80290b58-result.json create mode 100644 Task_2/allure-results/7fff155e-1985-4718-aa3a-a75233608e2a-container.json create mode 100644 Task_2/allure-results/809fc11e-1fa9-4330-9f3c-7e080b7820c7-container.json create mode 100644 Task_2/allure-results/80bae371-2c82-4e8e-a982-ec42a768484b-result.json create mode 100644 Task_2/allure-results/82258e7d-da03-4638-8079-258ffe19b845-result.json create mode 100644 Task_2/allure-results/86a7c279-0141-408e-b75c-dc1f43f673c1-container.json create mode 100644 Task_2/allure-results/92309088-1a47-4439-83f9-07144c6998ef-container.json create mode 100644 Task_2/allure-results/941f3ffc-edee-4968-8d49-87475319db30-result.json create mode 100644 Task_2/allure-results/957b7315-d6d6-4798-801f-d7136d4ba400-container.json create mode 100644 Task_2/allure-results/984dee58-ff61-4db9-9fb4-a3de6d9d2b48-container.json create mode 100644 Task_2/allure-results/986d5ba7-7bac-4751-819e-d6744d046951-container.json create mode 100644 Task_2/allure-results/9a890d54-4ffb-4bac-9d1f-abe287132770-container.json create mode 100644 Task_2/allure-results/9b9960f8-d82b-447a-bf5f-a6a9607950ba-result.json create mode 100644 Task_2/allure-results/9c255f61-78c8-49ed-9d6b-8b5a231c6ff5-container.json create mode 100644 Task_2/allure-results/a0221f42-be3a-4190-a77e-fb3d20f087e3-container.json create mode 100644 Task_2/allure-results/a3a8ce5b-b37a-41a2-aacf-8d780922c9fd-container.json create mode 100644 Task_2/allure-results/a460b261-c59d-4c9c-89eb-786de27f95e6-container.json create mode 100644 Task_2/allure-results/a48ad0a0-f8c6-451b-bf21-990b83aa3aa3-container.json create mode 100644 Task_2/allure-results/a5331b07-c932-454b-bdd3-fcdd340c464c-container.json create mode 100644 Task_2/allure-results/a56a8880-bf58-4b0c-9e9a-f21714d59b84-result.json create mode 100644 Task_2/allure-results/a685c4ff-ab6d-4b1f-9400-7164386e03a3-result.json create mode 100644 Task_2/allure-results/a6bbd683-b248-455b-b20c-4d6ccedd6bfc-container.json create mode 100644 Task_2/allure-results/ac177097-3364-4b2c-9f4f-c3f9c62b7950-result.json create mode 100644 Task_2/allure-results/ad20eb56-3b58-44c9-8cf7-88ce467a6ba9-container.json create mode 100644 Task_2/allure-results/adb1ab57-e0b4-4d4c-9919-9047e9e28eb6-container.json create mode 100644 Task_2/allure-results/b24dbbb2-e281-48fa-964e-bc5eee1a7b38-container.json create mode 100644 Task_2/allure-results/b28109d1-6713-45e2-901c-f6037bbf2a59-result.json create mode 100644 Task_2/allure-results/b2cf51b8-6d7f-470c-be1c-dc2ba4e8973a-container.json create mode 100644 Task_2/allure-results/b38a0d0d-fae4-4dc1-9deb-2f15b54c7463-container.json create mode 100644 Task_2/allure-results/b5670364-45a9-4d6c-a45b-b3e66516c328-container.json create mode 100644 Task_2/allure-results/b6df3999-a407-4897-b5e7-1f8f52c81d5b-result.json create mode 100644 Task_2/allure-results/c0f9927d-d8dc-47d1-9efb-a1e5a18777b9-container.json create mode 100644 Task_2/allure-results/c840c7c2-04ff-4488-893c-58e365f2b13e-result.json create mode 100644 Task_2/allure-results/ccd02e7d-d70e-4ebe-a37c-aedb3bbec569-result.json create mode 100644 Task_2/allure-results/cd655a60-aa4c-49c0-8f13-32c90beef1db-container.json create mode 100644 Task_2/allure-results/cfce6e1c-6cb3-4f1b-a170-85ed84642727-result.json create mode 100644 Task_2/allure-results/d1b53906-43cb-4d52-b613-9bb17a34c56a-container.json create mode 100644 Task_2/allure-results/d7100a7e-a1a0-4bab-9fb7-1dd4c4413747-container.json create mode 100644 Task_2/allure-results/dce2e512-55d8-4443-8254-6d8b68423533-container.json create mode 100644 Task_2/allure-results/dde101ae-6223-42cd-b822-44d19a62296a-result.json create mode 100644 Task_2/allure-results/de1d2d9b-d925-4bc6-8880-02f3a973e3a9-container.json create mode 100644 Task_2/allure-results/df3d84bb-613f-451f-8c06-6a96ff926da3-result.json create mode 100644 Task_2/allure-results/e17e07f1-36b4-4287-ad11-262049878235-result.json create mode 100644 Task_2/allure-results/e9c9a195-7896-41e5-9667-b0d440580f6d-container.json create mode 100644 Task_2/allure-results/eafc3b5a-300a-4b56-9fe0-f9e0bd94496c-result.json create mode 100644 Task_2/allure-results/ebe48426-045f-44b1-8406-6d3dce3e4d32-container.json create mode 100644 Task_2/allure-results/ec5af5e2-4c6d-4aa4-b00f-15959a377dc8-container.json create mode 100644 Task_2/allure-results/efd7ba8a-abda-42ba-bb52-dd58bdd3fa4c-container.json create mode 100644 Task_2/allure-results/f142f851-53d7-4546-899e-6aeec5ee7e34-container.json create mode 100644 Task_2/allure-results/f52576c6-6978-4971-a4e8-4b27c5aed134-container.json create mode 100644 Task_2/allure-results/f69c41bb-e1c5-4ba7-864e-319b25e8ee1b-container.json create mode 100644 Task_2/allure-results/fde081ab-b274-4c41-8257-0bfbaa784e51-container.json create mode 100644 Task_2/pytest.ini create mode 100644 Task_2/requirements.txt create mode 100644 Task_2/src/stellar_burgers/__init__.py create mode 100644 Task_2/src/stellar_burgers/__pycache__/__init__.cpython-310.pyc create mode 100644 Task_2/src/stellar_burgers/__pycache__/api_client.cpython-310.pyc create mode 100644 Task_2/src/stellar_burgers/__pycache__/config.cpython-310.pyc create mode 100644 Task_2/src/stellar_burgers/__pycache__/data_builders.cpython-310.pyc create mode 100644 Task_2/src/stellar_burgers/api_client.py create mode 100644 Task_2/src/stellar_burgers/config.py create mode 100644 Task_2/src/stellar_burgers/data_builders.py create mode 100644 Task_2/tests/__pycache__/conftest.cpython-310-pytest-8.3.3.pyc create mode 100644 Task_2/tests/__pycache__/helpers.cpython-310.pyc create mode 100644 Task_2/tests/__pycache__/test_orders.cpython-310-pytest-8.3.3.pyc create mode 100644 Task_2/tests/__pycache__/test_user_create.cpython-310-pytest-8.3.3.pyc create mode 100644 Task_2/tests/__pycache__/test_user_login.cpython-310-pytest-8.3.3.pyc create mode 100644 Task_2/tests/__pycache__/test_user_update.cpython-310-pytest-8.3.3.pyc create mode 100644 Task_2/tests/conftest.py create mode 100644 Task_2/tests/helpers.py create mode 100644 Task_2/tests/test_orders.py create mode 100644 Task_2/tests/test_user_create.py create mode 100644 Task_2/tests/test_user_login.py create mode 100644 Task_2/tests/test_user_update.py diff --git a/Task_2/README.md b/Task_2/README.md new file mode 100644 index 000000000..08fef9c27 --- /dev/null +++ b/Task_2/README.md @@ -0,0 +1,19 @@ +# Stellar Burgers API tests + +## Setup +```bash +python -m venv .venv +source .venv/bin/activate # macOS/Linux +pip install -r requirements.txt +``` + +## Run +```bash +pytest -q +``` + +## Allure +```bash +pytest --alluredir=allure-results +allure serve allure-results +``` diff --git a/Task_2/allure-results/00962d89-bd7e-45e3-8697-ac954d214ef2-result.json b/Task_2/allure-results/00962d89-bd7e-45e3-8697-ac954d214ef2-result.json new file mode 100644 index 000000000..5479ddfe3 --- /dev/null +++ b/Task_2/allure-results/00962d89-bd7e-45e3-8697-ac954d214ef2-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_that_already_exists_returns_403", "status": "passed", "start": 1771542390526, "stop": 1771542390620, "uuid": "387c1266-9027-462a-b5c6-db5d581bec85", "historyId": "f14657962cfd328ecf5ccba946992fd7", "testCaseId": "f14657962cfd328ecf5ccba946992fd7", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_that_already_exists_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/015778af-219b-4f5f-9bf2-910fc7752004-result.json b/Task_2/allure-results/015778af-219b-4f5f-9bf2-910fc7752004-result.json new file mode 100644 index 000000000..29597fbe0 --- /dev/null +++ b/Task_2/allure-results/015778af-219b-4f5f-9bf2-910fc7752004-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[email-None]", "status": "passed", "parameters": [{"name": "field", "value": "'email'"}, {"name": "new_value", "value": "None"}], "start": 1771543040788, "stop": 1771543040874, "uuid": "3bd27079-0219-412d-96d7-0564f47b4d9f", "historyId": "88daa7bf2aaea9c155da70c418881168", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/030a346a-f472-4bcb-b65d-5b70ddaedc2a-result.json b/Task_2/allure-results/030a346a-f472-4bcb-b65d-5b70ddaedc2a-result.json new file mode 100644 index 000000000..04fc2da9c --- /dev/null +++ b/Task_2/allure-results/030a346a-f472-4bcb-b65d-5b70ddaedc2a-result.json @@ -0,0 +1 @@ +{"name": "test_get_orders_unauthorized_user_returns_401", "status": "passed", "start": 1771542389254, "stop": 1771542389347, "uuid": "ce2bfe40-3de0-48ef-9a45-fff98af59859", "historyId": "a9d36ad85ea473bd07eed08a4109d7f9", "testCaseId": "a9d36ad85ea473bd07eed08a4109d7f9", "fullName": "tests.test_orders.TestGetUserOrders#test_get_orders_unauthorized_user_returns_401", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Get user orders"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestGetUserOrders"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/0394b402-6bb9-4b95-a342-998f5e24c10d-result.json b/Task_2/allure-results/0394b402-6bb9-4b95-a342-998f5e24c10d-result.json new file mode 100644 index 000000000..d66cc8197 --- /dev/null +++ b/Task_2/allure-results/0394b402-6bb9-4b95-a342-998f5e24c10d-result.json @@ -0,0 +1 @@ +{"name": "test_login_with_wrong_credentials_returns_401", "status": "passed", "start": 1771542392792, "stop": 1771542392963, "uuid": "909203e2-3fb4-4d83-a210-fa3291e52aeb", "historyId": "37855d96aeac431afb5067572c5338c3", "testCaseId": "37855d96aeac431afb5067572c5338c3", "fullName": "tests.test_user_login.TestUserLogin#test_login_with_wrong_credentials_returns_401", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Login"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_login"}, {"name": "subSuite", "value": "TestUserLogin"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_login"}]} \ No newline at end of file diff --git a/Task_2/allure-results/0466f0dc-0373-4673-8ceb-1fd36c047faa-container.json b/Task_2/allure-results/0466f0dc-0373-4673-8ceb-1fd36c047faa-container.json new file mode 100644 index 000000000..71258f22d --- /dev/null +++ b/Task_2/allure-results/0466f0dc-0373-4673-8ceb-1fd36c047faa-container.json @@ -0,0 +1 @@ +{"uuid": "e161a257-e38d-4a19-b61b-fb97b8d4b1c7", "children": ["c8c7fd79-fd24-4999-a78d-f3b814291ffa"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543036565, "stop": 1771543036565}], "start": 1771543036565, "stop": 1771543037395} \ No newline at end of file diff --git a/Task_2/allure-results/05f1049f-cf55-488f-b6fc-dc7422d9160b-result.json b/Task_2/allure-results/05f1049f-cf55-488f-b6fc-dc7422d9160b-result.json new file mode 100644 index 000000000..e9ea73508 --- /dev/null +++ b/Task_2/allure-results/05f1049f-cf55-488f-b6fc-dc7422d9160b-result.json @@ -0,0 +1 @@ +{"name": "test_get_orders_authorized_user_success", "status": "passed", "start": 1771543035274, "stop": 1771543035785, "uuid": "07a2ae6c-3cd4-4270-9a8f-076cfd14ef05", "historyId": "479c04a477d979851bf150bde0fa19cc", "testCaseId": "479c04a477d979851bf150bde0fa19cc", "fullName": "tests.test_orders.TestGetUserOrders#test_get_orders_authorized_user_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Get user orders"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestGetUserOrders"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/0629e21d-c0df-4740-bf7d-177c227b013b-result.json b/Task_2/allure-results/0629e21d-c0df-4740-bf7d-177c227b013b-result.json new file mode 100644 index 000000000..9693d19ba --- /dev/null +++ b/Task_2/allure-results/0629e21d-c0df-4740-bf7d-177c227b013b-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_without_ingredients_returns_400", "status": "passed", "start": 1771543034909, "stop": 1771543035004, "uuid": "7b6c36ac-2427-4bc9-b802-2254c52a86fd", "historyId": "139cae09de679319747de75c3364b813", "testCaseId": "139cae09de679319747de75c3364b813", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_without_ingredients_returns_400", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/0668c0fc-0ae2-4f74-b83a-0c6311239cb0-result.json b/Task_2/allure-results/0668c0fc-0ae2-4f74-b83a-0c6311239cb0-result.json new file mode 100644 index 000000000..5788513a5 --- /dev/null +++ b/Task_2/allure-results/0668c0fc-0ae2-4f74-b83a-0c6311239cb0-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_with_authorization_and_ingredients_success", "status": "passed", "steps": [{"name": "Get ingredients list", "status": "passed", "start": 1771542383169, "stop": 1771542383264}], "start": 1771542383169, "stop": 1771542386606, "uuid": "6ae1cde5-34bd-4ace-8837-9b8e2df30780", "historyId": "42e985a88b241f09a313151590a040fb", "testCaseId": "42e985a88b241f09a313151590a040fb", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_with_authorization_and_ingredients_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/08e84639-9dfe-4f0f-a9bd-b0586ea358c2-container.json b/Task_2/allure-results/08e84639-9dfe-4f0f-a9bd-b0586ea358c2-container.json new file mode 100644 index 000000000..b953feee8 --- /dev/null +++ b/Task_2/allure-results/08e84639-9dfe-4f0f-a9bd-b0586ea358c2-container.json @@ -0,0 +1 @@ +{"uuid": "20af5e93-774e-469d-a020-0d4318e2fbae", "befores": [{"name": "new_value", "status": "passed", "start": 1771543040787, "stop": 1771543040787}], "start": 1771543040787, "stop": 1771543040875} \ No newline at end of file diff --git a/Task_2/allure-results/0a845cc4-0ae4-4e74-9f76-d9102e7e26a0-result.json b/Task_2/allure-results/0a845cc4-0ae4-4e74-9f76-d9102e7e26a0-result.json new file mode 100644 index 000000000..5b8f075d8 --- /dev/null +++ b/Task_2/allure-results/0a845cc4-0ae4-4e74-9f76-d9102e7e26a0-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[password-UnauthPassword123]", "status": "passed", "parameters": [{"name": "field", "value": "'password'"}, {"name": "new_value", "value": "'UnauthPassword123'"}], "start": 1771542396753, "stop": 1771542396844, "uuid": "743297f5-4f2b-4003-92ca-dfbf04eb75f5", "historyId": "5f3d891109576d46fa6b9d15315bbda1", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/104012c6-11e6-43e1-8455-0dea56e42bcf-container.json b/Task_2/allure-results/104012c6-11e6-43e1-8455-0dea56e42bcf-container.json new file mode 100644 index 000000000..057a0c388 --- /dev/null +++ b/Task_2/allure-results/104012c6-11e6-43e1-8455-0dea56e42bcf-container.json @@ -0,0 +1 @@ +{"uuid": "80bbe700-33c1-41f6-99fa-1f9787442e4c", "children": ["3bd27079-0219-412d-96d7-0564f47b4d9f"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543040612, "stop": 1771543040612}], "start": 1771543040612, "stop": 1771543041565} \ No newline at end of file diff --git a/Task_2/allure-results/12165b68-ed9b-49fc-b973-46bfa4036435-container.json b/Task_2/allure-results/12165b68-ed9b-49fc-b973-46bfa4036435-container.json new file mode 100644 index 000000000..e1243c073 --- /dev/null +++ b/Task_2/allure-results/12165b68-ed9b-49fc-b973-46bfa4036435-container.json @@ -0,0 +1 @@ +{"uuid": "733bbb4d-c13c-4319-a84c-0504520d02ef", "children": ["6ae1cde5-34bd-4ace-8837-9b8e2df30780", "61b7e760-25d8-4c09-8a2a-bc08fee227ff", "71917c42-5064-446a-8035-51b06f5f9c98", "94c92a8e-3f0e-4e60-be14-4272d9e8b977", "37417122-b225-4291-95ac-a6767b3aed13", "ce2bfe40-3de0-48ef-9a45-fff98af59859", "0485f706-b3d6-455f-be7c-2535d77c6ea6", "387c1266-9027-462a-b5c6-db5d581bec85", "423886c3-7e09-4c40-b709-2d9358aa4f98", "fbefe5d2-a860-4dd4-ab1b-ebecc53ec1fd", "ac206127-ad66-4d4d-8aab-075719f9b4f8", "9ac6b619-e8c9-425f-8360-46a89091ac5f", "909203e2-3fb4-4d83-a210-fa3291e52aeb", "d26ca0e4-4521-40e3-bde6-0422aa168148", "118e3b6d-012d-4b32-ac02-b8948a57eb00", "7d95055f-a519-4b7e-8c70-c7b08e53ec47", "b0108ab0-e3a6-42e0-a781-1487fdb9433d", "dddc9729-41af-48cf-8b50-939894b0d1ca", "743297f5-4f2b-4003-92ca-dfbf04eb75f5"], "befores": [{"name": "api", "status": "passed", "start": 1771542382806, "stop": 1771542382806}], "start": 1771542382806, "stop": 1771542396847} \ No newline at end of file diff --git a/Task_2/allure-results/14f2fb31-13c8-4404-975e-434976e2e873-result.json b/Task_2/allure-results/14f2fb31-13c8-4404-975e-434976e2e873-result.json new file mode 100644 index 000000000..37ef5505b --- /dev/null +++ b/Task_2/allure-results/14f2fb31-13c8-4404-975e-434976e2e873-result.json @@ -0,0 +1 @@ +{"name": "test_create_unique_user_success", "status": "passed", "start": 1771543036566, "stop": 1771543037394, "uuid": "c8c7fd79-fd24-4999-a78d-f3b814291ffa", "historyId": "3600e2baba1f26afdb9d7eba694389b5", "testCaseId": "3600e2baba1f26afdb9d7eba694389b5", "fullName": "tests.test_user_create.TestUserCreate#test_create_unique_user_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/162f9de7-511f-4b95-ad2b-89964adff593-container.json b/Task_2/allure-results/162f9de7-511f-4b95-ad2b-89964adff593-container.json new file mode 100644 index 000000000..225622556 --- /dev/null +++ b/Task_2/allure-results/162f9de7-511f-4b95-ad2b-89964adff593-container.json @@ -0,0 +1 @@ +{"uuid": "b9c2105f-2782-426f-bc3c-7e58a28759ad", "befores": [{"name": "field", "status": "passed", "start": 1771543043749, "stop": 1771543043749}], "start": 1771543043749, "stop": 1771543043845} \ No newline at end of file diff --git a/Task_2/allure-results/170b1fb7-09d1-45ef-9003-922c7cec32d6-container.json b/Task_2/allure-results/170b1fb7-09d1-45ef-9003-922c7cec32d6-container.json new file mode 100644 index 000000000..c7e2d86e4 --- /dev/null +++ b/Task_2/allure-results/170b1fb7-09d1-45ef-9003-922c7cec32d6-container.json @@ -0,0 +1 @@ +{"uuid": "1a444730-2ba2-4ee0-96d6-a316a19f63cc", "children": ["7dfd07fe-ea66-4d4c-abd2-d28ddb5b7ca9"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543042532, "stop": 1771543042532}], "start": 1771543042532, "stop": 1771543043546} \ No newline at end of file diff --git a/Task_2/allure-results/1a0ec16b-0349-4cf4-8949-2fee1cf5693d-container.json b/Task_2/allure-results/1a0ec16b-0349-4cf4-8949-2fee1cf5693d-container.json new file mode 100644 index 000000000..89a7182a4 --- /dev/null +++ b/Task_2/allure-results/1a0ec16b-0349-4cf4-8949-2fee1cf5693d-container.json @@ -0,0 +1 @@ +{"uuid": "48d96579-8f14-4f9f-a36a-1ca6509366f7", "befores": [{"name": "new_value", "status": "passed", "start": 1771543043653, "stop": 1771543043653}], "start": 1771543043652, "stop": 1771543043743} \ No newline at end of file diff --git a/Task_2/allure-results/1aad1a4e-314a-47bd-8d40-bf9239d8c18b-result.json b/Task_2/allure-results/1aad1a4e-314a-47bd-8d40-bf9239d8c18b-result.json new file mode 100644 index 000000000..a75dd0e60 --- /dev/null +++ b/Task_2/allure-results/1aad1a4e-314a-47bd-8d40-bf9239d8c18b-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_with_invalid_ingredient_hash_returns_400", "status": "passed", "start": 1771543035008, "stop": 1771543035097, "uuid": "330e02e2-855e-440f-8428-672f3be25c72", "historyId": "821ea0d7f909da7f7e24e6a12c6dc5a7", "testCaseId": "821ea0d7f909da7f7e24e6a12c6dc5a7", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_with_invalid_ingredient_hash_returns_400", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/1d6bd217-6aa1-41d4-9283-bb3779a45c89-container.json b/Task_2/allure-results/1d6bd217-6aa1-41d4-9283-bb3779a45c89-container.json new file mode 100644 index 000000000..f820ccdfd --- /dev/null +++ b/Task_2/allure-results/1d6bd217-6aa1-41d4-9283-bb3779a45c89-container.json @@ -0,0 +1 @@ +{"uuid": "5d40617f-8257-4433-b221-a43b5056dddb", "children": ["909203e2-3fb4-4d83-a210-fa3291e52aeb"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542392621, "stop": 1771542392790}], "start": 1771542392621, "stop": 1771542392791}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542392965, "stop": 1771542393656}], "start": 1771542392964, "stop": 1771542393656}], "start": 1771542392621, "stop": 1771542393657} \ No newline at end of file diff --git a/Task_2/allure-results/22399403-b443-45d7-b29b-8b7f83513515-container.json b/Task_2/allure-results/22399403-b443-45d7-b29b-8b7f83513515-container.json new file mode 100644 index 000000000..3632aff3c --- /dev/null +++ b/Task_2/allure-results/22399403-b443-45d7-b29b-8b7f83513515-container.json @@ -0,0 +1 @@ +{"uuid": "22f6d2e4-c919-4004-b83f-5303b0e9f254", "children": ["423886c3-7e09-4c40-b709-2d9358aa4f98"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542391308, "stop": 1771542391308}], "start": 1771542391308, "stop": 1771542391398} \ No newline at end of file diff --git a/Task_2/allure-results/22a6ce45-dd0b-4cbd-a46d-56f1018d6e37-container.json b/Task_2/allure-results/22a6ce45-dd0b-4cbd-a46d-56f1018d6e37-container.json new file mode 100644 index 000000000..5a970cc05 --- /dev/null +++ b/Task_2/allure-results/22a6ce45-dd0b-4cbd-a46d-56f1018d6e37-container.json @@ -0,0 +1 @@ +{"uuid": "15e303f4-6047-48e0-9558-ed3fd4e6c7bf", "children": ["25d54c3c-55ae-49c2-8bde-1ed2811d7d99"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543038638, "stop": 1771543038638}], "start": 1771543038638, "stop": 1771543039630} \ No newline at end of file diff --git a/Task_2/allure-results/251e27ef-0277-487f-83e7-496cc21abecf-container.json b/Task_2/allure-results/251e27ef-0277-487f-83e7-496cc21abecf-container.json new file mode 100644 index 000000000..0d8923201 --- /dev/null +++ b/Task_2/allure-results/251e27ef-0277-487f-83e7-496cc21abecf-container.json @@ -0,0 +1 @@ +{"uuid": "0025f08e-4ee6-4ec0-b2d6-e289da6fe468", "children": ["6ae1cde5-34bd-4ace-8837-9b8e2df30780"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542382806, "stop": 1771542383167}], "start": 1771542382806, "stop": 1771542383167}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542386608, "stop": 1771542387272}], "start": 1771542386608, "stop": 1771542387272}], "start": 1771542382806, "stop": 1771542387272} \ No newline at end of file diff --git a/Task_2/allure-results/2559ee6b-b2a2-49c4-8bb1-2aaa96c2fb72-result.json b/Task_2/allure-results/2559ee6b-b2a2-49c4-8bb1-2aaa96c2fb72-result.json new file mode 100644 index 000000000..c1503e280 --- /dev/null +++ b/Task_2/allure-results/2559ee6b-b2a2-49c4-8bb1-2aaa96c2fb72-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[password]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'password'"}], "start": 1771543038439, "stop": 1771543038533, "uuid": "8a9f6f09-c22d-4e6a-8a91-9a4e5ceb4b98", "historyId": "6f4446e831d6c9f86ebd9df3c5efa364", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/259b6a51-c1e3-4997-a71a-4e2c9e80ca43-container.json b/Task_2/allure-results/259b6a51-c1e3-4997-a71a-4e2c9e80ca43-container.json new file mode 100644 index 000000000..5d7292ee4 --- /dev/null +++ b/Task_2/allure-results/259b6a51-c1e3-4997-a71a-4e2c9e80ca43-container.json @@ -0,0 +1 @@ +{"uuid": "314cdec4-fde6-4740-a685-72f2af6f29fe", "befores": [{"name": "field", "status": "passed", "start": 1771542396656, "stop": 1771542396656}], "start": 1771542396656, "stop": 1771542396749} \ No newline at end of file diff --git a/Task_2/allure-results/259f1809-cdac-4fe0-870d-3305ce818fe5-container.json b/Task_2/allure-results/259f1809-cdac-4fe0-870d-3305ce818fe5-container.json new file mode 100644 index 000000000..3134d6d71 --- /dev/null +++ b/Task_2/allure-results/259f1809-cdac-4fe0-870d-3305ce818fe5-container.json @@ -0,0 +1 @@ +{"uuid": "e0c986d8-6b34-485b-8465-28378499dbcd", "children": ["7d95055f-a519-4b7e-8c70-c7b08e53ec47"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542395551, "stop": 1771542395720}], "start": 1771542395551, "stop": 1771542395720}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542395891, "stop": 1771542396549}], "start": 1771542395891, "stop": 1771542396549}], "start": 1771542395551, "stop": 1771542396550} \ No newline at end of file diff --git a/Task_2/allure-results/26a812d3-a6b8-4a8f-9318-548c08fc71dd-container.json b/Task_2/allure-results/26a812d3-a6b8-4a8f-9318-548c08fc71dd-container.json new file mode 100644 index 000000000..ab1b52955 --- /dev/null +++ b/Task_2/allure-results/26a812d3-a6b8-4a8f-9318-548c08fc71dd-container.json @@ -0,0 +1 @@ +{"uuid": "03627c3a-05e7-4cf5-9312-b1f4efe0110b", "befores": [{"name": "new_value", "status": "passed", "start": 1771542393838, "stop": 1771542393838}], "start": 1771542393838, "stop": 1771542393941} \ No newline at end of file diff --git a/Task_2/allure-results/27bb9403-8132-470f-8a1b-454352250f33-result.json b/Task_2/allure-results/27bb9403-8132-470f-8a1b-454352250f33-result.json new file mode 100644 index 000000000..f7148127e --- /dev/null +++ b/Task_2/allure-results/27bb9403-8132-470f-8a1b-454352250f33-result.json @@ -0,0 +1 @@ +{"name": "test_create_unique_user_success", "status": "passed", "start": 1771542389351, "stop": 1771542390353, "uuid": "0485f706-b3d6-455f-be7c-2535d77c6ea6", "historyId": "3600e2baba1f26afdb9d7eba694389b5", "testCaseId": "3600e2baba1f26afdb9d7eba694389b5", "fullName": "tests.test_user_create.TestUserCreate#test_create_unique_user_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/29b45a0f-fe07-45d9-8dc5-a6d410702427-container.json b/Task_2/allure-results/29b45a0f-fe07-45d9-8dc5-a6d410702427-container.json new file mode 100644 index 000000000..0be7bbb86 --- /dev/null +++ b/Task_2/allure-results/29b45a0f-fe07-45d9-8dc5-a6d410702427-container.json @@ -0,0 +1 @@ +{"uuid": "1bcd1a6f-a383-46a9-abab-f5b7372ecfb0", "children": ["07a2ae6c-3cd4-4270-9a8f-076cfd14ef05"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543035100, "stop": 1771543035273}], "start": 1771543035100, "stop": 1771543035273}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543035786, "stop": 1771543036461}], "start": 1771543035786, "stop": 1771543036461}], "start": 1771543035100, "stop": 1771543036461} \ No newline at end of file diff --git a/Task_2/allure-results/2d871139-5526-455e-95fe-02509e2d5b8e-container.json b/Task_2/allure-results/2d871139-5526-455e-95fe-02509e2d5b8e-container.json new file mode 100644 index 000000000..ce72b9380 --- /dev/null +++ b/Task_2/allure-results/2d871139-5526-455e-95fe-02509e2d5b8e-container.json @@ -0,0 +1 @@ +{"uuid": "e869ba65-746e-4cf3-99ce-fecb5564276b", "befores": [{"name": "new_value", "status": "passed", "start": 1771543042696, "stop": 1771543042696}], "start": 1771543042696, "stop": 1771543042855} \ No newline at end of file diff --git a/Task_2/allure-results/2f15b7fe-87dc-4957-b60e-16cecbe26423-container.json b/Task_2/allure-results/2f15b7fe-87dc-4957-b60e-16cecbe26423-container.json new file mode 100644 index 000000000..439deaff4 --- /dev/null +++ b/Task_2/allure-results/2f15b7fe-87dc-4957-b60e-16cecbe26423-container.json @@ -0,0 +1 @@ +{"uuid": "90c15d73-18a1-47b8-957a-6c789abd5634", "children": ["3bd27079-0219-412d-96d7-0564f47b4d9f"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543040612, "stop": 1771543040786}], "start": 1771543040612, "stop": 1771543040786}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543040877, "stop": 1771543041563}], "start": 1771543040877, "stop": 1771543041563}], "start": 1771543040612, "stop": 1771543041563} \ No newline at end of file diff --git a/Task_2/allure-results/30ff4496-c72f-4af1-b935-cbd7cb02d6bf-container.json b/Task_2/allure-results/30ff4496-c72f-4af1-b935-cbd7cb02d6bf-container.json new file mode 100644 index 000000000..91f0d40fb --- /dev/null +++ b/Task_2/allure-results/30ff4496-c72f-4af1-b935-cbd7cb02d6bf-container.json @@ -0,0 +1 @@ +{"uuid": "0c271d59-a03f-4fc3-8cf2-2d39c8529571", "children": ["500f39f3-b0da-46d0-a803-15b8b44e51ae"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543037399, "stop": 1771543037399}], "start": 1771543037399, "stop": 1771543038337} \ No newline at end of file diff --git a/Task_2/allure-results/32e26d20-6525-431a-8550-79d881d887a3-container.json b/Task_2/allure-results/32e26d20-6525-431a-8550-79d881d887a3-container.json new file mode 100644 index 000000000..5ffe346e8 --- /dev/null +++ b/Task_2/allure-results/32e26d20-6525-431a-8550-79d881d887a3-container.json @@ -0,0 +1 @@ +{"uuid": "a466d592-9be6-4a8b-8dea-3273819ea0b7", "befores": [{"name": "missing_field", "status": "passed", "start": 1771542391308, "stop": 1771542391308}], "start": 1771542391308, "stop": 1771542391397} \ No newline at end of file diff --git a/Task_2/allure-results/3474e900-4119-447e-9bc3-18c0630d6054-container.json b/Task_2/allure-results/3474e900-4119-447e-9bc3-18c0630d6054-container.json new file mode 100644 index 000000000..befdd900d --- /dev/null +++ b/Task_2/allure-results/3474e900-4119-447e-9bc3-18c0630d6054-container.json @@ -0,0 +1 @@ +{"uuid": "a134457f-efdf-495b-92b1-b6f9762bf380", "befores": [{"name": "field", "status": "passed", "start": 1771542395721, "stop": 1771542395721}], "start": 1771542395721, "stop": 1771542395889} \ No newline at end of file diff --git a/Task_2/allure-results/35ab492e-f92d-4164-805c-a50219ba25a6-container.json b/Task_2/allure-results/35ab492e-f92d-4164-805c-a50219ba25a6-container.json new file mode 100644 index 000000000..0aea1a64e --- /dev/null +++ b/Task_2/allure-results/35ab492e-f92d-4164-805c-a50219ba25a6-container.json @@ -0,0 +1 @@ +{"uuid": "66e76d7b-4ae1-401f-abb6-d605047834a7", "children": ["9ac6b619-e8c9-425f-8360-46a89091ac5f"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542391586, "stop": 1771542391760}], "start": 1771542391586, "stop": 1771542391760}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542391935, "stop": 1771542392613}], "start": 1771542391935, "stop": 1771542392613}], "start": 1771542391586, "stop": 1771542392613} \ No newline at end of file diff --git a/Task_2/allure-results/39b674a2-17da-4813-8f48-cbf2db94bbd8-container.json b/Task_2/allure-results/39b674a2-17da-4813-8f48-cbf2db94bbd8-container.json new file mode 100644 index 000000000..2b09cb7fb --- /dev/null +++ b/Task_2/allure-results/39b674a2-17da-4813-8f48-cbf2db94bbd8-container.json @@ -0,0 +1 @@ +{"uuid": "cc300d7a-4294-4663-81c3-0b09f35be6dc", "children": ["8a9f6f09-c22d-4e6a-8a91-9a4e5ceb4b98"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543038437, "stop": 1771543038437}], "start": 1771543038437, "stop": 1771543038536} \ No newline at end of file diff --git a/Task_2/allure-results/40310cf6-918d-47c1-9afe-6f528af083ad-container.json b/Task_2/allure-results/40310cf6-918d-47c1-9afe-6f528af083ad-container.json new file mode 100644 index 000000000..dfc4ccade --- /dev/null +++ b/Task_2/allure-results/40310cf6-918d-47c1-9afe-6f528af083ad-container.json @@ -0,0 +1 @@ +{"uuid": "a144c1b4-a9c4-4014-9758-e8d27928967d", "children": ["a5c95885-eba8-4e87-a5ae-249966ed9095"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543038342, "stop": 1771543038342}], "start": 1771543038342, "stop": 1771543038432} \ No newline at end of file diff --git a/Task_2/allure-results/4491d952-8cd1-4adf-8db6-9f243cfcb7b0-container.json b/Task_2/allure-results/4491d952-8cd1-4adf-8db6-9f243cfcb7b0-container.json new file mode 100644 index 000000000..a049df617 --- /dev/null +++ b/Task_2/allure-results/4491d952-8cd1-4adf-8db6-9f243cfcb7b0-container.json @@ -0,0 +1 @@ +{"uuid": "38c2b9cd-0698-4f32-a997-331c674268ba", "befores": [{"name": "missing_field", "status": "passed", "start": 1771543038342, "stop": 1771543038342}], "start": 1771543038342, "stop": 1771543038430} \ No newline at end of file diff --git a/Task_2/allure-results/44b46c65-b037-498a-833a-a5c65deed1a1-result.json b/Task_2/allure-results/44b46c65-b037-498a-833a-a5c65deed1a1-result.json new file mode 100644 index 000000000..42271b43f --- /dev/null +++ b/Task_2/allure-results/44b46c65-b037-498a-833a-a5c65deed1a1-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[name-Unauth Name]", "status": "passed", "parameters": [{"name": "field", "value": "'name'"}, {"name": "new_value", "value": "'Unauth Name'"}], "start": 1771542396656, "stop": 1771542396747, "uuid": "dddc9729-41af-48cf-8b50-939894b0d1ca", "historyId": "b38e028a786f01075edd433d3cc9414b", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/4b220e73-f01a-4fe6-9af9-96c5e5f64c5d-result.json b/Task_2/allure-results/4b220e73-f01a-4fe6-9af9-96c5e5f64c5d-result.json new file mode 100644 index 000000000..96e3fac28 --- /dev/null +++ b/Task_2/allure-results/4b220e73-f01a-4fe6-9af9-96c5e5f64c5d-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_without_authorization_and_ingredients_success", "status": "passed", "steps": [{"name": "Get ingredients list", "status": "passed", "start": 1771542387280, "stop": 1771542387373}], "start": 1771542387280, "stop": 1771542387468, "uuid": "61b7e760-25d8-4c09-8a2a-bc08fee227ff", "historyId": "68c545e9dc18bbef728364e263e47f8e", "testCaseId": "68c545e9dc18bbef728364e263e47f8e", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_without_authorization_and_ingredients_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/4c7897fe-a612-4619-b053-4f0289d45c4d-container.json b/Task_2/allure-results/4c7897fe-a612-4619-b053-4f0289d45c4d-container.json new file mode 100644 index 000000000..431e61af1 --- /dev/null +++ b/Task_2/allure-results/4c7897fe-a612-4619-b053-4f0289d45c4d-container.json @@ -0,0 +1 @@ +{"uuid": "a947fc65-0c89-4991-b034-08aa114cff3b", "children": ["d26ca0e4-4521-40e3-bde6-0422aa168148"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542393663, "stop": 1771542393663}], "start": 1771542393663, "stop": 1771542394609} \ No newline at end of file diff --git a/Task_2/allure-results/4eceb350-2dc4-457f-9929-29f9cfcd4b1e-container.json b/Task_2/allure-results/4eceb350-2dc4-457f-9929-29f9cfcd4b1e-container.json new file mode 100644 index 000000000..f6677a6ca --- /dev/null +++ b/Task_2/allure-results/4eceb350-2dc4-457f-9929-29f9cfcd4b1e-container.json @@ -0,0 +1 @@ +{"uuid": "69ab0fdf-0bfc-42f8-8653-0f44825827b6", "children": ["c69f33e6-ccb1-4fd6-bcd2-d3446d07daeb"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543041570, "stop": 1771543041737}], "start": 1771543041570, "stop": 1771543041737}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543041833, "stop": 1771543042526}], "start": 1771543041833, "stop": 1771543042526}], "start": 1771543041570, "stop": 1771543042526} \ No newline at end of file diff --git a/Task_2/allure-results/576347bc-cd6c-43b1-a360-52662a384632-result.json b/Task_2/allure-results/576347bc-cd6c-43b1-a360-52662a384632-result.json new file mode 100644 index 000000000..8d6cd413d --- /dev/null +++ b/Task_2/allure-results/576347bc-cd6c-43b1-a360-52662a384632-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[password-UpdatedPassword123]", "status": "passed", "parameters": [{"name": "field", "value": "'password'"}, {"name": "new_value", "value": "'UpdatedPassword123'"}], "start": 1771543042697, "stop": 1771543042855, "uuid": "7dfd07fe-ea66-4d4c-abd2-d28ddb5b7ca9", "historyId": "245f7f7deb913d38911df1385bbb8562", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/57c160c2-bdf4-4e86-834f-b8cebbef23b4-container.json b/Task_2/allure-results/57c160c2-bdf4-4e86-834f-b8cebbef23b4-container.json new file mode 100644 index 000000000..f0fa49d09 --- /dev/null +++ b/Task_2/allure-results/57c160c2-bdf4-4e86-834f-b8cebbef23b4-container.json @@ -0,0 +1 @@ +{"uuid": "363750d1-896c-4351-840d-9e89bd6c645a", "befores": [{"name": "field", "status": "passed", "start": 1771542393837, "stop": 1771542393837}], "start": 1771542393837, "stop": 1771542393942} \ No newline at end of file diff --git a/Task_2/allure-results/5bf6f2e0-2d79-4fbf-aad0-4c6dc769bb54-result.json b/Task_2/allure-results/5bf6f2e0-2d79-4fbf-aad0-4c6dc769bb54-result.json new file mode 100644 index 000000000..d1000fc0e --- /dev/null +++ b/Task_2/allure-results/5bf6f2e0-2d79-4fbf-aad0-4c6dc769bb54-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[name]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'name'"}], "start": 1771543038543, "stop": 1771543038630, "uuid": "4fc41e62-fe2f-4a0c-953c-6d65baa4012e", "historyId": "759b9a2d70d8dd189617283af3f383de", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/5d8fcc38-6582-4721-8f62-12b2a2c5f8bb-result.json b/Task_2/allure-results/5d8fcc38-6582-4721-8f62-12b2a2c5f8bb-result.json new file mode 100644 index 000000000..c6bd49953 --- /dev/null +++ b/Task_2/allure-results/5d8fcc38-6582-4721-8f62-12b2a2c5f8bb-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[email]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'email'"}], "start": 1771543038343, "stop": 1771543038429, "uuid": "a5c95885-eba8-4e87-a5ae-249966ed9095", "historyId": "fb0415cdce6b0418fea6fcb48a49bd41", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/65726404-cf05-4296-ae99-0f209a4cb958-container.json b/Task_2/allure-results/65726404-cf05-4296-ae99-0f209a4cb958-container.json new file mode 100644 index 000000000..800e9cacf --- /dev/null +++ b/Task_2/allure-results/65726404-cf05-4296-ae99-0f209a4cb958-container.json @@ -0,0 +1 @@ +{"uuid": "d38bd754-c2ba-4ffe-be54-ecbfe706f53c", "children": ["909203e2-3fb4-4d83-a210-fa3291e52aeb"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542392620, "stop": 1771542392620}], "start": 1771542392620, "stop": 1771542393658} \ No newline at end of file diff --git a/Task_2/allure-results/678e14b8-8eae-4995-b142-d7a0a0adf0df-result.json b/Task_2/allure-results/678e14b8-8eae-4995-b142-d7a0a0adf0df-result.json new file mode 100644 index 000000000..7eec4881c --- /dev/null +++ b/Task_2/allure-results/678e14b8-8eae-4995-b142-d7a0a0adf0df-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[password-UpdatedPassword123]", "status": "passed", "parameters": [{"name": "field", "value": "'password'"}, {"name": "new_value", "value": "'UpdatedPassword123'"}], "start": 1771542395722, "stop": 1771542395887, "uuid": "7d95055f-a519-4b7e-8c70-c7b08e53ec47", "historyId": "245f7f7deb913d38911df1385bbb8562", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/68d9081c-8603-44a5-94ea-6079e5ea158f-container.json b/Task_2/allure-results/68d9081c-8603-44a5-94ea-6079e5ea158f-container.json new file mode 100644 index 000000000..ee97d9e5e --- /dev/null +++ b/Task_2/allure-results/68d9081c-8603-44a5-94ea-6079e5ea158f-container.json @@ -0,0 +1 @@ +{"uuid": "12a17a09-6329-4b1f-8165-fa378be82047", "befores": [{"name": "new_value", "status": "passed", "start": 1771542395721, "stop": 1771542395721}], "start": 1771542395721, "stop": 1771542395888} \ No newline at end of file diff --git a/Task_2/allure-results/6928f1a5-d249-4340-8870-43897d693530-container.json b/Task_2/allure-results/6928f1a5-d249-4340-8870-43897d693530-container.json new file mode 100644 index 000000000..85b9ffef7 --- /dev/null +++ b/Task_2/allure-results/6928f1a5-d249-4340-8870-43897d693530-container.json @@ -0,0 +1 @@ +{"uuid": "9fc5a41b-3013-4bc0-a3ea-40a655ee866e", "befores": [{"name": "field", "status": "passed", "start": 1771543043549, "stop": 1771543043549}], "start": 1771543043549, "stop": 1771543043650} \ No newline at end of file diff --git a/Task_2/allure-results/6ad462db-cbe5-45a3-ae76-756df49225ac-container.json b/Task_2/allure-results/6ad462db-cbe5-45a3-ae76-756df49225ac-container.json new file mode 100644 index 000000000..bb5823500 --- /dev/null +++ b/Task_2/allure-results/6ad462db-cbe5-45a3-ae76-756df49225ac-container.json @@ -0,0 +1 @@ +{"uuid": "b0b7b874-60a7-4681-9217-e4d3ea85f904", "befores": [{"name": "new_value", "status": "passed", "start": 1771543043549, "stop": 1771543043549}], "start": 1771543043549, "stop": 1771543043649} \ No newline at end of file diff --git a/Task_2/allure-results/6b68013f-bd85-4c58-bf2e-514b1554e03f-container.json b/Task_2/allure-results/6b68013f-bd85-4c58-bf2e-514b1554e03f-container.json new file mode 100644 index 000000000..55665b29c --- /dev/null +++ b/Task_2/allure-results/6b68013f-bd85-4c58-bf2e-514b1554e03f-container.json @@ -0,0 +1 @@ +{"uuid": "63c5bf67-1782-4639-ac9f-55d7639f8fd5", "children": ["6f722f3b-1aee-4157-933d-8c78c6e190bc", "6b571ed9-ee17-485d-9633-7355c9b2235a", "7b6c36ac-2427-4bc9-b802-2254c52a86fd", "330e02e2-855e-440f-8428-672f3be25c72", "07a2ae6c-3cd4-4270-9a8f-076cfd14ef05", "7c7de71f-6823-49ed-bb68-ac1f439dc56c", "c8c7fd79-fd24-4999-a78d-f3b814291ffa", "500f39f3-b0da-46d0-a803-15b8b44e51ae", "a5c95885-eba8-4e87-a5ae-249966ed9095", "8a9f6f09-c22d-4e6a-8a91-9a4e5ceb4b98", "4fc41e62-fe2f-4a0c-953c-6d65baa4012e", "25d54c3c-55ae-49c2-8bde-1ed2811d7d99", "789edfab-7838-4378-9a8e-684b2b41c8de", "3bd27079-0219-412d-96d7-0564f47b4d9f", "c69f33e6-ccb1-4fd6-bcd2-d3446d07daeb", "7dfd07fe-ea66-4d4c-abd2-d28ddb5b7ca9", "5f8997df-4bc2-4719-a9b3-86dd334f159b", "dfa6e2fa-cf80-4386-8e4c-2de2d1c83da8", "e04d7837-395d-425f-9a90-3532fe36723c"], "befores": [{"name": "api", "status": "passed", "start": 1771543030125, "stop": 1771543030125}], "start": 1771543030125, "stop": 1771543043846} \ No newline at end of file diff --git a/Task_2/allure-results/6fa71522-e9b2-4c13-a412-99dd8e782cf2-container.json b/Task_2/allure-results/6fa71522-e9b2-4c13-a412-99dd8e782cf2-container.json new file mode 100644 index 000000000..5d590e7c9 --- /dev/null +++ b/Task_2/allure-results/6fa71522-e9b2-4c13-a412-99dd8e782cf2-container.json @@ -0,0 +1 @@ +{"uuid": "a014adc2-d1c7-49c4-a01d-46768ca7b657", "children": ["6ae1cde5-34bd-4ace-8837-9b8e2df30780"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542382806, "stop": 1771542382806}], "start": 1771542382806, "stop": 1771542387274} \ No newline at end of file diff --git a/Task_2/allure-results/72154777-2657-46be-ab5a-a2b9d136efb3-result.json b/Task_2/allure-results/72154777-2657-46be-ab5a-a2b9d136efb3-result.json new file mode 100644 index 000000000..89c6939ce --- /dev/null +++ b/Task_2/allure-results/72154777-2657-46be-ab5a-a2b9d136efb3-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[password-UnauthPassword123]", "status": "passed", "parameters": [{"name": "field", "value": "'password'"}, {"name": "new_value", "value": "'UnauthPassword123'"}], "start": 1771543043754, "stop": 1771543043843, "uuid": "e04d7837-395d-425f-9a90-3532fe36723c", "historyId": "5f3d891109576d46fa6b9d15315bbda1", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/76dd4311-5b96-490b-aa20-4f320b4c834a-container.json b/Task_2/allure-results/76dd4311-5b96-490b-aa20-4f320b4c834a-container.json new file mode 100644 index 000000000..b72b30325 --- /dev/null +++ b/Task_2/allure-results/76dd4311-5b96-490b-aa20-4f320b4c834a-container.json @@ -0,0 +1 @@ +{"uuid": "f0b4b5e2-220f-4d0b-a3ae-bb0caa8e913e", "befores": [{"name": "new_value", "status": "passed", "start": 1771542394780, "stop": 1771542394780}], "start": 1771542394780, "stop": 1771542394873} \ No newline at end of file diff --git a/Task_2/allure-results/789b2769-ef4b-4b57-b6d3-2e1bc89b32f4-result.json b/Task_2/allure-results/789b2769-ef4b-4b57-b6d3-2e1bc89b32f4-result.json new file mode 100644 index 000000000..1dbb0b7ae --- /dev/null +++ b/Task_2/allure-results/789b2769-ef4b-4b57-b6d3-2e1bc89b32f4-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[email]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'email'"}], "start": 1771542391309, "stop": 1771542391397, "uuid": "423886c3-7e09-4c40-b709-2d9358aa4f98", "historyId": "fb0415cdce6b0418fea6fcb48a49bd41", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/7977c5d2-8436-4bba-8609-dff6b58713a6-result.json b/Task_2/allure-results/7977c5d2-8436-4bba-8609-dff6b58713a6-result.json new file mode 100644 index 000000000..95f6445a0 --- /dev/null +++ b/Task_2/allure-results/7977c5d2-8436-4bba-8609-dff6b58713a6-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[email-unauth_email@yandex.ru]", "status": "passed", "parameters": [{"name": "field", "value": "'email'"}, {"name": "new_value", "value": "'unauth_email@yandex.ru'"}], "start": 1771543043550, "stop": 1771543043648, "uuid": "5f8997df-4bc2-4719-a9b3-86dd334f159b", "historyId": "2205f79c42e60a4e88623bc086a23c2d", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/7a02f432-2d38-4a94-9462-a578a9287d24-container.json b/Task_2/allure-results/7a02f432-2d38-4a94-9462-a578a9287d24-container.json new file mode 100644 index 000000000..7b485a957 --- /dev/null +++ b/Task_2/allure-results/7a02f432-2d38-4a94-9462-a578a9287d24-container.json @@ -0,0 +1 @@ +{"uuid": "a52422fe-6708-4cbb-9cae-2b51d622660f", "children": ["d26ca0e4-4521-40e3-bde6-0422aa168148"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542393663, "stop": 1771542393837}], "start": 1771542393663, "stop": 1771542393837}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542393943, "stop": 1771542394607}], "start": 1771542393943, "stop": 1771542394607}], "start": 1771542393663, "stop": 1771542394607} \ No newline at end of file diff --git a/Task_2/allure-results/7aaf4dac-23c2-4d48-814f-7f5aae8bad38-container.json b/Task_2/allure-results/7aaf4dac-23c2-4d48-814f-7f5aae8bad38-container.json new file mode 100644 index 000000000..56a36c581 --- /dev/null +++ b/Task_2/allure-results/7aaf4dac-23c2-4d48-814f-7f5aae8bad38-container.json @@ -0,0 +1 @@ +{"uuid": "14fa03f3-1601-4108-9ced-0ad17d6fdf73", "children": ["789edfab-7838-4378-9a8e-684b2b41c8de"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543039632, "stop": 1771543039632}], "start": 1771543039632, "stop": 1771543040608} \ No newline at end of file diff --git a/Task_2/allure-results/7c3c2571-9663-4c9e-9dcb-0fb4a9b774f8-container.json b/Task_2/allure-results/7c3c2571-9663-4c9e-9dcb-0fb4a9b774f8-container.json new file mode 100644 index 000000000..bb8a13825 --- /dev/null +++ b/Task_2/allure-results/7c3c2571-9663-4c9e-9dcb-0fb4a9b774f8-container.json @@ -0,0 +1 @@ +{"uuid": "9665f663-3d5e-4d70-90cd-4ea201e4b92a", "befores": [{"name": "new_value", "status": "passed", "start": 1771542396753, "stop": 1771542396753}], "start": 1771542396753, "stop": 1771542396845} \ No newline at end of file diff --git a/Task_2/allure-results/7e60a5f9-9277-49ff-a4fa-4b3b80290b58-result.json b/Task_2/allure-results/7e60a5f9-9277-49ff-a4fa-4b3b80290b58-result.json new file mode 100644 index 000000000..598504c46 --- /dev/null +++ b/Task_2/allure-results/7e60a5f9-9277-49ff-a4fa-4b3b80290b58-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[name-Unauth Name]", "status": "passed", "parameters": [{"name": "field", "value": "'name'"}, {"name": "new_value", "value": "'Unauth Name'"}], "start": 1771543043653, "stop": 1771543043742, "uuid": "dfa6e2fa-cf80-4386-8e4c-2de2d1c83da8", "historyId": "b38e028a786f01075edd433d3cc9414b", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/7fff155e-1985-4718-aa3a-a75233608e2a-container.json b/Task_2/allure-results/7fff155e-1985-4718-aa3a-a75233608e2a-container.json new file mode 100644 index 000000000..e222870a5 --- /dev/null +++ b/Task_2/allure-results/7fff155e-1985-4718-aa3a-a75233608e2a-container.json @@ -0,0 +1 @@ +{"uuid": "94af0ff1-b843-439f-9bcd-812e0b11fa9c", "children": ["37417122-b225-4291-95ac-a6767b3aed13"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542387695, "stop": 1771542387865}], "start": 1771542387695, "stop": 1771542387865}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542388457, "stop": 1771542389249}], "start": 1771542388457, "stop": 1771542389249}], "start": 1771542387695, "stop": 1771542389249} \ No newline at end of file diff --git a/Task_2/allure-results/809fc11e-1fa9-4330-9f3c-7e080b7820c7-container.json b/Task_2/allure-results/809fc11e-1fa9-4330-9f3c-7e080b7820c7-container.json new file mode 100644 index 000000000..0181909b7 --- /dev/null +++ b/Task_2/allure-results/809fc11e-1fa9-4330-9f3c-7e080b7820c7-container.json @@ -0,0 +1 @@ +{"uuid": "51b2adf4-b7c9-4548-a62b-c5be3e1d3d2f", "befores": [{"name": "missing_field", "status": "passed", "start": 1771543038438, "stop": 1771543038438}], "start": 1771543038438, "stop": 1771543038534} \ No newline at end of file diff --git a/Task_2/allure-results/80bae371-2c82-4e8e-a982-ec42a768484b-result.json b/Task_2/allure-results/80bae371-2c82-4e8e-a982-ec42a768484b-result.json new file mode 100644 index 000000000..1b2b163b1 --- /dev/null +++ b/Task_2/allure-results/80bae371-2c82-4e8e-a982-ec42a768484b-result.json @@ -0,0 +1 @@ +{"name": "test_get_orders_unauthorized_user_returns_401", "status": "passed", "start": 1771543036467, "stop": 1771543036561, "uuid": "7c7de71f-6823-49ed-bb68-ac1f439dc56c", "historyId": "a9d36ad85ea473bd07eed08a4109d7f9", "testCaseId": "a9d36ad85ea473bd07eed08a4109d7f9", "fullName": "tests.test_orders.TestGetUserOrders#test_get_orders_unauthorized_user_returns_401", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Get user orders"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestGetUserOrders"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/82258e7d-da03-4638-8079-258ffe19b845-result.json b/Task_2/allure-results/82258e7d-da03-4638-8079-258ffe19b845-result.json new file mode 100644 index 000000000..6c18879ea --- /dev/null +++ b/Task_2/allure-results/82258e7d-da03-4638-8079-258ffe19b845-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_with_invalid_ingredient_hash_returns_500", "status": "failed", "statusDetails": {"message": "AssertionError: assert 400 == 500\n + where 400 = ApiResponse(status_code=400, json={'success': False, 'message': 'One or more ids provided are incorrect'}).status_code", "trace": "self = , api = \n\n def test_create_order_with_invalid_ingredient_hash_returns_500(self, api: StellarApiClient):\n resp = api.post(\"/orders\", json={\"ingredients\": [\"invalid_hash\"]})\n \n> assert resp.status_code == 500\nE AssertionError: assert 400 == 500\nE + where 400 = ApiResponse(status_code=400, json={'success': False, 'message': 'One or more ids provided are incorrect'}).status_code\n\ntests/test_orders.py:39: AssertionError"}, "start": 1771542387565, "stop": 1771542387657, "uuid": "94c92a8e-3f0e-4e60-be14-4272d9e8b977", "historyId": "f7e0a9cd065db21a0fdff8593b964f2f", "testCaseId": "f7e0a9cd065db21a0fdff8593b964f2f", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_with_invalid_ingredient_hash_returns_500", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/86a7c279-0141-408e-b75c-dc1f43f673c1-container.json b/Task_2/allure-results/86a7c279-0141-408e-b75c-dc1f43f673c1-container.json new file mode 100644 index 000000000..ee5007f4a --- /dev/null +++ b/Task_2/allure-results/86a7c279-0141-408e-b75c-dc1f43f673c1-container.json @@ -0,0 +1 @@ +{"uuid": "38f1e229-5653-478f-9bb7-4121d4ebbbb4", "children": ["fbefe5d2-a860-4dd4-ab1b-ebecc53ec1fd"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542391399, "stop": 1771542391399}], "start": 1771542391398, "stop": 1771542391485} \ No newline at end of file diff --git a/Task_2/allure-results/92309088-1a47-4439-83f9-07144c6998ef-container.json b/Task_2/allure-results/92309088-1a47-4439-83f9-07144c6998ef-container.json new file mode 100644 index 000000000..0b6dff71b --- /dev/null +++ b/Task_2/allure-results/92309088-1a47-4439-83f9-07144c6998ef-container.json @@ -0,0 +1 @@ +{"uuid": "3caa26c2-050e-49ae-a6fb-ef9fa933eb88", "children": ["9ac6b619-e8c9-425f-8360-46a89091ac5f"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542391586, "stop": 1771542391586}], "start": 1771542391586, "stop": 1771542392615} \ No newline at end of file diff --git a/Task_2/allure-results/941f3ffc-edee-4968-8d49-87475319db30-result.json b/Task_2/allure-results/941f3ffc-edee-4968-8d49-87475319db30-result.json new file mode 100644 index 000000000..8945862a6 --- /dev/null +++ b/Task_2/allure-results/941f3ffc-edee-4968-8d49-87475319db30-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_that_already_exists_returns_403", "status": "passed", "start": 1771543037575, "stop": 1771543037663, "uuid": "500f39f3-b0da-46d0-a803-15b8b44e51ae", "historyId": "f14657962cfd328ecf5ccba946992fd7", "testCaseId": "f14657962cfd328ecf5ccba946992fd7", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_that_already_exists_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/957b7315-d6d6-4798-801f-d7136d4ba400-container.json b/Task_2/allure-results/957b7315-d6d6-4798-801f-d7136d4ba400-container.json new file mode 100644 index 000000000..267231090 --- /dev/null +++ b/Task_2/allure-results/957b7315-d6d6-4798-801f-d7136d4ba400-container.json @@ -0,0 +1 @@ +{"uuid": "bdbc0203-17a2-42a8-afcb-e56c86d7f21a", "befores": [{"name": "field", "status": "passed", "start": 1771543042696, "stop": 1771543042696}], "start": 1771543042696, "stop": 1771543042857} \ No newline at end of file diff --git a/Task_2/allure-results/984dee58-ff61-4db9-9fb4-a3de6d9d2b48-container.json b/Task_2/allure-results/984dee58-ff61-4db9-9fb4-a3de6d9d2b48-container.json new file mode 100644 index 000000000..75a2cbbe2 --- /dev/null +++ b/Task_2/allure-results/984dee58-ff61-4db9-9fb4-a3de6d9d2b48-container.json @@ -0,0 +1 @@ +{"uuid": "1e0d862a-0ccf-4c68-bbd1-864458598e40", "children": ["25d54c3c-55ae-49c2-8bde-1ed2811d7d99"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543038639, "stop": 1771543038814}], "start": 1771543038638, "stop": 1771543038815}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543038980, "stop": 1771543039630}], "start": 1771543038980, "stop": 1771543039630}], "start": 1771543038638, "stop": 1771543039630} \ No newline at end of file diff --git a/Task_2/allure-results/986d5ba7-7bac-4751-819e-d6744d046951-container.json b/Task_2/allure-results/986d5ba7-7bac-4751-819e-d6744d046951-container.json new file mode 100644 index 000000000..1960bcfc5 --- /dev/null +++ b/Task_2/allure-results/986d5ba7-7bac-4751-819e-d6744d046951-container.json @@ -0,0 +1 @@ +{"uuid": "c924facc-4375-4fff-acbf-4e9b66d65c1b", "befores": [{"name": "missing_field", "status": "passed", "start": 1771542391399, "stop": 1771542391399}], "start": 1771542391399, "stop": 1771542391484} \ No newline at end of file diff --git a/Task_2/allure-results/9a890d54-4ffb-4bac-9d1f-abe287132770-container.json b/Task_2/allure-results/9a890d54-4ffb-4bac-9d1f-abe287132770-container.json new file mode 100644 index 000000000..364da6b0b --- /dev/null +++ b/Task_2/allure-results/9a890d54-4ffb-4bac-9d1f-abe287132770-container.json @@ -0,0 +1 @@ +{"uuid": "f4ba54e9-1148-45f0-ada0-2a9421d51c4c", "children": ["07a2ae6c-3cd4-4270-9a8f-076cfd14ef05"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543035100, "stop": 1771543035100}], "start": 1771543035100, "stop": 1771543036463} \ No newline at end of file diff --git a/Task_2/allure-results/9b9960f8-d82b-447a-bf5f-a6a9607950ba-result.json b/Task_2/allure-results/9b9960f8-d82b-447a-bf5f-a6a9607950ba-result.json new file mode 100644 index 000000000..936141cfb --- /dev/null +++ b/Task_2/allure-results/9b9960f8-d82b-447a-bf5f-a6a9607950ba-result.json @@ -0,0 +1 @@ +{"name": "test_get_orders_authorized_user_success", "status": "passed", "start": 1771542387867, "stop": 1771542388456, "uuid": "37417122-b225-4291-95ac-a6767b3aed13", "historyId": "479c04a477d979851bf150bde0fa19cc", "testCaseId": "479c04a477d979851bf150bde0fa19cc", "fullName": "tests.test_orders.TestGetUserOrders#test_get_orders_authorized_user_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Get user orders"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestGetUserOrders"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/9c255f61-78c8-49ed-9d6b-8b5a231c6ff5-container.json b/Task_2/allure-results/9c255f61-78c8-49ed-9d6b-8b5a231c6ff5-container.json new file mode 100644 index 000000000..d42b828d2 --- /dev/null +++ b/Task_2/allure-results/9c255f61-78c8-49ed-9d6b-8b5a231c6ff5-container.json @@ -0,0 +1 @@ +{"uuid": "88d60855-b0ce-4a0a-9c87-27b37e462525", "children": ["4fc41e62-fe2f-4a0c-953c-6d65baa4012e"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543038542, "stop": 1771543038542}], "start": 1771543038542, "stop": 1771543038632} \ No newline at end of file diff --git a/Task_2/allure-results/a0221f42-be3a-4190-a77e-fb3d20f087e3-container.json b/Task_2/allure-results/a0221f42-be3a-4190-a77e-fb3d20f087e3-container.json new file mode 100644 index 000000000..6a85135bc --- /dev/null +++ b/Task_2/allure-results/a0221f42-be3a-4190-a77e-fb3d20f087e3-container.json @@ -0,0 +1 @@ +{"uuid": "6c7b65bb-3c27-4090-9ebf-471f5225c781", "children": ["6f722f3b-1aee-4157-933d-8c78c6e190bc"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543030125, "stop": 1771543030125}], "start": 1771543030125, "stop": 1771543034722} \ No newline at end of file diff --git a/Task_2/allure-results/a3a8ce5b-b37a-41a2-aacf-8d780922c9fd-container.json b/Task_2/allure-results/a3a8ce5b-b37a-41a2-aacf-8d780922c9fd-container.json new file mode 100644 index 000000000..e1a38b92f --- /dev/null +++ b/Task_2/allure-results/a3a8ce5b-b37a-41a2-aacf-8d780922c9fd-container.json @@ -0,0 +1 @@ +{"uuid": "bd7fe23c-b9ef-4df2-8e74-5f441e2622ac", "children": ["387c1266-9027-462a-b5c6-db5d581bec85"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542390358, "stop": 1771542390358}], "start": 1771542390358, "stop": 1771542391303} \ No newline at end of file diff --git a/Task_2/allure-results/a460b261-c59d-4c9c-89eb-786de27f95e6-container.json b/Task_2/allure-results/a460b261-c59d-4c9c-89eb-786de27f95e6-container.json new file mode 100644 index 000000000..0322ac1be --- /dev/null +++ b/Task_2/allure-results/a460b261-c59d-4c9c-89eb-786de27f95e6-container.json @@ -0,0 +1 @@ +{"uuid": "7dccb18e-53a9-4deb-afa8-83d4f3ab38d4", "befores": [{"name": "new_value", "status": "passed", "start": 1771543041738, "stop": 1771543041738}], "start": 1771543041738, "stop": 1771543041831} \ No newline at end of file diff --git a/Task_2/allure-results/a48ad0a0-f8c6-451b-bf21-990b83aa3aa3-container.json b/Task_2/allure-results/a48ad0a0-f8c6-451b-bf21-990b83aa3aa3-container.json new file mode 100644 index 000000000..fdab9cb08 --- /dev/null +++ b/Task_2/allure-results/a48ad0a0-f8c6-451b-bf21-990b83aa3aa3-container.json @@ -0,0 +1 @@ +{"uuid": "55059269-d78f-441c-84ae-15cc13ff9ce2", "befores": [{"name": "new_value", "status": "passed", "start": 1771543043749, "stop": 1771543043749}], "start": 1771543043749, "stop": 1771543043844} \ No newline at end of file diff --git a/Task_2/allure-results/a5331b07-c932-454b-bdd3-fcdd340c464c-container.json b/Task_2/allure-results/a5331b07-c932-454b-bdd3-fcdd340c464c-container.json new file mode 100644 index 000000000..1fa85636f --- /dev/null +++ b/Task_2/allure-results/a5331b07-c932-454b-bdd3-fcdd340c464c-container.json @@ -0,0 +1 @@ +{"uuid": "bce0a655-afa0-43d6-a9ac-c7471d9176a7", "children": ["500f39f3-b0da-46d0-a803-15b8b44e51ae"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543037399, "stop": 1771543037573}], "start": 1771543037399, "stop": 1771543037574}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543037665, "stop": 1771543038336}], "start": 1771543037665, "stop": 1771543038336}], "start": 1771543037399, "stop": 1771543038336} \ No newline at end of file diff --git a/Task_2/allure-results/a56a8880-bf58-4b0c-9e9a-f21714d59b84-result.json b/Task_2/allure-results/a56a8880-bf58-4b0c-9e9a-f21714d59b84-result.json new file mode 100644 index 000000000..cbb074fea --- /dev/null +++ b/Task_2/allure-results/a56a8880-bf58-4b0c-9e9a-f21714d59b84-result.json @@ -0,0 +1 @@ +{"name": "test_login_existing_user_success", "status": "passed", "start": 1771542391761, "stop": 1771542391934, "uuid": "9ac6b619-e8c9-425f-8360-46a89091ac5f", "historyId": "2fb446641139d73f886f3d5cb4d5ebfd", "testCaseId": "2fb446641139d73f886f3d5cb4d5ebfd", "fullName": "tests.test_user_login.TestUserLogin#test_login_existing_user_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Login"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_login"}, {"name": "subSuite", "value": "TestUserLogin"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_login"}]} \ No newline at end of file diff --git a/Task_2/allure-results/a685c4ff-ab6d-4b1f-9400-7164386e03a3-result.json b/Task_2/allure-results/a685c4ff-ab6d-4b1f-9400-7164386e03a3-result.json new file mode 100644 index 000000000..b8e135127 --- /dev/null +++ b/Task_2/allure-results/a685c4ff-ab6d-4b1f-9400-7164386e03a3-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[name-Updated Name]", "status": "passed", "parameters": [{"name": "field", "value": "'name'"}, {"name": "new_value", "value": "'Updated Name'"}], "start": 1771543041739, "stop": 1771543041830, "uuid": "c69f33e6-ccb1-4fd6-bcd2-d3446d07daeb", "historyId": "ae94341668bef40894571942ab670b60", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "story", "value": "Update user data"}, {"name": "feature", "value": "User"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/a6bbd683-b248-455b-b20c-4d6ccedd6bfc-container.json b/Task_2/allure-results/a6bbd683-b248-455b-b20c-4d6ccedd6bfc-container.json new file mode 100644 index 000000000..f4116ebb6 --- /dev/null +++ b/Task_2/allure-results/a6bbd683-b248-455b-b20c-4d6ccedd6bfc-container.json @@ -0,0 +1 @@ +{"uuid": "c84cb79e-c361-48b4-b3f2-bef4a6a4a9ef", "children": ["789edfab-7838-4378-9a8e-684b2b41c8de"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543039632, "stop": 1771543039791}], "start": 1771543039632, "stop": 1771543039791}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543039954, "stop": 1771543040607}], "start": 1771543039954, "stop": 1771543040607}], "start": 1771543039632, "stop": 1771543040607} \ No newline at end of file diff --git a/Task_2/allure-results/ac177097-3364-4b2c-9f4f-c3f9c62b7950-result.json b/Task_2/allure-results/ac177097-3364-4b2c-9f4f-c3f9c62b7950-result.json new file mode 100644 index 000000000..c8d490459 --- /dev/null +++ b/Task_2/allure-results/ac177097-3364-4b2c-9f4f-c3f9c62b7950-result.json @@ -0,0 +1 @@ +{"name": "test_login_existing_user_success", "status": "passed", "start": 1771543038815, "stop": 1771543038979, "uuid": "25d54c3c-55ae-49c2-8bde-1ed2811d7d99", "historyId": "2fb446641139d73f886f3d5cb4d5ebfd", "testCaseId": "2fb446641139d73f886f3d5cb4d5ebfd", "fullName": "tests.test_user_login.TestUserLogin#test_login_existing_user_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Login"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_login"}, {"name": "subSuite", "value": "TestUserLogin"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_login"}]} \ No newline at end of file diff --git a/Task_2/allure-results/ad20eb56-3b58-44c9-8cf7-88ce467a6ba9-container.json b/Task_2/allure-results/ad20eb56-3b58-44c9-8cf7-88ce467a6ba9-container.json new file mode 100644 index 000000000..de5957e21 --- /dev/null +++ b/Task_2/allure-results/ad20eb56-3b58-44c9-8cf7-88ce467a6ba9-container.json @@ -0,0 +1 @@ +{"uuid": "f769e1b9-cab9-4679-92f1-be2caa8697f5", "befores": [{"name": "field", "status": "passed", "start": 1771542394780, "stop": 1771542394780}], "start": 1771542394780, "stop": 1771542394874} \ No newline at end of file diff --git a/Task_2/allure-results/adb1ab57-e0b4-4d4c-9919-9047e9e28eb6-container.json b/Task_2/allure-results/adb1ab57-e0b4-4d4c-9919-9047e9e28eb6-container.json new file mode 100644 index 000000000..889ba781a --- /dev/null +++ b/Task_2/allure-results/adb1ab57-e0b4-4d4c-9919-9047e9e28eb6-container.json @@ -0,0 +1 @@ +{"uuid": "6b325786-bfcf-49e7-b6c1-e37fc06028f4", "children": ["7d95055f-a519-4b7e-8c70-c7b08e53ec47"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542395551, "stop": 1771542395551}], "start": 1771542395551, "stop": 1771542396551} \ No newline at end of file diff --git a/Task_2/allure-results/b24dbbb2-e281-48fa-964e-bc5eee1a7b38-container.json b/Task_2/allure-results/b24dbbb2-e281-48fa-964e-bc5eee1a7b38-container.json new file mode 100644 index 000000000..db648eef5 --- /dev/null +++ b/Task_2/allure-results/b24dbbb2-e281-48fa-964e-bc5eee1a7b38-container.json @@ -0,0 +1 @@ +{"uuid": "4bad548d-6290-46a8-a4a1-bdd0d1ae45d1", "befores": [{"name": "field", "status": "passed", "start": 1771543041738, "stop": 1771543041738}], "start": 1771543041738, "stop": 1771543041832} \ No newline at end of file diff --git a/Task_2/allure-results/b28109d1-6713-45e2-901c-f6037bbf2a59-result.json b/Task_2/allure-results/b28109d1-6713-45e2-901c-f6037bbf2a59-result.json new file mode 100644 index 000000000..0023e5cff --- /dev/null +++ b/Task_2/allure-results/b28109d1-6713-45e2-901c-f6037bbf2a59-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[email-updated_email@yandex.ru]", "status": "failed", "statusDetails": {"message": "AssertionError: assert 403 == 200\n + where 403 = ApiResponse(status_code=403, json={'success': False, 'message': 'User with such email already exists'}).status_code", "trace": "self = , api = \nregistered_user = {'access_token': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY5OTc5Nzc5OTg0MjcwMDAxYmU1MWQ4NSIsImlhdCI6MTc3...d3c073db3e8d630'}, 'refresh_token': '98c3d6f3b1bc2774e053a04d9b2260e229a30782c6ff15246e7cb1342e04b49054a2fcdc2bbdb4ff'}, field = 'email'\nnew_value = 'updated_email@yandex.ru'\n\n @pytest.mark.parametrize(\n \"field,new_value\",\n [\n (\"email\", \"updated_email@yandex.ru\"),\n (\"name\", \"Updated Name\"),\n (\"password\", \"UpdatedPassword123\"),\n ],\n )\n def test_update_user_with_authorization_success(\n self,\n api: StellarApiClient,\n registered_user,\n field: str,\n new_value: str,\n ):\n token = registered_user[\"access_token\"]\n resp = api.patch(\"/auth/user\", json={field: new_value}, headers=auth_header(token))\n \n> assert resp.status_code == 200\nE AssertionError: assert 403 == 200\nE + where 403 = ApiResponse(status_code=403, json={'success': False, 'message': 'User with such email already exists'}).status_code\n\ntests/test_user_update.py:29: AssertionError"}, "parameters": [{"name": "field", "value": "'email'"}, {"name": "new_value", "value": "'updated_email@yandex.ru'"}], "start": 1771542393838, "stop": 1771542393934, "uuid": "d26ca0e4-4521-40e3-bde6-0422aa168148", "historyId": "c74d40af71caba8cfd41d7d5a182a5a0", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/b2cf51b8-6d7f-470c-be1c-dc2ba4e8973a-container.json b/Task_2/allure-results/b2cf51b8-6d7f-470c-be1c-dc2ba4e8973a-container.json new file mode 100644 index 000000000..7b8840a55 --- /dev/null +++ b/Task_2/allure-results/b2cf51b8-6d7f-470c-be1c-dc2ba4e8973a-container.json @@ -0,0 +1 @@ +{"uuid": "866b68e4-4362-4652-85e7-db5393cd5f2a", "befores": [{"name": "missing_field", "status": "passed", "start": 1771542391486, "stop": 1771542391486}], "start": 1771542391486, "stop": 1771542391581} \ No newline at end of file diff --git a/Task_2/allure-results/b38a0d0d-fae4-4dc1-9deb-2f15b54c7463-container.json b/Task_2/allure-results/b38a0d0d-fae4-4dc1-9deb-2f15b54c7463-container.json new file mode 100644 index 000000000..677785a23 --- /dev/null +++ b/Task_2/allure-results/b38a0d0d-fae4-4dc1-9deb-2f15b54c7463-container.json @@ -0,0 +1 @@ +{"uuid": "924c4cf8-f6a5-48a2-87f5-b151370d54f9", "befores": [{"name": "field", "status": "passed", "start": 1771543043652, "stop": 1771543043652}], "start": 1771543043652, "stop": 1771543043745} \ No newline at end of file diff --git a/Task_2/allure-results/b5670364-45a9-4d6c-a45b-b3e66516c328-container.json b/Task_2/allure-results/b5670364-45a9-4d6c-a45b-b3e66516c328-container.json new file mode 100644 index 000000000..10bdef693 --- /dev/null +++ b/Task_2/allure-results/b5670364-45a9-4d6c-a45b-b3e66516c328-container.json @@ -0,0 +1 @@ +{"uuid": "df95def1-39d4-401e-91cb-3f97e4b32a1d", "befores": [{"name": "field", "status": "passed", "start": 1771542396752, "stop": 1771542396753}], "start": 1771542396752, "stop": 1771542396846} \ No newline at end of file diff --git a/Task_2/allure-results/b6df3999-a407-4897-b5e7-1f8f52c81d5b-result.json b/Task_2/allure-results/b6df3999-a407-4897-b5e7-1f8f52c81d5b-result.json new file mode 100644 index 000000000..9b8d9bf1b --- /dev/null +++ b/Task_2/allure-results/b6df3999-a407-4897-b5e7-1f8f52c81d5b-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_without_authorization_and_ingredients_success", "status": "passed", "steps": [{"name": "Get ingredients list", "status": "passed", "start": 1771543034723, "stop": 1771543034817}], "start": 1771543034723, "stop": 1771543034906, "uuid": "6b571ed9-ee17-485d-9633-7355c9b2235a", "historyId": "68c545e9dc18bbef728364e263e47f8e", "testCaseId": "68c545e9dc18bbef728364e263e47f8e", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_without_authorization_and_ingredients_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/c0f9927d-d8dc-47d1-9efb-a1e5a18777b9-container.json b/Task_2/allure-results/c0f9927d-d8dc-47d1-9efb-a1e5a18777b9-container.json new file mode 100644 index 000000000..3e9a81b2d --- /dev/null +++ b/Task_2/allure-results/c0f9927d-d8dc-47d1-9efb-a1e5a18777b9-container.json @@ -0,0 +1 @@ +{"uuid": "50a00c38-a0e2-4f09-bb81-ef984b4bd7fd", "children": ["6f722f3b-1aee-4157-933d-8c78c6e190bc"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543030125, "stop": 1771543030514}], "start": 1771543030125, "stop": 1771543030514}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543034078, "stop": 1771543034721}], "start": 1771543034078, "stop": 1771543034721}], "start": 1771543030125, "stop": 1771543034721} \ No newline at end of file diff --git a/Task_2/allure-results/c840c7c2-04ff-4488-893c-58e365f2b13e-result.json b/Task_2/allure-results/c840c7c2-04ff-4488-893c-58e365f2b13e-result.json new file mode 100644 index 000000000..bbb6af2f9 --- /dev/null +++ b/Task_2/allure-results/c840c7c2-04ff-4488-893c-58e365f2b13e-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[password]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'password'"}], "start": 1771542391399, "stop": 1771542391484, "uuid": "fbefe5d2-a860-4dd4-ab1b-ebecc53ec1fd", "historyId": "6f4446e831d6c9f86ebd9df3c5efa364", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/ccd02e7d-d70e-4ebe-a37c-aedb3bbec569-result.json b/Task_2/allure-results/ccd02e7d-d70e-4ebe-a37c-aedb3bbec569-result.json new file mode 100644 index 000000000..2b4a3c555 --- /dev/null +++ b/Task_2/allure-results/ccd02e7d-d70e-4ebe-a37c-aedb3bbec569-result.json @@ -0,0 +1 @@ +{"name": "test_create_user_missing_required_field_returns_403[name]", "status": "passed", "parameters": [{"name": "missing_field", "value": "'name'"}], "start": 1771542391487, "stop": 1771542391580, "uuid": "ac206127-ad66-4d4d-8aab-075719f9b4f8", "historyId": "759b9a2d70d8dd189617283af3f383de", "testCaseId": "5afd14a42e3cbd1190281dc8c6f29ee8", "fullName": "tests.test_user_create.TestUserCreate#test_create_user_missing_required_field_returns_403", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Create user"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_create"}, {"name": "subSuite", "value": "TestUserCreate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_create"}]} \ No newline at end of file diff --git a/Task_2/allure-results/cd655a60-aa4c-49c0-8f13-32c90beef1db-container.json b/Task_2/allure-results/cd655a60-aa4c-49c0-8f13-32c90beef1db-container.json new file mode 100644 index 000000000..eaad9dcaa --- /dev/null +++ b/Task_2/allure-results/cd655a60-aa4c-49c0-8f13-32c90beef1db-container.json @@ -0,0 +1 @@ +{"uuid": "77739327-f2e9-45f4-9de3-487dd5238aff", "children": ["118e3b6d-012d-4b32-ac02-b8948a57eb00"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542394613, "stop": 1771542394613}], "start": 1771542394613, "stop": 1771542395546} \ No newline at end of file diff --git a/Task_2/allure-results/cfce6e1c-6cb3-4f1b-a170-85ed84642727-result.json b/Task_2/allure-results/cfce6e1c-6cb3-4f1b-a170-85ed84642727-result.json new file mode 100644 index 000000000..f3e8e2cd7 --- /dev/null +++ b/Task_2/allure-results/cfce6e1c-6cb3-4f1b-a170-85ed84642727-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_with_authorization_success[name-Updated Name]", "status": "passed", "parameters": [{"name": "field", "value": "'name'"}, {"name": "new_value", "value": "'Updated Name'"}], "start": 1771542394781, "stop": 1771542394872, "uuid": "118e3b6d-012d-4b32-ac02-b8948a57eb00", "historyId": "ae94341668bef40894571942ab670b60", "testCaseId": "623839a0b0269ef3413aa0e57ea886b5", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_with_authorization_success", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/d1b53906-43cb-4d52-b613-9bb17a34c56a-container.json b/Task_2/allure-results/d1b53906-43cb-4d52-b613-9bb17a34c56a-container.json new file mode 100644 index 000000000..4a5d05f95 --- /dev/null +++ b/Task_2/allure-results/d1b53906-43cb-4d52-b613-9bb17a34c56a-container.json @@ -0,0 +1 @@ +{"uuid": "05f659a0-7caa-4e1c-a791-9d8171ec7635", "befores": [{"name": "field", "status": "passed", "start": 1771543040786, "stop": 1771543040787}], "start": 1771543040786, "stop": 1771543040876} \ No newline at end of file diff --git a/Task_2/allure-results/d7100a7e-a1a0-4bab-9fb7-1dd4c4413747-container.json b/Task_2/allure-results/d7100a7e-a1a0-4bab-9fb7-1dd4c4413747-container.json new file mode 100644 index 000000000..807e428dd --- /dev/null +++ b/Task_2/allure-results/d7100a7e-a1a0-4bab-9fb7-1dd4c4413747-container.json @@ -0,0 +1 @@ +{"uuid": "97d5184d-1676-4c8b-8aec-17fb864bcd5f", "children": ["118e3b6d-012d-4b32-ac02-b8948a57eb00"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542394614, "stop": 1771542394779}], "start": 1771542394613, "stop": 1771542394779}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542394875, "stop": 1771542395543}], "start": 1771542394875, "stop": 1771542395543}], "start": 1771542394613, "stop": 1771542395544} \ No newline at end of file diff --git a/Task_2/allure-results/dce2e512-55d8-4443-8254-6d8b68423533-container.json b/Task_2/allure-results/dce2e512-55d8-4443-8254-6d8b68423533-container.json new file mode 100644 index 000000000..8357483a1 --- /dev/null +++ b/Task_2/allure-results/dce2e512-55d8-4443-8254-6d8b68423533-container.json @@ -0,0 +1 @@ +{"uuid": "e56feeac-b896-4058-b513-7c4174a1df52", "children": ["37417122-b225-4291-95ac-a6767b3aed13"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542387695, "stop": 1771542387695}], "start": 1771542387695, "stop": 1771542389250} \ No newline at end of file diff --git a/Task_2/allure-results/dde101ae-6223-42cd-b822-44d19a62296a-result.json b/Task_2/allure-results/dde101ae-6223-42cd-b822-44d19a62296a-result.json new file mode 100644 index 000000000..8cf8cf09e --- /dev/null +++ b/Task_2/allure-results/dde101ae-6223-42cd-b822-44d19a62296a-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_with_authorization_and_ingredients_success", "status": "passed", "steps": [{"name": "Get ingredients list", "status": "passed", "start": 1771543030515, "stop": 1771543030608}], "start": 1771543030515, "stop": 1771543034076, "uuid": "6f722f3b-1aee-4157-933d-8c78c6e190bc", "historyId": "42e985a88b241f09a313151590a040fb", "testCaseId": "42e985a88b241f09a313151590a040fb", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_with_authorization_and_ingredients_success", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/de1d2d9b-d925-4bc6-8880-02f3a973e3a9-container.json b/Task_2/allure-results/de1d2d9b-d925-4bc6-8880-02f3a973e3a9-container.json new file mode 100644 index 000000000..3997e1b11 --- /dev/null +++ b/Task_2/allure-results/de1d2d9b-d925-4bc6-8880-02f3a973e3a9-container.json @@ -0,0 +1 @@ +{"uuid": "7f996cbc-f551-4200-968b-71d06e5d756f", "children": ["0485f706-b3d6-455f-be7c-2535d77c6ea6"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542389351, "stop": 1771542389351}], "start": 1771542389351, "stop": 1771542390354} \ No newline at end of file diff --git a/Task_2/allure-results/df3d84bb-613f-451f-8c06-6a96ff926da3-result.json b/Task_2/allure-results/df3d84bb-613f-451f-8c06-6a96ff926da3-result.json new file mode 100644 index 000000000..0fc8e2abe --- /dev/null +++ b/Task_2/allure-results/df3d84bb-613f-451f-8c06-6a96ff926da3-result.json @@ -0,0 +1 @@ +{"name": "test_update_user_without_authorization_returns_401[email-unauth_email@yandex.ru]", "status": "passed", "parameters": [{"name": "field", "value": "'email'"}, {"name": "new_value", "value": "'unauth_email@yandex.ru'"}], "start": 1771542396555, "stop": 1771542396650, "uuid": "b0108ab0-e3a6-42e0-a781-1487fdb9433d", "historyId": "2205f79c42e60a4e88623bc086a23c2d", "testCaseId": "e4c895a4e24795769ea51c88974af0fb", "fullName": "tests.test_user_update.TestUserUpdate#test_update_user_without_authorization_returns_401", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Update user data"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_update"}, {"name": "subSuite", "value": "TestUserUpdate"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_update"}]} \ No newline at end of file diff --git a/Task_2/allure-results/e17e07f1-36b4-4287-ad11-262049878235-result.json b/Task_2/allure-results/e17e07f1-36b4-4287-ad11-262049878235-result.json new file mode 100644 index 000000000..88457b3a0 --- /dev/null +++ b/Task_2/allure-results/e17e07f1-36b4-4287-ad11-262049878235-result.json @@ -0,0 +1 @@ +{"name": "test_login_with_wrong_credentials_returns_401", "status": "passed", "start": 1771543039792, "stop": 1771543039953, "uuid": "789edfab-7838-4378-9a8e-684b2b41c8de", "historyId": "37855d96aeac431afb5067572c5338c3", "testCaseId": "37855d96aeac431afb5067572c5338c3", "fullName": "tests.test_user_login.TestUserLogin#test_login_with_wrong_credentials_returns_401", "labels": [{"name": "feature", "value": "User"}, {"name": "story", "value": "Login"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_user_login"}, {"name": "subSuite", "value": "TestUserLogin"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83678-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_user_login"}]} \ No newline at end of file diff --git a/Task_2/allure-results/e9c9a195-7896-41e5-9667-b0d440580f6d-container.json b/Task_2/allure-results/e9c9a195-7896-41e5-9667-b0d440580f6d-container.json new file mode 100644 index 000000000..b69308b54 --- /dev/null +++ b/Task_2/allure-results/e9c9a195-7896-41e5-9667-b0d440580f6d-container.json @@ -0,0 +1 @@ +{"uuid": "78cea753-922c-402b-937e-cfcd915b9aa3", "befores": [{"name": "new_value", "status": "passed", "start": 1771542396554, "stop": 1771542396554}], "start": 1771542396554, "stop": 1771542396651} \ No newline at end of file diff --git a/Task_2/allure-results/eafc3b5a-300a-4b56-9fe0-f9e0bd94496c-result.json b/Task_2/allure-results/eafc3b5a-300a-4b56-9fe0-f9e0bd94496c-result.json new file mode 100644 index 000000000..bbcf4e1b2 --- /dev/null +++ b/Task_2/allure-results/eafc3b5a-300a-4b56-9fe0-f9e0bd94496c-result.json @@ -0,0 +1 @@ +{"name": "test_create_order_without_ingredients_returns_400", "status": "passed", "start": 1771542387472, "stop": 1771542387561, "uuid": "71917c42-5064-446a-8035-51b06f5f9c98", "historyId": "139cae09de679319747de75c3364b813", "testCaseId": "139cae09de679319747de75c3364b813", "fullName": "tests.test_orders.TestCreateOrder#test_create_order_without_ingredients_returns_400", "labels": [{"name": "feature", "value": "Orders"}, {"name": "story", "value": "Create order"}, {"name": "parentSuite", "value": "tests"}, {"name": "suite", "value": "test_orders"}, {"name": "subSuite", "value": "TestCreateOrder"}, {"name": "host", "value": "MacBook-Pro-Tony-2.local"}, {"name": "thread", "value": "83317-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "tests.test_orders"}]} \ No newline at end of file diff --git a/Task_2/allure-results/ebe48426-045f-44b1-8406-6d3dce3e4d32-container.json b/Task_2/allure-results/ebe48426-045f-44b1-8406-6d3dce3e4d32-container.json new file mode 100644 index 000000000..756039689 --- /dev/null +++ b/Task_2/allure-results/ebe48426-045f-44b1-8406-6d3dce3e4d32-container.json @@ -0,0 +1 @@ +{"uuid": "94a38eeb-82e8-4916-bb1d-43eef7954842", "children": ["ac206127-ad66-4d4d-8aab-075719f9b4f8"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771542391486, "stop": 1771542391486}], "start": 1771542391486, "stop": 1771542391582} \ No newline at end of file diff --git a/Task_2/allure-results/ec5af5e2-4c6d-4aa4-b00f-15959a377dc8-container.json b/Task_2/allure-results/ec5af5e2-4c6d-4aa4-b00f-15959a377dc8-container.json new file mode 100644 index 000000000..c2f89a0e3 --- /dev/null +++ b/Task_2/allure-results/ec5af5e2-4c6d-4aa4-b00f-15959a377dc8-container.json @@ -0,0 +1 @@ +{"uuid": "daf72bda-5829-472d-8efe-00b64c3331dd", "children": ["c69f33e6-ccb1-4fd6-bcd2-d3446d07daeb"], "befores": [{"name": "unique_user_payload", "status": "passed", "start": 1771543041570, "stop": 1771543041570}], "start": 1771543041570, "stop": 1771543042528} \ No newline at end of file diff --git a/Task_2/allure-results/efd7ba8a-abda-42ba-bb52-dd58bdd3fa4c-container.json b/Task_2/allure-results/efd7ba8a-abda-42ba-bb52-dd58bdd3fa4c-container.json new file mode 100644 index 000000000..85811691c --- /dev/null +++ b/Task_2/allure-results/efd7ba8a-abda-42ba-bb52-dd58bdd3fa4c-container.json @@ -0,0 +1 @@ +{"uuid": "fc0adac7-e100-4b70-91ba-33f0366f5e74", "children": ["7dfd07fe-ea66-4d4c-abd2-d28ddb5b7ca9"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771543042532, "stop": 1771543042696}], "start": 1771543042532, "stop": 1771543042696}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771543042858, "stop": 1771543043545}], "start": 1771543042858, "stop": 1771543043545}], "start": 1771543042532, "stop": 1771543043545} \ No newline at end of file diff --git a/Task_2/allure-results/f142f851-53d7-4546-899e-6aeec5ee7e34-container.json b/Task_2/allure-results/f142f851-53d7-4546-899e-6aeec5ee7e34-container.json new file mode 100644 index 000000000..16b24472b --- /dev/null +++ b/Task_2/allure-results/f142f851-53d7-4546-899e-6aeec5ee7e34-container.json @@ -0,0 +1 @@ +{"uuid": "baddca9b-d184-4611-9021-4095b7379886", "befores": [{"name": "new_value", "status": "passed", "start": 1771542396656, "stop": 1771542396656}], "start": 1771542396656, "stop": 1771542396747} \ No newline at end of file diff --git a/Task_2/allure-results/f52576c6-6978-4971-a4e8-4b27c5aed134-container.json b/Task_2/allure-results/f52576c6-6978-4971-a4e8-4b27c5aed134-container.json new file mode 100644 index 000000000..925f7394d --- /dev/null +++ b/Task_2/allure-results/f52576c6-6978-4971-a4e8-4b27c5aed134-container.json @@ -0,0 +1 @@ +{"uuid": "744a9c9e-53b7-4c9c-8e57-7e72e7ee9314", "befores": [{"name": "field", "status": "passed", "start": 1771542396554, "stop": 1771542396554}], "start": 1771542396554, "stop": 1771542396652} \ No newline at end of file diff --git a/Task_2/allure-results/f69c41bb-e1c5-4ba7-864e-319b25e8ee1b-container.json b/Task_2/allure-results/f69c41bb-e1c5-4ba7-864e-319b25e8ee1b-container.json new file mode 100644 index 000000000..7c71dd349 --- /dev/null +++ b/Task_2/allure-results/f69c41bb-e1c5-4ba7-864e-319b25e8ee1b-container.json @@ -0,0 +1 @@ +{"uuid": "4bdd8431-6fda-4617-b8a9-b444d7794450", "befores": [{"name": "missing_field", "status": "passed", "start": 1771543038542, "stop": 1771543038542}], "start": 1771543038542, "stop": 1771543038631} \ No newline at end of file diff --git a/Task_2/allure-results/fde081ab-b274-4c41-8257-0bfbaa784e51-container.json b/Task_2/allure-results/fde081ab-b274-4c41-8257-0bfbaa784e51-container.json new file mode 100644 index 000000000..a93e83930 --- /dev/null +++ b/Task_2/allure-results/fde081ab-b274-4c41-8257-0bfbaa784e51-container.json @@ -0,0 +1 @@ +{"uuid": "ffd46b4f-a0ce-48fb-9d5d-1ef0143ba1b8", "children": ["387c1266-9027-462a-b5c6-db5d581bec85"], "befores": [{"name": "registered_user", "status": "passed", "steps": [{"name": "Register user", "status": "passed", "start": 1771542390359, "stop": 1771542390525}], "start": 1771542390359, "stop": 1771542390525}], "afters": [{"name": "registered_user::0", "status": "passed", "steps": [{"name": "Delete user (cleanup)", "status": "passed", "start": 1771542390622, "stop": 1771542391302}], "start": 1771542390622, "stop": 1771542391302}], "start": 1771542390359, "stop": 1771542391302} \ No newline at end of file diff --git a/Task_2/pytest.ini b/Task_2/pytest.ini new file mode 100644 index 000000000..ed3ef0388 --- /dev/null +++ b/Task_2/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +addopts = -ra +testpaths = tests diff --git a/Task_2/requirements.txt b/Task_2/requirements.txt new file mode 100644 index 000000000..672d9c7fb --- /dev/null +++ b/Task_2/requirements.txt @@ -0,0 +1,3 @@ +pytest==8.3.3 +requests==2.32.3 +allure-pytest==2.13.5 diff --git a/Task_2/src/stellar_burgers/__init__.py b/Task_2/src/stellar_burgers/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/Task_2/src/stellar_burgers/__pycache__/__init__.cpython-310.pyc b/Task_2/src/stellar_burgers/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..306a82942ad515733db2f54ffef1dd2fd7c6d3bd GIT binary patch literal 176 zcmd1j<>g`kfXM=$3#@O*cJ`yFt3R^%sps$p6YVID?FsCC;h&O*9j-0N|a8~^74s)R}R1;vHTR2LR+^2J*>ez^Io z@vkl{-Qdf&e!2}Nyq?N7Wg4M_$>G4{3Iaa^j3faSBw)*s006))6XC$W3;!hu&oi}! zL3~T<0fZ%u6Q{YUX$W(ud6Wsc)4-_i>RerDL69rPUDsLKZM(+jJPrGjb5rHKpNV0D ze4X?A!!UXMW}5Q})SPb7%t5NPLm77hC{&2?u{W$QA^b?Z);3i+_L zxRI}AY3FvR|KJxpT16e5%OnXEzc*B?XdoQKJW66%JwMn`HE@8B_JCB0&+6354y0+f zKYj#CvCOez!Rs$X)!IDAT3vFm6~{0oPlc3z}(-R9}}}M zuUOsVVh;GKs6nF7ntZpimF8|~($+iP*!dZ5C=K&n>uClDp?52Xh5y-c-UFKAsI z18qSg%p3n+s3jkhnD<0+XBRchRBmdc0$lwu%{t#A!n;Uq94`V5-jIUNyBbN0-6 zPJnX-St8r4yF)we5?BM9@xWC0t{1-u$&{C**3g?!dOhZ#J6$c4o;nWZ_e!gd!4w-L zPUD<&EV;&P*J*=pp4gv;`9jaQgD_uvJBE+JM1et-M>KT>9nq)cANB|^tpk^{r=S56 zXNjm&pbmSh3f-)7{UFZQ6mAIRqnxStkw1rIwCP$jP0Nv+m}l zk+Vewd%~bdPPa|fhp=LssVVqV(?HsudJq1Lvnq3S9;Mj)_C0J&9rh&09lPyL07e^z zs(rxK1rVQx=Ou#3@UdWR{q}(!IRMvrwc4-18#yMWwLGH~mt1m#-g2$qr^A4>tx_K)ebrG#z z0#bxkg8q%x4vR~DiMsnD_!^g@{3{@vvj=i*twnF^9c7ndP7C**kcrIYq5kL5&p!X( zfXrg}4E-NJ;D2nc?T&Xh?g(`P37#b&J%{|B6uE8Mg<$qxV52GQ@$o|J%r@(G+x~=( zt#5RG~BF9rn%>qGd8sqhe zOB<}})?HR+wEl|Kkv1z<%fQJuz7}_m6ldUkaZ`=~HNZxM*K{$E$MXgIUE>L}S%QsC zo|9kTlyyl?H=2~-FD4$j1F{E1eG6)E9$_9#<;KHE+7AHO>feE60)q`7n;ZdZ{PtnA zO6%08>_6N5P!qf4GOn|g!uZosTDSu@$!v9oUSU|yb5=$ z!s}C=weO-V?ZvD1;2fvj9x<3n>vtl?-8>ur^7xzJdrXPO($z_w%}}2;neQ}dqtrP6 EKZ5QT(EtDd literal 0 HcmV?d00001 diff --git a/Task_2/src/stellar_burgers/__pycache__/config.cpython-310.pyc b/Task_2/src/stellar_burgers/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f192f6b9cad29142fb175f807223554840377c3b GIT binary patch literal 255 zcmd1j<>g`kf133Y6ck(O z>lc@#=Hw(6C6yMXrxq3KrKXf7CzfR9=jj%w7L{ctrxxoKl~%FnCl+M-X)@j7aB>WG zjSmg-xy9ue;29qfD^N-<^?t9ijg%&Vx5ir5BxT9#FpoaXp=Fi)Ouc5Nd4^4Zf7tZdyk&V)q zJBLem+BW%-wC}}UZp|XMPFIyQ;;lFD@B&l^Kv^k3yXQ-jK#d-JHU%>vDNAWaL$*td zcHaE28MHVYKS0g)064NDXY?a+Ownud4Vrq#702j~spuNp9Dibu*EqT5pkHrZ^rd&L z)7FWr!E71G?;2mkD4i%`e5|-fMpJIknLZkvG)Uk`b^KIc2AbGh-;@_#|I^D%@W^&} zr&wsHUpDVMh7&d6Po-sk03FhGP4bSePxP$I`Qy&=#ycP?}mTpN?U_d(?vL3 hflT-*T(dzTG%xT-_t!0dhT?_t8Oc~iQ$C?v$sd66$%p^| literal 0 HcmV?d00001 diff --git a/Task_2/src/stellar_burgers/api_client.py b/Task_2/src/stellar_burgers/api_client.py new file mode 100644 index 000000000..4ff77d13b --- /dev/null +++ b/Task_2/src/stellar_burgers/api_client.py @@ -0,0 +1,59 @@ +from __future__ import annotations + +from dataclasses import dataclass +from typing import Any, Dict, Optional + +import requests + +from .config import API_PREFIX, BASE_URL + + +@dataclass(frozen=True) +class ApiResponse: + status_code: int + json: Dict[str, Any] + + +class StellarApiClient: + """Thin wrapper over requests for Stellar Burgers API.""" + + def __init__(self, base_url: str = BASE_URL) -> None: + self._base_url = base_url.rstrip("/") + self._session = requests.Session() + + def _url(self, path: str) -> str: + path = path if path.startswith("/") else f"/{path}" + return f"{self._base_url}{API_PREFIX}{path}" + + def get(self, path: str, headers: Optional[Dict[str, str]] = None) -> ApiResponse: + r = self._session.get(self._url(path), headers=headers) + return ApiResponse(status_code=r.status_code, json=_safe_json(r)) + + def post( + self, + path: str, + json: Optional[Dict[str, Any]] = None, + headers: Optional[Dict[str, str]] = None, + ) -> ApiResponse: + r = self._session.post(self._url(path), json=json, headers=headers) + return ApiResponse(status_code=r.status_code, json=_safe_json(r)) + + def patch( + self, + path: str, + json: Optional[Dict[str, Any]] = None, + headers: Optional[Dict[str, str]] = None, + ) -> ApiResponse: + r = self._session.patch(self._url(path), json=json, headers=headers) + return ApiResponse(status_code=r.status_code, json=_safe_json(r)) + + def delete(self, path: str, headers: Optional[Dict[str, str]] = None) -> ApiResponse: + r = self._session.delete(self._url(path), headers=headers) + return ApiResponse(status_code=r.status_code, json=_safe_json(r)) + + +def _safe_json(response: requests.Response) -> Dict[str, Any]: + try: + return response.json() + except Exception: + return {} diff --git a/Task_2/src/stellar_burgers/config.py b/Task_2/src/stellar_burgers/config.py new file mode 100644 index 000000000..9ffb9ee08 --- /dev/null +++ b/Task_2/src/stellar_burgers/config.py @@ -0,0 +1,2 @@ +BASE_URL = "https://stellarburgers.education-services.ru" +API_PREFIX = "/api" diff --git a/Task_2/src/stellar_burgers/data_builders.py b/Task_2/src/stellar_burgers/data_builders.py new file mode 100644 index 000000000..fc848bdd2 --- /dev/null +++ b/Task_2/src/stellar_burgers/data_builders.py @@ -0,0 +1,20 @@ +from __future__ import annotations + +from dataclasses import dataclass +from uuid import uuid4 + + +@dataclass(frozen=True) +class UserCredentials: + email: str + password: str + name: str + + +def build_unique_user() -> UserCredentials: + unique = uuid4().hex + return UserCredentials( + email=f"autotest_{unique}@yandex.ru", + password=f"pass_{unique}", + name=f"User_{unique[:8]}", + ) diff --git a/Task_2/tests/__pycache__/conftest.cpython-310-pytest-8.3.3.pyc b/Task_2/tests/__pycache__/conftest.cpython-310-pytest-8.3.3.pyc new file mode 100644 index 0000000000000000000000000000000000000000..74d1a22912ef9c1705be36cecd9adf63b76b78de GIT binary patch literal 2515 zcmZ`*&2QX96!+L(uh;vT&nBfsR#Bz;lI`ZBEr?VNX%XU(Mo9qG7t7t5O}zE4&5XBg z7Fz;RajW12NKK`z#HIfQ5*H5q1#{)pf1v_}H{(s&R$yt~yf^R7o8QcPZ^luzYANvj z_2W;$cLhcHQwWnEj48LEu|I%d1*1@Lk?hr;rYcD3>23k#8pAcDrsx)l(KSy>V``1i z2)Sh`RY)1DBh{^vDk*l&hlnnV{-lN#QXQ#dPj$C0JvH10^jbL8n|7zAP7h~#v+gWX zNWD9U3)pyyaFI-RRBYnX6a5Ie^HO8s@)HH5b5bfviwdqviv^5!6{q$RcBE`^jnVcC z#2dQ_2}7T5#KC45kbdGIK6QT(gxDMOgD(ff8!$q7krBp%s1Mo#YezBR1|`XW_S?eS z*MEjJUwz@{DbJAzw^54q;Y!IW4|1!AbQ4BZ=;1Rfol#Iyj6z?3Pe z(nZizXc|Vx8lY6S9E}%9&ksUw#y(?@B8s`*_j|EKuEVB|G^F&+mckYuAp|*zlzY%pwX0D+tOgy=`Wl?2yEpclM0LbBIK2$znvc_lMIwy-5udZyqq^yO#D zbD^)CQ*bpk0t8mYqyl!;v^YXX=vyQ(XBsqt3}$3nsw0oO7!Eu`iV%1XGNS!pS? z21-^=%j`FpU%-vD45+8X_*j{DNMhw8-B#|Gf6;2AudRwU-? z7<2V)%z)d3R)SUrjDR0%cW#8T+L)gQzMi7Ame%pPW9@ShiP{f{8ZwRx5J#wFh+`cu z;`3=OK=_@fQ1_Fu#QLrR(L9}urWg~=xiDPYq{N53w|!e=oqeBlB1&vg2{sgqjY&v^ zIsg&sgG$ZPu)0I`114lKYglXggXEw|$Acn=yDaK&z5E?g&q1%$^>qggS1wZa~RhtVKLN@26loh3$iv`{1_^VU^|KIvsERO z5A0XS9yY9-P-=uG(*JdE1Cy@9g)?Zk;m+9ufNH=15*F*>wJzYamR${V=-khn~0+dC6mbhlpYD2ASCN z!Ly8HkL^=&C-d5dlmY4;N+Zf=&g{tJIQ08+6I_FMa3fD%ry(zJc|X!w;i4>1qacf!Hiq;TDp8y>s9I;na;SLN=3Fk_LBo%!~vDzGCi*YW$1ZsWqarD zr*}5@yq&vu_n`WtpzoTyJDcA2#@;8~fapUtawA`w+TheZ4>=|N5+Fb5KBU_cyt-an z{x4ARsJR#4Ho$)3%WM+aDIZT>>;#YDmw`-#SZsUZ80CS=C)E6~7vVujZi?rd*+4ES ZCYsf1$U-$_s-`?h3yxLSEu(%*w9*;fqn;B2hZZ`>xuYdndzVHb7 z2N&0e4~zSRP<;S^6HZf-(GjJHS;{hRnYM@g|>se#e0NHK6 z#@l@5v@&Y)b-v2qJ@rQ|{yx9MZ}Im)8gPG~^gcL8>pf~)ah?|@HnPZdk6C{x6Jz~v zr8clxDND(}+6C0vHzG}AwLO(PsT8?6XK>zn@l>iRqDm?=X{;x6W2;J-Qsoy7yygdO z)RP3YuSNwx9ez8=_g4Uhyri6-(VyFtEXYg7*%>`y-vf6azNJS=UjLHln?FK4@Ouou z1v~V(cf|DFhvWr?l@I6qGs-I^(VtzDRnO@3-k6+tyvFONWZ@0TlAidcvhbI5L60hW z_>l0%lEN)MCky%$TO$ym=I*@vK$uYGV@T8j!krhx!FO6HJt$!w42z`9(BZ+JDh@>goC84akzrC~)2(;lR*k-Ikom?~nCKO0a7*_$(;|sey#?Uv z$b4hBFrmncay)r0Y?tLAcz7@ixA(s3Rc$p+(^3H+ZN$`iaKCKy z6?w0suvSz9ChIGqr|Jem51eq+FQ;25TYcNl7RdD~OaTq(oqtzYmv-n1?ZQfhcqWKl z<|0!Z39tyoda;6U0L%9C(ADnsY$C>}xY|X>I9(7)Azy6Qwzo?Nuaa~3oSb7ls_uf; zo1V5}(2OP`=0c(CF4A?XJ_c;-uvuVkY;~%{Q+fPaJ)sBKEu05k01NU5cwxwr98y5+ zPki6reCL74g^G;`d2i)9*`B8;CGl7~r=LhkV4heZxrdJ;pWhiDmyL&5Yd zjpoh!Ggmu(RrZ*|O19oa90RdW0KZ8rP@r67ku$Xp3XWNqsZRmJnHv68FH?$r!{t?B zZ&a8n72v*q8M6=nmwtp&s_^x|rnCEM6H%{in^E+%gtjB1NMVL-)y$??v>q%JM$G!y z&Kw1G8`tYlec05ZgHnz02|zcC64%~bQ*#yKa^l>-#ueY3OPsB5W(6-(v4wfj9hd^r PVF9hPfCXN&)$#uWIAeK; literal 0 HcmV?d00001 diff --git a/Task_2/tests/__pycache__/test_orders.cpython-310-pytest-8.3.3.pyc b/Task_2/tests/__pycache__/test_orders.cpython-310-pytest-8.3.3.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81028c4f72e8966ac2f5f46ae3259d45dc9ce3ce GIT binary patch literal 8634 zcmcgy+ix6K8K2pioxNYYzQj&%rZlu$QeW22t!>(bUQ>!&XbN;ej5a=Fd)@V}IcGL$ z+_MsDA|#NC$`eA0kPQ;TPvuYG0Ritw6&i$ugm?%qs66nHhl=0#&3HZQI*B8ft~B4A z%gi~y@A#bGcNupIg{*;JL%Y4YgWQAjWxTT zG{YXJ?w}{pO0A{qX>PMxnYC;^yOyixOv7_F^TOUTaW9DEmidw)9Fe+ih}5;jHS?NT zFAhAB<|i^Dizl+t6D483VN`QBfyG#;nnC#u-)prR^89-9xmMF_`_)8{Yjph;cg1T6 zPX?7`&v%>cW$6j(cAG-go!2C~)JFa}={0f; z62iJ}*X^igizI5vs75N;Scve+w8)^A5?O*BlrDP84`*czfz?=VF49apzi|`_xSqqM zt|tsbW6lYqXZeOUY2Nn}JzJZrrogP)Zkm2VTh~nCyl?fAI=O1~Fn=$l9i4hR(M#*J zdegTzlLDnBQ)H-pDY0dXtnX~5wv5Y$I*I=ecD78ur?yOyyJ3wP zy^P3YH>BLv0sytA5}_6t&WWH9V5 zb>v#ZcfEJkTa9+ZM~@`F4lHbn>Udx)ueBr{YAH!?xv6{%B-}3cXOQHx6BKt337I1~ z%=!?5+O{EIhw8Upo_-Unqo!$%rl0RDcGqC2)%5GKv+6DSYVxf{ zTX^qGzJAqT>9nUWHq_g0ZJPevilrNJ&(!+W;A!3ji)_`yX7@@Hz5qD{9ogLAKbMQ) zVjh8VBc32PNEIQ{X5Ji6{5bJD^AoddY`nV1W=|bvl0_oUogYy|-_~D758HTHdD!>_ z+jvXZI?*&m5-patR$=>v13Pc)B&<8^t6K1_OdgN7P zUm>9aZq>z>zn^&7lzi;~U*TUn!h54IlqLu~Icj{UHa2ST_r(H*`9*J16&5L@?x zsEA=*V9dn`Gc4pFX5h}?%Hqny8;Ro|>1ANuv!sKDn@Px_S4oWa%DSY>&}&G*B9f(t zbsyHlu*Y()w8-;g;Hd5CS3iA|QMp-iGeg4jxq zkRVr8PLMbXaZ%n!#Ro_{NaBkm9wBjz#Ft1sN}@{QaS~6En1ZMlnBe6!HO!EhB~c?W zM`E7D2@)qsoFZ|W1f3sw2BJD9pQJKTuRKeFkv>DEXGxqRah}9iNRWdq$+ed+ka&^A zOC(+4uB)&@GRT5t#u|VQA62x7h_&Q3#v-{IRrwgle5c;7dRkZGTv$9J*uN{nh z4m`^M{}9>H-<)HOhrvJK90YhGv21{IDAGvi#H!f?3*od|+6Lz!#!xT&iA@X9M-sc= zp?2Q=De`!kbE@cfbOM|+g;I)2;G7hfaT53r?h$F`97iC;(+=7KER;hwk7WQDV-?i!#M4jJXhDM!YeI8MxE9h<9?p7{_0U;U5n1V{L&S++txa zT3ym$WFHOwg8op0zcH%MO#|kN(S==xkZ)k~-2A}AIk-DNym(uF2vTbZEE>z+#zPnS zf%+soqsg_d@+U8Olk2i`xhXvHfA!&`FoS&fYW^@xv|Wrb(P2nv55vsfo?&)9N(Fb; z@5;7v=VxY!j1^IP#Uyv;59Y@CgY(I4#vEV}BK|&u{5HlQ!df=LA$E*I=nU_2$OYcz z4s!@BWyB%rK8HNs-{sS>T~6%4c9rkMA(@CnvLbhn9FmWn!NLHC{0gI6U=KQhrTz)r z#r6*R!xPwJ9N`HZ#C9hRDMuVKBr5mDA!4{!Ts9&uEa?)wu(B8dc6e9hr|2Q@^N{)@ ze3y!@5Ld&KfyZ)^l)--y#@y6ju@#d8|7=4|#w6>_(K? zn2hmRJ>P6!ZnT=hU1_KlW;gjJcKD&#t)6MN7duiSl#$=WV1cpm9S-La`A0!IN>PxG z*g0%NA!Qk8r=B;e6nv_QfGWlh7BpuGkhp9?_*hYFMjUc~_>P_%A zXkv=ULoif|8fSrZs@1vTN#sP345-?a?3k6uXJ-DzZN$?aHK@SNC#t2xP%RQrG;!cG*4MqZ2#P!5`K3;$)mg6|{cM;x9yHI?W6}A^ zc;$4R6Ae+MU1QHN-c*|zsMX@5*21nR6hAdki^h$@=J|ME?c`oJ^vV5=1Onc0XYaB) zZ}Pacpgp1}3Lc64&x^*!D+jX|2N`~$nhw$~XINY}$hz)YM|4{r%6ZrQez(!0+>7f< zSP?^hgTzG=Z;=orcFiG|$m^E$bs~j}ai@)JMl@zyclwR`uNy;jO8Gf~h2M2x@ zYUgmN#~==r;&+e?O$9@=Dj1yd7M#ad9Ci#O@+nyAo5ug(tnDQ7*~w1$Ca3MgbiR$i zJ_#oq=1@Cu1XDVtUPZ7+DgG3wk=r9jb|_L!@tqz6JGMW7!J&Rd=GPjT0@RTA);t7cw{iDmi!)GBg-(y zh61iGMbDg6z4yqwT8RBUZMf$q{hxW2iT7?vmwhGCH(qfb(CJ+$>Yu7 z-H;BVK>8=<#+gqY*f5KC_t6I2-GP9497LtfO$5waWB$$Zuh{S99SRrk#IpiL-C-bIzXFd(OJ;odnj- zN!txEXNf#G#LRMt`FnHY*}I>$JC3+eb)-kQmPjmI>XlFIMMtL&gK!2Prd g(ocuZ(KF_sHu8zGnYPkq#Y{hvHpk5W0nC4`a{vGU literal 0 HcmV?d00001 diff --git a/Task_2/tests/__pycache__/test_user_create.cpython-310-pytest-8.3.3.pyc b/Task_2/tests/__pycache__/test_user_create.cpython-310-pytest-8.3.3.pyc new file mode 100644 index 0000000000000000000000000000000000000000..362884952c63ee87a611f8eb37761127ee915da7 GIT binary patch literal 5214 zcmcgwTaO$^74F+~_w-!%>a~f>de^<4o2z;f z?^2xy?59XUmXOGcA9fKhD#_YSsUHz`UQD*uzt?4|(4%(Hb zp4P9$VW$)Di-YJ=CklJx^TR3JADribRH!3<{J zvo@@}Ww8QUh0xx1_FQIfY0UYZzOUvoJ1lNm%w@%U7Jzxo1F%wBy&j5~AY=eiGZ;i| zb8PqH;43JXP{f}wBK2+PN@D8|jl`7Zww_qbObXJHgTaa%%f{1iBcxSo!2;-N)V7xs1LJTT|A#39hqiFEL8>|(Si-F;~H zS2!(8ODq%{`bBx8j_VT&}%+&`ra8_82)n!FtuI8AlM==9;5ye9(CnYwO)RYVbS(Al# zwWKcV;@=AGw5$W|4D}OQg{y|W9&7Y(hp7Ml1ZvXc>~m?d1|;>Qz~-Jra$gs#&xZvw z7e;9A>-^-44%ev1D3K$!VPU3~ck*aV?pZGjbLdIVb0U z>5mG%CFh{Y1sa(=cgzrDsP8<1dSsWMb@t`l2Bz|QIfoJ^U*!^@0A#IDh^?-(CIsD}$Ytrtp55GmY~N;+C6Y zQN%$!6n?wULN95Y&j!|;BDHuZ1_x$pVjhtdBI}Q;fq+km)&I|68amIUju^Jvp%B-x zzYz&+$!PtvqbwUukiqTW3VZO~Mg+QhiZ;Qjji{$~fD$r=fytp_ zg~be4Qz@oJd#&<1?O*2MCRBFwIxU)7b&i^kwaOPrzZ5C>2@;ajx2))jqHBttR`lHN zxVBfIN$Or{?RuGwDveYw!d&}2+705UPr7$*h5-w?XjU-0FXFT`W|66PVXzY;j`;yk zr~G!%>G(Vx@OHmD2zZ#5G3?(MMx8k7iPY}&F+-#azPQ;Rc9@##Z*}@Nf{xz{x?x)M zMX(vt3TgGCvSWa_%z2-uGyZ0ucZ1ju?+iLYPr>63$!x*|Q=5gIFbWW1 z%&-^T9)>>_CrOILY+J8Z|I@lMcV;ho0S9oS26>3Se;`729g3qsLM>1~x< zEe>|lmz9}hZGZe+a@Rx|qnHP&>K_!0egTG_PqdENTY?&4&+wD^qWCNe3y z|3ws)NqxgWCWXWdamrK~l_5=LBBP=VMn?>`kVzG!jriqAM|@vJuYz@3t=^*0j$W+RRx+PggMpcm&@q4UpBA2QFTb25cVB5hs)&jQo6^^H2b8?JhnUtD~ zsLE<8qpGqxo03(9xt3!_4m61wxG9?|p;Ulz9RKtf{+SFvbPLpo`~@XJK}j(C6baHp z2|oT}C7>AIoV$`bBey|M0glIv_V714I5H<*B0~OzQ=ZPJh)ffi0eOqh5=$n{j}du^ z$VrgY=^_>fTjA~uU9m>c!7X7sjqna~g#T}F9)%G&|7Mwgn-DD$St7Dbq(x+f$SRRF zBI`s>6CsDo&ww=R{2cMh&(=oiO~}->=htXRDdxMxy-MUfk=Ka4PUHfSi$vZaLRXW& zN#rsS@<18+F}QSj;H=J)!Xr544oHfdz^Ba1k6Jj-xAF(D+ql9m_AhLg=}Ea=NnAYYO45}j zATPrmRb*LK;DV~MDh}}f0v>f$U{n1^u)UA*4BK6W<7wFNq*P;g#HpGRdcs@*=Il{d zQ;)iu!d%ZW*N_}fUdZ$Cx3R+Rsmql0o@$H?w}D9BAlq#qXKV2A_AufhYbYxh{HOR! zvzl5gYR5>Y`-2y98&i+n2LBF;^A3^!wZB+>!e5N8?nt`q4v)KxuKuoHqW`~K}=&>_|PK8JhI_)m!Z3?#L)%sREY0l$@& zkWXV;jLbYtO%Zec3!3@ZPb!X_CC8T{jr_ErP~>V=vs$ee4c#z|PYtX7i5f>X?~d|v zJc^N(A9kfq-lqaaY9rqt@{r%aM(GK>Z|MUY@_oLA#BmYd wv;4OD)TTsBolSgb!}PQu;y&L|IG!dz>b{z3=rsh|>`1-}KVCLm(?u@$Uz50o_W%F@ literal 0 HcmV?d00001 diff --git a/Task_2/tests/__pycache__/test_user_login.cpython-310-pytest-8.3.3.pyc b/Task_2/tests/__pycache__/test_user_login.cpython-310-pytest-8.3.3.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6705f78fae5e7761d74c9d56edd00599c23e4cb GIT binary patch literal 3940 zcmcInOK&5`5uO)^)R5F$lw_~HjDrA6z#&CS+6QcHcH`H@*w|V55MBmj_DCA-ki&Ej zy_PZ)1d($w5MXmjE{kAw6#NTv%PGij=o}Itx%dy{AOu0a>KSTD@5*+tFoF5HtGikK zb#+ZuO;oKq8h-!z{U3rQOVj>I!sM?2;SL_L3t$@4L#?Z;*65ptrfYqxThOx^yK7^{ z2#ftvx1?*n{bYujr#f1PS*QAY8Y?jSGmY6N#)*EScgsw_uQiHaLbGY9{(2j+dCsT-SisIu7*MVD@i~ z)Jm*FJuR?eYA1!neqf}x(PxGm85SGfHO^BK3_C?3z_R?Im% zd0Wog3OFx5w!w3jEwSZfR&k!oInRBSGk80A%6O`2g{`FX>I`-=pV*&h=|Zv~{;k;7 zk_E6`rEy}bc+F$4rxyL&1?zu2!A4<-w#&DNh~@<{Qj8DBb{G+ zaXwQw`%>xzuo>NMQa&;0PI2Rl%uJV(#bgOLzMOe#x{@p>EAYr#QUj+yDfXqL21~w7 zGt>8u6~CNdeew+Jv0q+x_to477V~x~Z;>&Wv{STlU3y#Yq@W%eVuRM zRu=IfPNmCuYUv8o@J3&~CyPVxD2zOIUT%4#_@EV1z>o#M?**YO4LuNJG&i@a0csZ(#GA(|rg;*oHB5%Zn2zLQOC zH-xmfFNSBPG_j7LL$G~5i(P#ltN-7?G7R33MKS92d?9wRzYz#*$w>dr@s{Z1TW*bq z(8-4`Ax6h=(&oM&JLxsjcD*4Qpcn|Xce~vXXEtA=lP?2^$QHqMf}7GB9<|%&a}#Xa zn{+A+Z_2Wl(TyJX14L*e03N?in?P$l7^od!gv?;*2=+@2SPF87DL7xjl8_hkjs?#H7bjDvxYb{JuWkZZ0uh(;k(OWpl2`q&HIf!Fut zj4Ql7pEStXyUI0#Xz&i_5tmEuUc~!e?E0S$LvP^4nBf&VjR~)6tV>Jy;U1@2K+bW0 zKM*k#F_*56+jR5=nko~c%#YfW!q%h!pQ2^ihSw*Bo0H47Cxsi?VRO|RlT){{sZ3qF zGbK&!JN2)8U9PY_rG9ft+MbebPDwefZ12uSHkV7CGmU=;qny9rqEbV&$X2blqu!{G z!bY?{;L)Mqi$(os-hla^);~Ck528V9*AoxiPK&NxC{#9fRXl4Bk7Qjrgc5OCxQAe{ zpDoD)3&l1u4=CwZ^v{hy>!0h7^#AH>+HrHL>}h_JqN$RI6q06D5^WgIFNqk+tgkJH zev+r2%gUjRapK|Im!_TXsvJ5~+%7MNE|Mbu|5M@%l|xfWe`TVat7YXJ5<5~q(l(Wi zRBTc~xB8rd?(Y}Y{nw?|y)3D}&*Uf;$9v34TmK?;U@e;2nZ@ z3Em^15R<`A(UU)%c&i@<@qwG!xQAeks1qPTATPutJ`nEKMw?0kL1r)MYbsX!ML&My z(kSuG`tCJsS#njjab4-SZa-q9&_}=Gx<4OzA>|?0<%k~|zfbTH!P7IS9vy_^Q&c14 z2!fI}Yc4u!tWlAran9pgn3L;nmL;26Fh}NUa{nO@Vr0CFAz94Fc!&ODBbSblLSI52 zqYqA`QNE8L-NdJ$+f$#Oili*=`6&9ZvLND!A1MmY<10&VW@o((*UfDDnpQDNW=XH< F{{!ojM{588 literal 0 HcmV?d00001 diff --git a/Task_2/tests/__pycache__/test_user_update.cpython-310-pytest-8.3.3.pyc b/Task_2/tests/__pycache__/test_user_update.cpython-310-pytest-8.3.3.pyc new file mode 100644 index 0000000000000000000000000000000000000000..256c0cadbffb6c494917b9ff18f7f94bf3772424 GIT binary patch literal 4180 zcmcgvOOG5$5w5IvS3job;jzc;E{$P@TZ?+!Gky#2+U$$xU|}2N7E)2}teNR{byt&F zZF`#P3$sWF$znOJkbLm$ZO+^g;(+)898gJ|IQha47?#HuSv7W#H6S?bwp3q5W@Kf4 z5t$hg9apQKhTr#p{Za3?wx<1+8nZtOjq7;iBLLSpi?j|?Z+&3s8q)@5$6~q0?$}D> zbR4|($Q_hAC8aYWZ&2=(m25_pLA6sI)H*e$h4#}qZtXF=>)hUB?`z!Q?gtuoclBMi z%R2L%-O`$+XINd^XtK=x?kMTS!ytlOzmtZ17yx4H9y3Cg9JvF=M_9gHh+PmS|<8KzaT+U-y##4TqwncM7z z5&z0CeCR(2qH)+XV3(zA*nngXgF!f{}svEZGBLUXg|Xs@kjMlkAS zmYO#!J)gKsn|t^>3894NZ9MXfp=qhk*@`x`QiJRFbx}z)ZtSulOUg;I`G^G|H>oaYOCF`ZYO7Yfb`FLMU(DxMmiIylbqUz*{s75o|T|B%Tg zWx)w$!SXQ{JbP}z-#%jt41V%~_8}9$BwP3r&eCGKi2Ybfmr|T0*i=nzoRL~ugB?Fp zb~tGbJ8_CMv=fT)V&Tsv_;cm()ZmLBD9emJhBbbuMncBPSy3`}gP)!mJyfF+VlY~& z5s)$ZH2>Ta3wv~ezrtTlPpCawF7{}7W{(!JFH5vXI78Yk1U%f`*EX_B(Cvm&`bm60 z9102@nKM=qh97vV6pU6W($Kx_%XpYMd1#W){)nOb>_ESEZJ$lnUq3tAS!+t~Cxy_s z)*$IzQ?_IhBxC7!V;*|b#4?= zft}(s`2|GI6I>*?oSCDYcKcv%hHZPDtU~vCW-6z#0~?bKUbhZxoj0TLTjdr+{nT1)=DI!86`~|HvD~hQYz2LSC@)m~N31+63$3i{zp&5xfqV z9B~OwfO5&XW=&AI&a6?8bhm{`a(U)#WZw1BPJ&G02O^vIyFnEBA{>csJQxKc%qmd( z_r|>_=?!IOM=?go?36FJ<8j2*P=70m?*)-h2_`G~GT01hhOBl&ohYQ;cZG;Ww&-uh zVh|*L_-GUb!+;X9m?uI84ny-~X38+y6lLm}6X8}*CYXr(w5Q4mqN*&(@5~#J1!bSC zOce9;(4K9apKYw?jhw;7*~aDBVHai_mvZZisn5--uH>qGy7tN|0FJV1paS8s~AA9fSjxQp5(eAKwPlWfPs)!Tu* z@2{=W21

TYer&TBDup4Yjvo0pQk`*eUi4{des5 z%+vqG%zsU;9<4T7|Hrgch^V_USso8nou!JB>pRMlmKZ}#w`Nklqtr!hBB;Xb%;$YG zRY{l5@Zqlx;YInOqx@ifRGX=u8a>AK$NJPv%|4r2+(7wZsl$M8F+YT)5ojC^}RUC?zhmr4*&d^Wwrn z0&uXt+4oQwS^e_V;U0<{6gNm{C{3m)P0|XA3nVxBF}^oYtW?3RO8qZ!dkB5bEmb^@ z8Qvc{^jD0l84t+aZ%%QRJth6a|LIV9!EKYw}+>!5?JL3|M?mI3psxzW$;Ie zHLxammn>L3#)3aXpIh)3#qKk+K&9WM4ME4I$yD&^{fZ%wETKaz6HrJIrwCplc$MHa zz*6ZO6oFp^+}tDAsP9dJw+OBi+#vWG0agFv z9fEfW-XnOQfI?ah--48_9UC^{F|yB*fF#0XEQZoQf38h#mQ)}u)F>eRflY4wFQMqa z&biSnXRfajmhWet?+;==jzY*4-~aJAh$xkzW#_3eGY5gVpOuji(Vrk}h64X|khf$a z1cHtxzD=+}@WNsxk=eolP?VA_fUDVt&TOXtQ!nW{(9}P%t;*l+g`(G0y@vh|-K>A2 zzHKgK?qLpAo0+ZnIki@voRCRdB77)%2{Q2WuFNU=)KSQ6A=^rr?z1TwXY2kmL-&OyOb3?1NZ?d%=MkA StellarApiClient: + return StellarApiClient() + + +@pytest.fixture +def unique_user_payload(): + user = build_unique_user() + return {"email": user.email, "password": user.password, "name": user.name} + + +@pytest.fixture +def registered_user(api: StellarApiClient, unique_user_payload): + """Creates a user before test and deletes it after test.""" + with allure.step("Register user"): + resp = api.post("/auth/register", json=unique_user_payload) + assert resp.status_code == 200, f"Failed to register user: {resp.status_code} {resp.json}" + assert resp.json.get("success") is True + + access_token = resp.json.get("accessToken") + refresh_token = resp.json.get("refreshToken") + + yield { + "payload": unique_user_payload, + "access_token": access_token, + "refresh_token": refresh_token, + } + + # cleanup (best-effort) + if access_token: + with allure.step("Delete user (cleanup)"): + api.delete("/auth/user", headers={"Authorization": access_token}) diff --git a/Task_2/tests/helpers.py b/Task_2/tests/helpers.py new file mode 100644 index 000000000..2eb086c16 --- /dev/null +++ b/Task_2/tests/helpers.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +from typing import Dict, List +from uuid import uuid4 + +import allure + +from stellar_burgers.api_client import StellarApiClient + + +def get_ingredient_ids(api: StellarApiClient, limit: int = 2) -> List[str]: + with allure.step("Get ingredients list"): + resp = api.get("/ingredients") + assert resp.status_code == 200 + assert resp.json.get("success") is True + data = resp.json.get("data") or [] + ids = [item["_id"] for item in data if isinstance(item, dict) and "_id" in item] + assert len(ids) >= limit, "Not enough ingredients returned by API" + return ids[:limit] + + +def auth_header(access_token: str) -> Dict[str, str]: + return {"Authorization": access_token} + + +def random_email(prefix: str = "autotest") -> str: + """Generate a unique email to avoid collisions on a shared test stand.""" + return f"{prefix}_{uuid4().hex}@yandex.ru" diff --git a/Task_2/tests/test_orders.py b/Task_2/tests/test_orders.py new file mode 100644 index 000000000..992a10a63 --- /dev/null +++ b/Task_2/tests/test_orders.py @@ -0,0 +1,62 @@ +import allure + +from stellar_burgers.api_client import StellarApiClient +from tests.helpers import auth_header, get_ingredient_ids + + +@allure.feature("Orders") +@allure.story("Create order") +class TestCreateOrder: + def test_create_order_with_authorization_and_ingredients_success(self, api: StellarApiClient, registered_user): + token = registered_user["access_token"] + ingredient_ids = get_ingredient_ids(api, limit=2) + + resp = api.post("/orders", json={"ingredients": ingredient_ids}, headers=auth_header(token)) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert resp.json.get("order", {}).get("number") is not None + + def test_create_order_without_authorization_and_ingredients_success(self, api: StellarApiClient): + ingredient_ids = get_ingredient_ids(api, limit=2) + + resp = api.post("/orders", json={"ingredients": ingredient_ids}) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert resp.json.get("order", {}).get("number") is not None + + def test_create_order_without_ingredients_returns_400(self, api: StellarApiClient): + resp = api.post("/orders", json={"ingredients": []}) + + assert resp.status_code == 400 + assert resp.json.get("success") is False + assert resp.json.get("message") == "Ingredient ids must be provided" + + def test_create_order_with_invalid_ingredient_hash_returns_400(self, api: StellarApiClient): + # Current API version validates ingredient ids and returns 400 for incorrect values. + resp = api.post("/orders", json={"ingredients": ["invalid_hash"]}) + + assert resp.status_code == 400 + assert resp.json.get("success") is False + assert "incorrect" in (resp.json.get("message") or "").lower() + + +@allure.feature("Orders") +@allure.story("Get user orders") +class TestGetUserOrders: + def test_get_orders_authorized_user_success(self, api: StellarApiClient, registered_user): + token = registered_user["access_token"] + + resp = api.get("/orders", headers=auth_header(token)) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert "orders" in resp.json + + def test_get_orders_unauthorized_user_returns_401(self, api: StellarApiClient): + resp = api.get("/orders") + + assert resp.status_code == 401 + assert resp.json.get("success") is False + assert resp.json.get("message") == "You should be authorised" diff --git a/Task_2/tests/test_user_create.py b/Task_2/tests/test_user_create.py new file mode 100644 index 000000000..b1ca66d6d --- /dev/null +++ b/Task_2/tests/test_user_create.py @@ -0,0 +1,47 @@ +import allure +import pytest + +from stellar_burgers.api_client import StellarApiClient + + +@allure.feature("User") +@allure.story("Create user") +class TestUserCreate: + def test_create_unique_user_success(self, api: StellarApiClient, unique_user_payload): + resp = api.post("/auth/register", json=unique_user_payload) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert "accessToken" in resp.json + assert "refreshToken" in resp.json + assert resp.json.get("user", {}).get("email") == unique_user_payload["email"] + + # cleanup + access_token = resp.json.get("accessToken") + if access_token: + api.delete("/auth/user", headers={"Authorization": access_token}) + + def test_create_user_that_already_exists_returns_403(self, api: StellarApiClient, registered_user): + payload = registered_user["payload"] + + resp = api.post("/auth/register", json=payload) + + assert resp.status_code == 403 + assert resp.json.get("success") is False + assert resp.json.get("message") == "User already exists" + + @pytest.mark.parametrize("missing_field", ["email", "password", "name"]) + def test_create_user_missing_required_field_returns_403( + self, + api: StellarApiClient, + unique_user_payload, + missing_field: str, + ): + payload = dict(unique_user_payload) + payload.pop(missing_field) + + resp = api.post("/auth/register", json=payload) + + assert resp.status_code == 403 + assert resp.json.get("success") is False + assert resp.json.get("message") == "Email, password and name are required fields" diff --git a/Task_2/tests/test_user_login.py b/Task_2/tests/test_user_login.py new file mode 100644 index 000000000..264afcfee --- /dev/null +++ b/Task_2/tests/test_user_login.py @@ -0,0 +1,25 @@ +import allure + +from stellar_burgers.api_client import StellarApiClient + + +@allure.feature("User") +@allure.story("Login") +class TestUserLogin: + def test_login_existing_user_success(self, api: StellarApiClient, registered_user): + payload = registered_user["payload"] + resp = api.post("/auth/login", json={"email": payload["email"], "password": payload["password"]}) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert "accessToken" in resp.json + assert "refreshToken" in resp.json + assert resp.json.get("user", {}).get("email") == payload["email"] + + def test_login_with_wrong_credentials_returns_401(self, api: StellarApiClient, registered_user): + payload = registered_user["payload"] + resp = api.post("/auth/login", json={"email": payload["email"], "password": "wrong_password"}) + + assert resp.status_code == 401 + assert resp.json.get("success") is False + assert resp.json.get("message") == "email or password are incorrect" diff --git a/Task_2/tests/test_user_update.py b/Task_2/tests/test_user_update.py new file mode 100644 index 000000000..b12681dec --- /dev/null +++ b/Task_2/tests/test_user_update.py @@ -0,0 +1,57 @@ +import allure +import pytest +from typing import Optional + +from stellar_burgers.api_client import StellarApiClient +from tests.helpers import auth_header, random_email + + +@allure.feature("User") +@allure.story("Update user data") +class TestUserUpdate: + @pytest.mark.parametrize( + "field,new_value", + [ + # Email must be unique on a shared stand. + ("email", None), + ("name", "Updated Name"), + ("password", "UpdatedPassword123"), + ], + ) + def test_update_user_with_authorization_success( + self, + api: StellarApiClient, + registered_user, + field: str, + new_value: Optional[str], + ): + token = registered_user["access_token"] + value = random_email("updated") if field == "email" else new_value + resp = api.patch("/auth/user", json={field: value}, headers=auth_header(token)) + + assert resp.status_code == 200 + assert resp.json.get("success") is True + assert resp.json.get("user") is not None + + if field in ("email", "name"): + assert resp.json["user"].get(field) == value + + @pytest.mark.parametrize( + "field,new_value", + [ + ("email", "unauth_email@yandex.ru"), + ("name", "Unauth Name"), + ("password", "UnauthPassword123"), + ], + ) + def test_update_user_without_authorization_returns_401( + self, + api: StellarApiClient, + field: str, + new_value: str, + ): + resp = api.patch("/auth/user", json={field: new_value}) + + assert resp.status_code == 401 + assert resp.json.get("success") is False + assert resp.json.get("message") == "You should be authorised"