This repository is for developing and executing load testing scripts against the new DriveBC.ca site.
Note that load shaping is being used in the load script, so we don't need to pass in users, spawn rate, or run times.
Basic CLI command structure:
locust -f <testfile>.py -H <target URL(:target port)>locust -f frontend.py -H https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.calocust -f locustfiles -H https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.calocust -f locustfiles --headless -H https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.ca --html ./reports/frontend_report.htmlor:
export TARGET_HOST="https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.ca/"locust -f locustfiles --headless -H $TARGET_HOST --html ./reports/frontend_report.htmllocust -f locustfiles --H https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.ca/ --headless --master --expect-workers=8 --html ./reports/frontend_report.htmlor:
export TARGET_HOST="https://drivebc-frontend-c59ecc-test.apps.silver.devops.gov.bc.ca/"locust -f locustfiles -H $TARGET_HOST --headless --master --expect-workers=8 --html ./reports/frontend_report.htmllocust -f locustfiles --headless --workerTo set this up in a new OpenShift environment, ensure you have the following
- ConfigMap
- Deployment
- Service
- Route
- Network Policys