Application for testing the API Service
- Create a new entity
POST/api/create
- Delete entity
DELETE/api/delete/{id}
- Get a single entity
GET/api/get/{id}
- Get a list of entities
GET/api/getAll
- Patch an entity
PATCH/api/patch/{id}
The Python packages can be installed by running
python3 -m pip install -r requirements.txt
docker compose up --build -d
running in test-service/
The allure-pytest is used for visualizing the results of a test run.
pytest --alluredir=allure-results --clean-alluredir
os_platform = Linux
os_release = 6.8.0-40-generic
python_version = Python 3.10.15
allure generate allure-report --clean --single-file allure-results
import webbrowser
webbrowser.open('index.html')allure-report/index.htmlallure reportallure-results/test results directory
Note: These directories will be created after runningrun_task_api.py
service_api/API settingstest-service/API Servicetests/test modulesrequirements.txtrequired packagesrun_task_api.pyAPI testing scriptrun_test_service.pyAPI Service running script