Skip to content
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

Environment variables are not saved to the disk when using bru.setEnvVar() #2160

Open
2 tasks done
gcharondkt opened this issue Apr 24, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@gcharondkt
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

  1. Create an environment
  2. Run the request
  3. Open the variable : the "key" is there
  4. Quit Bruno and reopen it
  5. There is no "key" anymore

.bru file to reproduce the bug

meta {
name: test
type: http
seq: 2
}

get {
url: http://google.fr
body: none
auth: none
}

tests {
bru.setEnvVar("key", "value");
}

Screenshots/Live demo link

N/A

@gcharondkt gcharondkt added the bug Something isn't working label Apr 24, 2024
@busy-panda
Copy link

It should be "bru.setEnvVar" in the title (not bru.setProcessEnv) I guess.

Indeed, it does not persist the change in environment variables, I guess it should.

@gcharondkt gcharondkt changed the title Environment variables are not saved to the disk when using bru.setProcessEnv() Environment variables are not saved to the disk when using bru.setEnvVar() Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants