Commit graph

50 commits

Author SHA1 Message Date
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
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
Freddy Tan
839b30d72a add test case for options 2016-12-21 00:43:44 +08:00
Freddy Tan
d2440a6b21 fix test working directory 2016-12-20 19:58:04 +08:00
Freddy Tan
2d63fa8716 1. let variables able to accept map and list
2. refactor to be able to accept command as a instance attribute
3. add test cases
2016-12-20 18:53:01 +08:00
Freddy Tan
bfd9b3a8ab python-terraform-1 Make option with bool value/ more sense for the caller 2016-11-24 15:13:43 +08:00
Freddy Tan
bd1d08af71 1. update travis deploy
2. update README to adapt change
3. use IsFlagged class for flag option
4. add destroy method
2016-11-19 18:24:33 +08:00
Freddy Tan
7b9a0491ca 1. remove aws case
2. update travis method
2016-11-18 17:08:10 +08:00
Freddy Tan
b739004102 add travis 2016-11-18 15:46:05 +08:00
Freddy Tan
2ff59f3630 1. add test cases, try tdd
2. refactor to more generic method instead of aws method
3. ready for release to pypi
2016-11-18 15:35:14 +08:00
Freddy Tan
4ef52dca44 refactor 2016-02-25 17:22:11 +08:00
Freddy Tan
4ebdc607dc update 2015-12-31 15:15:51 +08:00
Freddy Tan
02a8de5618 move test folder 2015-12-31 12:34:35 +08:00
Renamed from test_terraform.py (Browse further)