Commit Graph

69 Commits (master)

Author SHA1 Message Date
bom 3fd4a72d3d Adjust logic for plan files (version > 1.0.0)
We will no longer try to chdir into files and instead
add them as subcommands.
Includes regression test

Resolves #3 (https://gitlab.com/domaindrivenarchitecture/dda-python-terraform/-/issues/3)
5 months ago
Michael Jerger 1a7955b738 [breaking change] use semantic version string 2 years ago
jerger 9c9d7dc14b add list workspace 2 years ago
bom 7d50eec689 use dda_python_terraform module 2 years ago
bom 09139ba1b1 fixed last test 2 years ago
bom e92972db08 hopefully fixed last test 2 years ago
bom 7821fb431a fixed one apply test for 0.x 2 years ago
bom 2d57a67c63 fixed apply tests for 0.x 2 years ago
bom 816b76070e fixed last test 2 years ago
bom 4483f54987 fixed a plan test 2 years ago
bom fd959877a7 fixed last apply test 2 years ago
bom f8f3e41529 fixed apply tests 2 years ago
bom e3e5ad775f fixed another test_cmd case 2 years ago
bom 021db11acb fixed plan cmd test 2 years ago
bom 46b20fe086 removed obsolete tests 2 years ago
bom 3d2c7ae396 fixed output tests 2 years ago
bom 412ea860f8 updated tests with global_opts 2 years ago
jem f913b1d6b7 default for compatibility 3 years ago
jem ee097cb230 cmd now works for 0.13 again 3 years ago
jem 5d1ee33790 wip 3 years ago
jem 607cdaf408 adjust cmd to new 1.0 release 3 years ago
jem 40a7cba90d post-fork-work 3 years ago
Francois Lebreau 7080f38a93 Support Terraform 0.14 3 years ago
Francois Lebreau 785e9a3ce7 Fix tests 3 years ago
aubustou 6ea1320bef Fix unit tests for Terraform 0.13 4 years ago
aubustou 151c5dc92a Add pre-commit and apply Black format 4 years ago
aubustou ffd9e1de2a Fix tests 4 years ago
BNMetrics 09fdcf2f11 fixed flaky tests 5 years ago
BNMetrics c0ff5bf65a fixed terraform version and python version compat issue in test 5 years ago
BNMetrics f39b7e237e fixed a bug with var-file argument, allow workspace commands to pass flags and options 5 years ago
DJDavisson c000d00504 Fixing tests. 5 years ago
DJDavisson 01e3dbb05a Removing optiosn and args pass from state stuff, state stuff doesn't take options or args. 5 years ago
DJDavisson 3ddab331f0 Adding tests, 2 are failing, looking into how to handle. 5 years ago
Sam McKelvie 99c67e5fe5 Address pull request feedback 7 years ago
Sam McKelvie 4945f4591d Make tests pass with old and new terraform 7 years ago
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...
7 years ago
Austin Page 825fa0e54f
Adding init command and support for backend terraform state files 7 years ago
beelit94 4f20dfab75 handle space or special characters in windows & linux 7 years ago
beelit94 4c65c1bbbe add compatabilty for 0.10.0 7 years ago
beelit94 3c700b9830 add compatabilty for 0.10.0 7 years ago
beelit94 3b5fe8203e clean up files 7 years ago
beelit94 965a39e3bf 1. test with more felxible string order
2. test with latest terraform
7 years ago
beelit94 12d57862ed add more parameter test for output 7 years ago
beelit94 4709bd069a fix test code 7 years ago
beelit94 cc24b9d3e1 remove file 7 years ago
beelit94 b922750de0 use log to test 7 years ago
beelit94 3f18abb40e fix tests with given environment variables 7 years ago
beelit94 733b8006c5 adding readme and test 7 years ago
beelit94 38222a42f5 fix terraform import cmd is a reseved word of python 7 years ago
beelit94 d25f2eff23 fix the test 7 years ago