-
Notifications
You must be signed in to change notification settings - Fork 2.6k
test: improve typescript-based test framework #12226
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
url: `http://127.0.0.1:1984/${uri}`, | ||
data: body, | ||
headers: { | ||
'X-API-KEY': 'edd1c9f034335f136f87ad84b625c8f1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we pick it from apisix config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be. But the hardcoded ones seem to be sufficient for now.
This is because this server is spawned by test nginx and not by the new test framework itself (it doesn't even use the standard APISIX startup process), which sucks and will be improved later so that ts test can autonomously start or stop APISIX instances (right now it has to rely on a xxx.t "shell" file to boot)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM
Description
Split from #12196, modifications in functionality and testing frameworks were introduced there, making those PR not pure.
First we can merge this PR, after that rebase that PR, we can make that PR to focus on the function, also easy to backport.
Checklist