-
Notifications
You must be signed in to change notification settings - Fork 493
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
There should be a way to define the target from a cmdline argument or an env variable #23
Comments
This would be awesome. How about a command line switch to minigun run --config 'target=http://app.local' myscript.json or like this to override a default header: minigun run --config 'defaults.headers["x-custom-header"]=1234567890' myscript.json A perhaps cleaner alternative is to use JSONPath to select the path to be modified (since JSONPath is already used for parsing and capturing responses inside scenarios). Something like this: minigun run --config '$.target' 'http://app.local' myscript.json # where $ is the config object Thoughts? |
minigun run --config '<override target>' --config '<override headers>' my script.yml So unless we go with another cmdline args parser, we will only be able to override one option with this interface. I only need to override the target, I'm not sure if overriding other things is really all that necessary. The reason I need to override the target is because multiple machines are running the same API, and I routinely need to bench them and compare them. Right now, it's very hard to script this. If you think this scenario might not be that uncommon, then maybe: minion run myscript.yml optional_target or minigun run -p target myscript.yml These would override the target on the script and can also make them not necessary i.e. you could define them in either place. What do you think? |
Can we make it |
Enable SSL + Certificate Authority self-signed
Any guidelines for a PR on this?
The text was updated successfully, but these errors were encountered: