dda-python-terraform/test
Sam McKelvie ec826887f5 Add full support for 'output' command, and enable raise_on_error option
Add a general "raise_on_error" option to all terraform commands. If provided and
set to anything that evaluates to True, then TerraformCommandError (a subclass of
subprocess.CalledProcessError) will be raised if the returncode is not 0. The exception
object will have the following special proerties:
    returncode: The returncode from the command, as in subprocess.CalledProcessError.
    out:        The contents of stdout if available, otherwise None
    err:        The contents of stderr if available, otherwise None

Terraform.output() no longer requires an argument for the output name; if omitted, it
returns a dict of all outputs, exactly as expected from 'terraform output -json'.

Terraform.output() now accepts an optional "full_value" option. If provided and True, and
an output name was provided, then the return value will be a dict with "value", "type",
and "sensitive" fields, exactly as expected from 'terraform output -json <output-name>'

Added tests for all of this new functionality...
2017-10-13 13:36:25 -07:00
..
bad_fmt 1. add test case 2016-12-21 00:41:08 +08:00
test_tfstate_file add travis 2016-11-18 15:46:05 +08:00
test_tfstate_file2 Adding init command and support for backend terraform state files 2017-08-23 11:35:33 -05:00
test_tfstate_file3/.terraform Adding init command and support for backend terraform state files 2017-08-23 11:35:33 -05:00
var_to_output 1. let variables able to accept map and list 2016-12-20 18:53:01 +08:00
vars_require_input use log to test 2017-05-09 17:47:36 +08:00
test_terraform.py Add full support for 'output' command, and enable raise_on_error option 2017-10-13 13:36:25 -07:00