A set of load tests for OCM's clusters-service, based on vegeta.
Compile using make
and run as a simple binary:
./cs-load-test --token=<OCM_TOKEN> \
--output-path="/path/to/output/" \
--gateway-url=<api-gateway-url> \
--rate=1 \
--duration-in-min=1 \
- The
token
paramater is an auth token for OCM. One can obtain a token from the following link. - The
gateway-url
parameter is a url to run the tests against, by defaulthttp://localhost:8000
which is the default endpoint for the development environment. - The
rate
parameter indicates how many times per second will the tests (endpoints) be hit. - The
duration-in-min
parameter indicates how long should the test run in minutes. - The
output-path
paramater indicates the path to output the results. For more information about the results format, please see vegeta.