James Bardin
b80ae5e13e
Add source path argument to testLockState
...
The new test pattern is to chdir into a temp location for the test, but
the prevents us from locating the testdata directory in the source. Add
a source path to testLockState so we can find the statelocker.go source.
2017-02-06 13:50:01 -05:00
James Bardin
9fa436e0bd
Add test for locked state in plan
2017-02-03 16:02:22 -05:00
Mitchell Hashimoto
b8c310c61e
command: update test failure to correct message
2017-01-27 21:24:58 -08:00
Mitchell Hashimoto
09e0727d5e
command/plan: revert test change on this output
2017-01-26 14:48:17 -08:00
Mitchell Hashimoto
ad7b063262
command: convert to use backends
2017-01-26 14:33:49 -08:00
Mitchell Hashimoto
36ff8b3c02
command/plan: show a warning when a plan file is given
2016-12-12 10:45:26 -08:00
Mitchell Hashimoto
7f87a0109b
command/plan: user friendly error if plan file given to plan command
2016-12-09 11:34:38 -05:00
Mitchell Hashimoto
609219fc65
command/meta: validate config immediately
...
* config: test for validating multi-vars (passes)
* command/plan: test invalid run
* command/meta: validate module on load
2016-09-03 15:26:49 -07:00
Sander van Harmelen
d97b24e3c1
Add tests and fix last issues
2016-05-26 19:56:03 -05:00
Paul Hinze
ae73aa2fb4
core: Do not persist state after plans
...
This makes the behavior of plans much more predictable, as they no
longer potentially have side effects on shared remote state.
2016-05-23 17:28:40 -05:00
Mitchell Hashimoto
f34ef1f92a
command: compilation works
...
This still isn't ready. But this gets tests passing and compilation
working
2016-05-10 17:03:58 -07:00
Mitchell Hashimoto
35c87836b4
core: Add terraform_version to state
...
This adds a field terraform_version to the state that represents the
Terraform version that wrote that state. If Terraform encounters a state
written by a future version, it will error. You must use at least the
version that wrote that state.
Internally we have fields to override this behavior (StateFutureAllowed),
but I chose not to expose them as CLI flags, since the user can just
modify the state directly. This is tricky, but should be tricky to
represent the horrible disaster that can happen by enabling it.
We didn't have to bump the state format version since the absense of the
field means it was written by version "0.0.0" which will always be
older. In effect though this change will always apply to version 2 of
the state since it appears in 0.7 which bumped the version for other
purposes.
2016-05-10 14:40:11 -04:00
Paul Hinze
4a51e4fe91
core: write planfile even on empty plans
...
This makes the planfile workflow more consistent. If a plan yields a
noop, the apply of that planfile will noop.
Fixes #1783
2016-01-20 16:00:20 -06:00
James Nugent
a49b162dd1
Prompt for input variables before context validate
...
Also adds a regression test using Mock UI. Fixes #3767 .
2015-11-10 14:03:56 -05:00
Anthony Scalisi
198e1a5186
remove various typos
2015-09-11 11:56:20 -07:00
Ryan Uber
9a091ffa78
command: plan supports detailed exit code
2015-04-01 09:38:19 -07:00
Mitchell Hashimoto
672bf58337
command: compiles, tests don't pass yet
2014-09-24 14:37:24 -07:00
Mitchell Hashimoto
91eb3c73fc
command: fix failing tests
2014-09-18 18:16:09 -06:00
Mitchell Hashimoto
15564b04a5
command: tests pass
2014-09-18 10:40:35 -07:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
cdad3036ae
command: closer to compiling
2014-09-17 11:15:07 -07:00
Mitchell Hashimoto
642fed0356
command: terraform.tfvars loaded by default if it exists
2014-08-05 09:32:01 -07:00
Armon Dadgar
16ef3f5733
command: Testing the -backup feature
2014-07-27 23:38:41 -04:00
Mitchell Hashimoto
7b4119027a
command: -var-file works
2014-07-18 14:00:40 -07:00
Mitchell Hashimoto
3534470ca3
command: -var flag works
2014-07-18 11:37:27 -07:00
Mitchell Hashimoto
3a851bece0
command: convert all to use the new Meta thing
2014-07-12 20:37:30 -07:00
Mitchell Hashimoto
6bf543cb07
command/plan: default state path
2014-07-11 21:03:56 -07:00
Mitchell Hashimoto
04f7281e8c
command/plan: can take no args and default to pwd for config
2014-07-11 20:51:26 -07:00
Mitchell Hashimoto
d3d45ca064
command: fix some issues with refresh, tests passing
2014-07-07 21:12:12 -07:00
Mitchell Hashimoto
a6ae7230d1
command: use new API
2014-07-03 11:46:40 -07:00
Mitchell Hashimoto
64363da9dd
command/plan: add -destroy flag to plan a destroy
2014-07-01 09:12:05 -07:00
Mitchell Hashimoto
f820290862
command: -out flag to plan command
2014-06-26 22:23:51 -07:00
Mitchell Hashimoto
0a8cebdb82
command/plan: refresh by default
2014-06-26 09:56:29 -07:00
Mitchell Hashimoto
bff4b8a58c
command: plan
2014-06-20 11:47:02 -07:00