Skip to content

dan-brodie/locust-endpoints

Repository files navigation

Code style: black

Locust

Locust is a load testing suite for python.

This example repo shows you how to test an endpoint which requires authentication with a Google Service Account.

Running

This repo uses poetry - use the provided vscode devcontainer - further details here https://python-poetry.org/docs/basic-usage/ A dockerfile is provided also. You will however need your GOOGLE_APPLICAION_CREDENTIALS environment variable to be accessible for secret manager to work.

poetry run locust --host=https://sample-l6wc7ausiq-ew.a.run.app

Installing

poetry install

Testing

poetry run bandit .
poetry run black .

Sample

The Sample folder contains an endpoints spec which can be used with the google cloudrun/endpoints demo instructions https://cloud.google.com/endpoints/docs/openapi/set-up-cloud-run-espv2

About

Testing SA / Jwt Secured Endpoints with Locust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published