Skip to content

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

Merged
merged 2 commits into from
May 19, 2025

Conversation

bzp2010
Copy link
Contributor

@bzp2010 bzp2010 commented May 18, 2025

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

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 18, 2025
@bzp2010 bzp2010 changed the title test: improve typescript test suite test: improve typescript-based test framework May 18, 2025
juzhiyuan
juzhiyuan previously approved these changes May 18, 2025
Copy link
Member

@juzhiyuan juzhiyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 18, 2025
@bzp2010 bzp2010 requested a review from juzhiyuan May 19, 2025 02:41
url: `http://127.0.0.1:1984/${uri}`,
data: body,
headers: {
'X-API-KEY': 'edd1c9f034335f136f87ad84b625c8f1',
Copy link
Member

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?

Copy link
Contributor Author

@bzp2010 bzp2010 May 19, 2025

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)

Copy link
Member

@SkyeYoung SkyeYoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Others LGTM

@bzp2010 bzp2010 merged commit d63a1a2 into apache:master May 19, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants