Skip to content

feat: support built-in variables in response_headers in mocking plugin#10872

Merged
shreemaan-abhishek merged 5 commits into
apache:masterfrom
MonkeyDLufy:master
Jan 31, 2024
Merged

feat: support built-in variables in response_headers in mocking plugin#10872
shreemaan-abhishek merged 5 commits into
apache:masterfrom
MonkeyDLufy:master

Conversation

@MonkeyDLufy

@MonkeyDLufy MonkeyDLufy commented Jan 29, 2024

Copy link
Copy Markdown
Contributor

Description

support built-in variables in response_headers in mocking plugin

Fixes #10868

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)

@MonkeyDLufy MonkeyDLufy changed the title feat: support built-in variables in response_headers in mocking plugin #10868 feat: support built-in variables in response_headers in mocking plugin Jan 29, 2024
@MonkeyDLufy

Copy link
Copy Markdown
Contributor Author

@shreemaan-abhishek hi, did I handle it correctly? Is there anything else I need to do?

@shreemaan-abhishek

Copy link
Copy Markdown
Contributor

Good job, can you add test cases as well?

@MonkeyDLufy

Copy link
Copy Markdown
Contributor Author

test cases are commited.

Comment thread apisix/plugins/mocking.lua
Comment thread apisix/plugins/mocking.lua
@shreemaan-abhishek
shreemaan-abhishek merged commit 43a567c into apache:master Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support built-in variables in response_headers in mocking plugin

4 participants