Mitchell Hashimoto
28a23a45f4
terraform: dynamic subgraph expansion for count
2015-02-19 12:07:57 -08:00
Mitchell Hashimoto
ffe9ccacf0
terraform: convert more tests
2015-02-19 12:07:57 -08:00
Mitchell Hashimoto
d0786d20dd
terraform: more passing tests
2015-02-19 12:07:56 -08:00
Mitchell Hashimoto
de3d9fb9d9
terraform: evaluation interpolater connect
2015-02-19 12:07:56 -08:00
Mitchell Hashimoto
3908b6319a
terraform: pulling out everything into Interpolater
2015-02-19 12:07:56 -08:00
Mitchell Hashimoto
57ad9e2502
terraform: provider configuration validation
2015-02-19 12:07:55 -08:00
Mitchell Hashimoto
f9f18122ed
terraform: basic provider validation!
2015-02-19 12:07:55 -08:00
Mitchell Hashimoto
c308405b53
terraform: validation in progress
2015-02-19 12:07:55 -08:00
Mitchell Hashimoto
d9a964f44c
terraform: validate almost done
2015-02-19 12:07:55 -08:00
Mitchell Hashimoto
9f70c6fad5
terraform: rename context
2015-02-19 12:07:54 -08:00
Emil Hessman
6d9c4ea78f
terraform: fix ContextPlan test failure on Windows
...
The attributes in the diff are %#v-formatted. This means that all `\`
characters in the Windows paths are escaped with a `\`. We need to
escape the `\` characters in cwd, module, and root before doing any
comparison work.
Fixes the following test failure on Windows:
--- FAIL: TestContextPlan_pathVar (0.00s)
context_test.go:3833: bad:
DIFF:
CREATE: aws_instance.foo
cwd: "" => "C:\\Users\\ceh\\src\\github.com\\hashicorp\\terraform\\terraform/barpath"
module: "" => "C:\\Users\\ceh\\src\\github.com\\hashicorp\\terraform\\terraform\\test-fixtures\\plan-path-var/foopath"
root: "" => "C:\\Users\\ceh\\src\\github.com\\hashicorp\\terraform\\terraform\\test-fixtures\\plan-path-var/barpath"
type: "" => "aws_instance"
STATE:
<no state>
expected:
DIFF:
CREATE: aws_instance.foo
cwd: "" => "C:\Users\ceh\src\github.com\hashicorp\terraform\terraform/barpath"
module: "" => "C:\Users\ceh\src\github.com\hashicorp\terraform\terraform\test-fixtures\plan-path-var/foopath"
root: "" => "C:\Users\ceh\src\github.com\hashicorp\terraform\terraform\test-fixtures\plan-path-var/barpath"
type: "" => "aws_instance"
STATE:
<no state>
FAIL
exit status 1
FAIL github.com/hashicorp/terraform/terraform 0.050s
2015-02-04 18:26:42 +01:00
Mitchell Hashimoto
dc036a0dd0
terraform: fix bug with crash with no providers [GH-786]
2015-01-16 09:56:51 -08:00
Emil Hessman
071d872dc2
terraform: acceptance test for validation error
...
Add an acceptance test where terraform plan should error due
to validation errors.
2015-01-13 06:59:12 +01:00
Mitchell Hashimoto
71918efd96
terraform: Add more tests for cases we felt weren't well covered
2014-12-16 15:59:26 -08:00
Mitchell Hashimoto
e5f07567c6
terraform: module input to another module doesn't error [GH-659]
2014-12-16 08:23:19 -08:00
Luke Amdor
6dcb7166d1
fix destroy so incoming module vars get set
2014-12-05 17:18:45 -06:00
Luke Amdor
60022978a6
adding context test for module multi-vars
2014-11-28 13:16:33 -06:00
Armon Dadgar
a5d444b8e3
terraform: fix module output handling. Fixes #474
2014-11-24 19:18:52 -08:00
Armon Dadgar
5b025c89f9
terraform: guard output types. Fixes #593
2014-11-24 16:49:38 -08:00
Armon Dadgar
e29e364c89
terraform: Testing duplicate delete issue
2014-11-18 15:38:54 -08:00
Mitchell Hashimoto
22f09b487b
terraform: refresh ignores variables with no values [GH-478]
2014-10-20 23:08:17 -07:00
Mitchell Hashimoto
0908e8f42c
terraform: don't fail refresh if output doesn't exist [GH-483]
2014-10-20 18:45:52 -07:00
Mitchell Hashimoto
686871310d
terraform: input properly sends on only set input
2014-10-18 14:54:42 -07:00
Mitchell Hashimoto
dc3178e06a
terraform: failling test case for a bug
2014-10-18 14:36:34 -07:00
Mitchell Hashimoto
914cb1d44c
terraform: test for variables in provider configs
2014-10-18 14:13:14 -07:00
Mitchell Hashimoto
0a5e06d62c
terraform: merge interpolated inherited provider configurations [GH-418]
2014-10-18 13:58:01 -07:00
Mitchell Hashimoto
f03ab178bf
terraform: don't execute provisioners on destroy
2014-10-18 11:37:26 -07:00
Mitchell Hashimoto
990b814188
terraform: set count to 1 while validating [GH-442]
2014-10-17 18:18:28 -07:00
Mitchell Hashimoto
f626c5df96
terraform: validation works with count if default [GH-442]
2014-10-17 18:06:54 -07:00
Mitchell Hashimoto
bf7c40d115
terraform: test case for variable count
2014-10-17 18:03:30 -07:00
Mitchell Hashimoto
35352a2746
terraform: some more test cases for sanity
2014-10-16 23:20:46 -07:00
Mitchell Hashimoto
82bf4f485b
terraform: taint resources who error on create with provisioners
...
[GH-434]
2014-10-16 23:19:07 -07:00
Mitchell Hashimoto
de4c922c9c
terraform: validation with unknown variables works [GH-432]
2014-10-16 15:54:56 -07:00
Mitchell Hashimoto
f59e89ccb8
terraform: add count tainted apply test
2014-10-12 09:41:27 -07:00
Mitchell Hashimoto
ecafcfa682
terraform: don't validate tainted resources
2014-10-11 16:02:07 -07:00
Mitchell Hashimoto
6c96e0f6ac
terraform: nil out the Diff on a resource when expanding
...
This fixes a bug where the Destroy diff was being kept around for
nodes that shouldn't be destroyed. We added a test to verify this
doesn't happen.
2014-10-09 23:15:42 -07:00
Mitchell Hashimoto
36f4a644b6
terraform: warn if the name has special characters
2014-10-08 15:59:50 -07:00
Mitchell Hashimoto
8b5c120ecf
terraform: add InputMode to determine what is asked for
2014-10-08 10:18:45 -07:00
Mitchell Hashimoto
d714c6f2f1
terraform: test path variables
2014-10-07 20:09:30 -07:00
Mitchell Hashimoto
94f43ff145
terraform: fix crash if outputs with no state [GH-358]
2014-10-03 15:57:43 -07:00
Mitchell Hashimoto
88ac1b030a
terraform: another test for count index
2014-10-02 22:07:23 -07:00
Mitchell Hashimoto
ea18b62e8f
terraform: count.index
2014-10-02 22:02:59 -07:00
Mitchell Hashimoto
66c58788fe
terraform: test count = 1 variable access
2014-10-02 17:24:22 -07:00
Mitchell Hashimoto
221e40a3a9
terraform: test count == zero
2014-10-02 17:18:40 -07:00
Mitchell Hashimoto
e4ba737392
terraform: validate count is non-negative
2014-10-02 17:14:25 -07:00
Mitchell Hashimoto
53d05cb81f
terraform: counts can't be computed
2014-10-02 16:21:17 -07:00
Mitchell Hashimoto
ced4125037
teraform: test that count can be a variable
2014-10-02 15:47:00 -07:00
Armon Dadgar
1977a53574
terraform: Deterministric and correct ordering for deposed nodes
2014-09-30 11:37:49 -07:00
Armon Dadgar
5207e1d268
terraform: test ordering when using create before with depedencies
2014-09-29 17:00:45 -07:00
Armon Dadgar
9a6c8490a0
terraform: Updating tests for modules
2014-09-29 15:27:56 -07:00
Armon Dadgar
bce9b664d8
terraform: test happy path create-before-destroy
2014-09-29 15:20:04 -07:00
Armon Dadgar
465f3f2676
terraform: test create-before-destroy with failed destroy
2014-09-29 15:20:03 -07:00
Armon Dadgar
59b7cb171a
terraform: Testing failed apply with create_before_destroy
2014-09-29 15:20:03 -07:00
Armon Dadgar
f248ae3aee
terraform: test provising fail create-before-destroy
2014-09-29 15:20:03 -07:00
Mitchell Hashimoto
133a28e363
terraform: prefix the Id for configuring providers
2014-09-29 10:36:49 -07:00
Mitchell Hashimoto
2791badf01
terraform: ask for input for providers
2014-09-29 09:13:15 -07:00
Mitchell Hashimoto
fd70e5e7bf
terraform: Input() asks for variable inputs
2014-09-28 23:37:36 -07:00
Mitchell Hashimoto
3941dbac5d
fmt
2014-09-28 11:51:49 -07:00
Mitchell Hashimoto
4b3473e522
terraform: fix compilation from merge
2014-09-26 10:10:08 -07:00
Mitchell Hashimoto
0d1867c0b3
Merge branch 'f-module-apply'
...
Conflicts:
terraform/context.go
2014-09-26 10:08:35 -07:00
Mitchell Hashimoto
77b1c7daa0
terraform: destroy plans work with modules
2014-09-25 20:44:34 -07:00
Mitchell Hashimoto
c88614c585
terraform: providers inherit properly for validation
2014-09-24 21:38:23 -07:00
Mitchell Hashimoto
2d07f79c5a
terraform: validation validates the submodules
2014-09-24 19:31:30 -07:00
Mitchell Hashimoto
7a636551be
terraform: test for child module provider default
2014-09-24 14:04:54 -07:00
Mitchell Hashimoto
1f1563c95b
terraform: provider inheritence is functional
2014-09-24 13:58:07 -07:00
Mitchell Hashimoto
8dbc7e0ccb
terraform: change the graph a bit to better support providers with
...
modules
This doesn't cause inheritence to work yet. That is coming
2014-09-24 13:31:35 -07:00
Mitchell Hashimoto
86a4a6c7c8
terraform: test apply with modules
2014-09-23 17:13:50 -07:00
Mitchell Hashimoto
e8dfcdbe7b
terraform: computed input variables work to modules
2014-09-23 17:05:44 -07:00
Mitchell Hashimoto
68b38b4904
terraform: test case for cascading input variables (variable to
...
variable)
2014-09-23 16:55:19 -07:00
Mitchell Hashimoto
9e871d5617
terraform: variables to modules work
2014-09-23 16:49:38 -07:00
Mitchell Hashimoto
a3b668bf7d
terraform: module w/ computed output works
2014-09-23 16:27:38 -07:00
Mitchell Hashimoto
bfa4e1d7d0
terraform: module output variables are functional
2014-09-23 16:07:41 -07:00
Mitchell Hashimoto
1b5d0ed0bb
terraform: outputs should be properly calculated for modules now
2014-09-23 15:46:20 -07:00
Mitchell Hashimoto
6b2781d77c
terraform: module orphans
2014-09-23 14:57:17 -07:00
Mitchell Hashimoto
b1a583e3de
terraform: plan with modules work
2014-09-23 14:15:40 -07:00
Mitchell Hashimoto
8dcc4528fc
terraform: basic sub-module walks work
...
Lots broken still, but its a start.
2014-09-23 13:47:20 -07:00
Mitchell Hashimoto
bc67e7c443
terraform: diff is split down into modules
2014-09-23 11:43:21 -07:00
Mitchell Hashimoto
29603f36d2
terraform: remove Read/WriteDiff, we don't use it
2014-09-23 11:15:05 -07:00
Mitchell Hashimoto
a6f792b3aa
terraform: update graph to build subgraphs for modules
2014-09-22 16:48:18 -07:00
Mitchell Hashimoto
a32833af2c
terraform: Graph, Context, Plan all speak modules
2014-09-22 15:37:29 -07:00
Armon Dadgar
cdce8208f3
terraform: ensure provisioner runs only on instance create
2014-09-22 11:15:22 -07:00
Mitchell Hashimoto
53c23266ca
terraform: add Info field to Resource, remove from Node
2014-09-19 23:01:51 -06:00
Mitchell Hashimoto
157843725d
terraform: refreshing tainted resources works
2014-09-19 22:28:13 -06:00
Armon Dadgar
5e0765c24a
terraform: Refresh handles tainted instances
2014-09-19 16:24:17 -07:00
Armon Dadgar
8e421caba1
terraform: show each tainted ID
2014-09-19 15:04:21 -07:00
Armon Dadgar
3b7c987889
terraform: EncodeDepedencies should override dep list
2014-09-18 13:33:05 -07:00
Mitchell Hashimoto
1aff5e98e1
terraform: some deepcopying going on
2014-09-17 17:18:17 -07:00
Mitchell Hashimoto
f9ce7de468
terraform: Refresh tests passing
2014-09-17 16:51:07 -07:00
Mitchell Hashimoto
e2aa067996
terraform: fixing Refresh tests
2014-09-17 16:47:26 -07:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
0a6c675fba
terraform: update hooks to use InstanceState
2014-09-17 15:00:19 -07:00
Armon Dadgar
81abdcafdc
terraform: fixing all the panics
2014-09-16 16:55:19 -07:00
Mitchell Hashimoto
95f3e626a5
terraform: modify the ResourceProvider API super hardcore
2014-09-16 16:20:11 -07:00
Armon Dadgar
4b0f970659
terraform: fixing test errors
2014-09-16 15:09:40 -07:00
Mitchell Hashimoto
a53faa2fff
terraform: validate providers even without config block [GH-284]
2014-09-09 17:38:30 -07:00
Mitchell Hashimoto
52bc9a1055
core: check sets for computed [GH-247]
2014-08-30 17:26:10 -07:00
Mitchell Hashimoto
87f4b49f85
terraform: multi-variables work with count = 1 [GH-115]
2014-08-05 10:12:35 -07:00
Mitchell Hashimoto
7564a0a21c
terraform: set state properly when tainted
2014-07-26 21:03:07 -07:00
Mitchell Hashimoto
37c4edd5e7
terraform: test cases around self-referencing variables
...
This includes cases of multi-counts.
/cc @armon - Looks like this was a non-issue. Terraform already errors
on this.
2014-07-26 15:02:23 -07:00
Mitchell Hashimoto
a3639b6156
terraform: further tests around count edge cases, fix 1 => N case
...
/cc @pearkes
GH-35
2014-07-26 14:55:42 -07:00
Mitchell Hashimoto
79a9dfce4a
terraform: add test for diff var changing
2014-07-24 20:24:59 -07:00
Mitchell Hashimoto
615cf04715
terraform: refresh returning nil should delete from state
2014-07-24 14:40:52 -07:00
Mitchell Hashimoto
1ee69761d4
terraform: self-referencing variables in provisoiners work
2014-07-24 07:58:45 -07:00
Mitchell Hashimoto
d5e3d5a196
terraform: validate diffs are the same
2014-07-22 19:33:09 -07:00
Mitchell Hashimoto
79eb52eba6
terraform: error if diff during Apply returns nil
2014-07-22 19:33:08 -07:00
Mitchell Hashimoto
14f7067b0c
terraform: taint plan requires destroy/create
2014-07-22 10:30:42 -07:00
Mitchell Hashimoto
192fc1e544
terraform: mark resource as tainted if provisioning fails
2014-07-22 10:09:11 -07:00
Mitchell Hashimoto
808036bf60
terraform: ResourceProvisioner can't return a state anymore
2014-07-22 09:56:39 -07:00
Mitchell Hashimoto
e59ff6e92c
terraform: fix tests
2014-07-22 08:29:49 -07:00
Mitchell Hashimoto
c6474b3e5c
terraform: more test cases
2014-07-22 08:27:16 -07:00
Mitchell Hashimoto
83ba038423
terraform: mapping overrides work
2014-07-22 08:18:53 -07:00
Mitchell Hashimoto
c9a20c3c58
terraform: test that mapping lookups work
2014-07-22 08:06:09 -07:00
Mitchell Hashimoto
ff36378c4e
terraform: partial state should be saved on apply error
2014-07-17 15:32:19 -07:00
Armon Dadgar
104b28e19e
terraform: Remove ResourceConnectionInfo, use raw map
2014-07-15 12:34:07 -07:00
Armon Dadgar
fec8e95a09
terraform: Ensure ConnInfo is initialized
2014-07-15 12:34:07 -07:00
Armon Dadgar
0110640946
terraform: Test ConnInfo materialization during Apply
2014-07-15 12:34:07 -07:00
Mitchell Hashimoto
3af16c8faf
terraform: don't process outputs when all we did was destroy
2014-07-13 11:07:31 -07:00
Mitchell Hashimoto
4dea4c325b
terraform: Context.Graph
2014-07-12 19:23:56 -07:00
Mitchell Hashimoto
2ed77c8a6f
terraform: remove output diffs attributes from the Apply call
2014-07-11 12:00:41 -07:00
Mitchell Hashimoto
8d065ce5c4
terraform: don't validate orphans
2014-07-11 11:09:19 -07:00
Armon Dadgar
83c1ed438f
terraform: Fix and test provisioner configs
2014-07-10 11:38:57 -07:00
Armon Dadgar
c8bc5658ab
terraform: Test that validate gets a config for provisioners
2014-07-10 11:38:57 -07:00
Armon Dadgar
cfc7b69bb1
terraform: Test provisioner apply
2014-07-10 11:38:56 -07:00
Armon Dadgar
03a20f072e
terraform: Test Validation of provisioners
2014-07-10 11:38:56 -07:00
Mitchell Hashimoto
eda3cb009c
terraform: make sure the "id" attribute is in the state
2014-07-08 17:15:41 -07:00
Mitchell Hashimoto
611e0668e7
terraform: remove debugging
2014-07-08 17:03:25 -07:00
Mitchell Hashimoto
251790f05a
terraform: add ID to diff implicitly
2014-07-08 16:58:31 -07:00
Armon Dadgar
8f4cd641df
terraform: minimal apply test case
2014-07-08 16:12:30 -07:00
Mitchell Hashimoto
b0a83adea4
terraform: manually interpolate variables in walker functions
...
This avoids issues where we were interpolating when we didn't need to
2014-07-07 16:56:23 -07:00
Mitchell Hashimoto
38b3734d12
terraform: don't refresh resources that aren't created
2014-07-07 16:19:25 -07:00
Mitchell Hashimoto
582d81ed03
terraform: converge on calculated variables rather than caching
2014-07-06 23:03:51 -07:00
Mitchell Hashimoto
cc0c32d5ca
terraform: test for single index access of counts
2014-07-06 14:09:44 -07:00
Mitchell Hashimoto
a01d979c1b
terraform: outputs work with multi-variables
2014-07-05 10:48:47 -07:00
Mitchell Hashimoto
4b5f5aec65
terraform: outputs are computed for the state
2014-07-04 15:36:28 -07:00
Mitchell Hashimoto
3b3c9e140a
terraform: tests for increasing count from 1 to > 1
2014-07-03 21:47:07 -07:00
Mitchell Hashimoto
c5a0b9cb40
terraform: test case for decreasing the count
2014-07-03 21:42:18 -07:00
Mitchell Hashimoto
a616218d13
terraform: planning and applying multi-count resources tests
2014-07-03 21:24:17 -07:00
Mitchell Hashimoto
0298b47fd8
terraform: add happy path case for resource config
2014-07-03 12:31:26 -07:00
Mitchell Hashimoto
ed57fe7083
terraform: ValidateResource is called
2014-07-03 12:30:51 -07:00
Mitchell Hashimoto
6508edaba9
terraform: Context.Validate checks ProviderConfig Validate
2014-07-03 12:17:56 -07:00
Mitchell Hashimoto
4f5f3a5502
terraform: Context.Stop
2014-07-03 11:27:30 -07:00
Mitchell Hashimoto
603ee36d92
terraform: Context.Apply
2014-07-03 11:04:04 -07:00
Mitchell Hashimoto
403876fff3
terraform: Context.Plan
2014-07-03 10:44:30 -07:00
Mitchell Hashimoto
2e10ddb878
terraform: Context.Refresh
2014-07-03 10:29:14 -07:00
Mitchell Hashimoto
947fa4e669
terraform: Context introduction
2014-07-03 10:14:17 -07:00