Commit graph

65 commits

Author SHA1 Message Date
bom
09139ba1b1 fixed last test 2022-01-19 17:19:05 +01:00
bom
e92972db08 hopefully fixed last test 2022-01-19 17:15:59 +01:00
bom
7821fb431a fixed one apply test for 0.x 2022-01-19 17:06:14 +01:00
bom
2d57a67c63 fixed apply tests for 0.x 2022-01-19 16:51:07 +01:00
bom
816b76070e fixed last test 2022-01-19 16:33:06 +01:00
bom
4483f54987 fixed a plan test 2022-01-19 16:26:50 +01:00
bom
fd959877a7 fixed last apply test 2022-01-12 14:32:47 +01:00
bom
f8f3e41529 fixed apply tests 2022-01-12 14:28:54 +01:00
bom
e3e5ad775f fixed another test_cmd case 2022-01-12 13:58:52 +01:00
bom
021db11acb fixed plan cmd test 2022-01-12 13:55:11 +01:00
bom
46b20fe086 removed obsolete tests 2022-01-12 13:28:04 +01:00
bom
3d2c7ae396 fixed output tests 2022-01-12 13:07:46 +01:00
bom
412ea860f8 updated tests with global_opts 2022-01-12 10:34:35 +01:00
jem
f913b1d6b7 default for compatibility 2021-11-05 13:27:25 +01:00
jem
ee097cb230 cmd now works for 0.13 again 2021-10-23 16:22:59 +02:00
jem
5d1ee33790 wip 2021-10-23 15:42:43 +02:00
jem
607cdaf408 adjust cmd to new 1.0 release 2021-10-23 15:37:29 +02:00
jem
40a7cba90d post-fork-work 2021-06-25 13:36:20 +02:00
Francois Lebreau
7080f38a93 Support Terraform 0.14 2021-02-28 13:44:58 +00:00
Francois Lebreau
785e9a3ce7 Fix tests 2021-01-21 10:07:00 +00:00
aubustou
6ea1320bef Fix unit tests for Terraform 0.13 2020-10-21 00:08:58 +02:00
aubustou
151c5dc92a Add pre-commit and apply Black format 2020-10-20 00:30:02 +02:00
aubustou
ffd9e1de2a Fix tests 2020-10-20 00:24:33 +02:00
BNMetrics
09fdcf2f11 fixed flaky tests 2019-06-25 22:12:41 +01:00
BNMetrics
c0ff5bf65a fixed terraform version and python version compat issue in test 2019-06-25 21:33:38 +01:00
BNMetrics
f39b7e237e fixed a bug with var-file argument, allow workspace commands to pass flags and options 2019-06-25 19:53:39 +01:00
DJDavisson
c000d00504 Fixing tests. 2019-05-20 11:34:42 -07:00
DJDavisson
01e3dbb05a Removing optiosn and args pass from state stuff, state stuff doesn't take options or args. 2019-05-07 12:11:28 -07:00
DJDavisson
3ddab331f0 Adding tests, 2 are failing, looking into how to handle. 2019-05-07 11:39:07 -07:00
Sam McKelvie
99c67e5fe5 Address pull request feedback 2017-10-16 09:03:45 -07:00
Sam McKelvie
4945f4591d Make tests pass with old and new terraform 2017-10-13 14:20:36 -07:00
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
Austin Page
825fa0e54f
Adding init command and support for backend terraform state files 2017-08-23 11:35:33 -05:00
beelit94
4f20dfab75 handle space or special characters in windows & linux 2017-08-08 14:58:33 -07:00
beelit94
4c65c1bbbe add compatabilty for 0.10.0 2017-08-04 16:17:52 -07:00
beelit94
3c700b9830 add compatabilty for 0.10.0 2017-08-04 16:06:55 -07:00
beelit94
3b5fe8203e clean up files 2017-08-04 16:02:49 -07:00
beelit94
965a39e3bf 1. test with more felxible string order
2. test with latest terraform
2017-08-04 15:36:11 -07:00
beelit94
12d57862ed add more parameter test for output 2017-08-04 14:14:57 -07:00
beelit94
4709bd069a fix test code 2017-05-09 17:51:52 +08:00
beelit94
cc24b9d3e1 remove file 2017-05-09 17:48:02 +08:00
beelit94
b922750de0 use log to test 2017-05-09 17:47:36 +08:00
beelit94
3f18abb40e fix tests with given environment variables 2017-05-09 16:05:48 +08:00
beelit94
733b8006c5 adding readme and test 2017-05-09 15:48:28 +08:00
beelit94
38222a42f5 fix terraform import cmd is a reseved word of python 2017-05-09 15:39:09 +08:00
beelit94
d25f2eff23 fix the test 2017-01-04 23:46:15 +08:00
beelit94
a2d3baaf80 purposely fail the test for testing notification 2017-01-04 15:52:56 +08:00
beelit94
6fc11b313f python-terraform-3 Refactor readme and how default value being passed
1. refactor default values
2. add plan method
2017-01-04 13:21:30 +08:00
beelit94
144b4c61c4 python-terraform-3 Refactor readme and how default value being passed
reorder readme, refactor name
2017-01-03 23:09:23 +08:00
Freddy Tan
df78cfe9be fix teardown 2016-12-21 00:55:55 +08:00