-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate load tests from OpenAPI Spec + Load-test Uitlity API #8422
Conversation
# Conflicts: # packages/load-testing/readme.md # packages/load-testing/scripts/k6.sh
# Conflicts: # packages/load-testing/readme.md
When running the script I get (From the openAPIGenerator docker container)
Anyways maybe its best to see if others are getting this issue first, or if its just me |
Sorry, previous issue was that server wasn't started. New issue popped up after starting server in dev mode:
|
Ok so it threw the error, but actually wrote the script.js correctly. This PR is absolute 🔥. Will approve this |
Yes it does throw some errors and most are to be expected. They outline in their docs that this is "best effort" generation - not all standards are transferrable to k6 and also some of our setup is non-standard (i.e. adapter pattern over tRPC). The main thing is that it gets the structure right and helps as a reference to build utility functions/tests. |
Link to Issue
Closes: #8418
Description of Changes
LOAD_TESTING_AUTH_TOKEN
)JWT_SECRET
env var required (non-default value) in production environments.Test Plan
pnpm generate-load-tests
script in the rootpackage.json
Deployment Plan
LOAD_TESTING_AUTH_TOKEN
in all Heroku environments before deployment.Other Considerations