-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add dataBuffer to response to be available in test scripts #1881
base: main
Are you sure you want to change the base?
Add dataBuffer to response to be available in test scripts #1881
Conversation
This also needs to be added to CLI: |
run-single-request.js doesn't seem to do the |
Yes, but this may also be another problem, if it's not the same in electron & CLI. But I can't test this right now, I look into it on the weekend. |
# Conflicts: # packages/bruno-electron/src/ipc/network/index.js
# Conflicts: # docs/readme/readme_cn.md # docs/readme/readme_fr.md
# Conflicts: # docs/readme/readme_fr.md # readme.md
Is some decision planned whether to expose the response data buffer in GUI tests (like res.getDataBuffer() in this PR) or will the CLI, GUI and extension be unified (eg. all returning the response as a data buffer, likely a breaking change)? |
# Conflicts: # packages/bruno-js/src/bruno-response.js
aa4f663
to
a075af2
Compare
Description
I have a use case for accessing the dataBuffer in tests to validate a binary response from DNS over https services.
Since the dataBuffer was already exposed some time ago for displaying preview images or such, these trivial changes made it possible to access the binary buffer in tests to parse DNS packets.
I have been able to easily merge these changes and build the app locally, but now my local build does not have the new Golden key stuff, so it would be nice to have this or similar in the main branch.
Use case
Contribution Checklist: