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

Getting variable binds from a file #226

Open
hardikhhh1 opened this Issue Jan 25, 2017 · 4 comments

Comments

Projects
None yet
5 participants
@hardikhhh1

Is it possible to get variable_binds from a file?

@mmadsen

This comment has been minimized.

Show comment
Hide comment
@mmadsen

mmadsen Jun 10, 2017

There seems to be a command line argument for this (--vars) but there is no documentation on how the binding works in the test configurations, or what exact format is expected in the YAML for variables passed to --vars. Is this ready for use, or still in progress? This is exactly what is needed for having one set of test configurations that can be used easily across multiple deployment stages (dev, staging, production).

mmadsen commented Jun 10, 2017

There seems to be a command line argument for this (--vars) but there is no documentation on how the binding works in the test configurations, or what exact format is expected in the YAML for variables passed to --vars. Is this ready for use, or still in progress? This is exactly what is needed for having one set of test configurations that can be used easily across multiple deployment stages (dev, staging, production).

@magthe

This comment has been minimized.

Show comment
Hide comment
@magthe

magthe Mar 15, 2018

It's apparently supposed to be a YAML dictionary, but nothing I've tried is accepted. It would be nice with an example using this.

magthe commented Mar 15, 2018

It's apparently supposed to be a YAML dictionary, but nothing I've tried is accepted. It would be nice with an example using this.

@snigdhitha

This comment has been minimized.

Show comment
Hide comment
@snigdhitha

snigdhitha Mar 15, 2018

I need to pass some dynamic variables to the YAML file through cli. I do not understand how to do it.

I need to pass some dynamic variables to the YAML file through cli. I do not understand how to do it.

@joseph-cloudthing

This comment has been minimized.

Show comment
Hide comment
@joseph-cloudthing

joseph-cloudthing Apr 4, 2018

Looking at the source it seems to use yaml.safe_load() and so you'd pass it a string, not a file?

I'm using something like this, where $adminpassword is set as an environment variable.

--vars="{\"adminpassword\": \"$adminpassword\"}"

Looking at the source it seems to use yaml.safe_load() and so you'd pass it a string, not a file?

I'm using something like this, where $adminpassword is set as an environment variable.

--vars="{\"adminpassword\": \"$adminpassword\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment