You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Adding environment variable support using helper functions #643
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.
Is your feature request related to a problem? Please describe.
For regression testing and authenticated tests, it's helpful to read system variables to replace values into templates at run time.
POST /apps HTTP/1.1Host: 0.0.0.0:8000User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 YaBrowser/19.6.0.1583 Yowser/2.5 Safari/537.36Connection: closeContent-Length: 44Accept: */*Accept-Language: enAccept-Encoding: gzipusername=admin&password=admin_token
Reacted by geeknik and Mike Santillana
Reacted by geeknik, Dawid, Mike Santillana, Suman Kar and Ayberk ESER
changed the title [-][feature] Adding environment variable support[/-][+][feature] Adding environment variable support using helper functions[/+]on Mar 23, 2021
@toufik-airane this is now supported with the release of v2.4.3, you just need to add -env-vars flag, and the template will read defined variable name from a running system.
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.
Activity
[-][feature] Adding environment variable support[/-][+][feature] Adding environment variable support using helper functions[/+]Mzack9999 commentedon Jun 21, 2021
Support for environment variables is already added in #641, the template would look like the following one:
ehsandeep commentedon Aug 10, 2021
@toufik-airane this is now supported with the release of v2.4.3, you just need to add
-env-varsflag, and the template will read defined variable name from a running system.Example template:-
Additionally, you can also define these variables via CLI as well using the newly introduced
varflag.For example:-
toufik-airane commentedon Aug 11, 2021
Big! 🤩
savushkin-yauheni commentedon Aug 17, 2021
Hi @ehsandeep
Can we use env vars in matchers ?
If no, what do you think about it ?
Thanks!
ehsandeep commentedon Aug 17, 2021
@savushkin-yauheni that is something we intend to support, GH issue for it - #555