Yandex.Tank For Load Testing How To Send Request Body In Post-Method

Yandex.Tank For Load Testing: How To Send Request Body In Post-Method InstallationDockersudo apt-get install dockersudo apt install docker.ioMidnight Commandersudo apt install mcPull an Yandex-tank imagesudo docker pull direvius/yandex-tankCreate work directory with:1) token-file (.txt)2) test-file (.yaml) 3) ammo-file (.txt)Create token-fileuse https://overload.yandex.net/ to receive your tokencreate empty token.txt filesudo touch token.txtfill it with your tokenCreate loadtest.yaml file with test scenariooverload: enabled: true package: yandextank.plugins.DataUploader token_file: "token.txt"phantom: address: [your address: port] ssl: true //for https load_profile: load_type: rps schedule: line(1, 1, 10s) ammofile: ammo.txt ammo_type: uripostconsole: enabled: truetelegraf: enabled: trueCreate ammo.txt file with your post-method[Host: [your address: port]][Connection: keep-alive][X-Real-Ip: 111.111.111.111][Authorization:[your token]][Content-Type: application/json-patch+json][size] /api/[your api]{"[body of your request]"}Run Docker container, change entrypointdocker run \ -v $(pwd):/var/loadtest \ -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent \ --net host \ -it \ --entrypoint /bin/bash \ direvius/yandex-tankIn my case: sudo docker run -v $(pwd):/var/loadtest -v $SSH_AUTH_SOCK:/ssh-agent -v ~/yandex-tank/:/var/dasha/ -e SSH_AUTH_SOCK=/ssh-agent --net host -it --entrypoint /bin/bash direvius/yandex-tank my directory ~/yandex-tankStart your test Within container with yandex-tank command sudo yandex-tank -c /var/dasha/loadtest.yaml -iResultsusing your console using https://overload.yandex.netPublic testsshow my tests only
6