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
It would be nice to be able to access the options defined in a server definition inside, say, http get in order to construct the path of the request. Would allow some reuse of tests by parameterizing them with server options. Or maybe it's already possible but I couldn't figure out how. Example:
server "some server", :path => "/somepath"
http do
get options[:path] do
The text was updated successfully, but these errors were encountered:
Because of the way auger works, the cfg file code is evaluated at configuration time, and generates a configuration that is then run across multiple servers. So something like this won't work directly. The options passed to 'server' are specific options understood by the connection plugin (e.g. port, timeout, for http plugin).
What you want to do can be achieved using roles, e.g.:
It would be nice to be able to access the options defined in a server definition inside, say, http get in order to construct the path of the request. Would allow some reuse of tests by parameterizing them with server options. Or maybe it's already possible but I couldn't figure out how. Example:
The text was updated successfully, but these errors were encountered: