Commit Graph

19 Commits

Author SHA1 Message Date
James Bardin
705527e6fe Set proper Mode when moving a data source in state
ResourceAddr.Mode wasn't properly set when moving a module, so data
sources would lose the "data." prefix when their module was moved within
the State.
2016-11-21 18:26:29 -05:00
James Bardin
c908f3ceae convert TestStateAdd to subtests 2016-11-21 18:13:15 -05:00
Mitchell Hashimoto
8afbb0ee0e terraform: state mv "foo" to "foo.0" with single count 2016-08-19 11:54:53 -04:00
Mitchell Hashimoto
88649ed010 terraform: StateAdd edge case test for multi-count to single index 2016-08-19 11:51:31 -04:00
Mitchell Hashimoto
a22f7e8257 terraform: State.Add works with multiple resources [GH-7797] 2016-08-19 11:46:52 -04:00
Mitchell Hashimoto
3b3f92cd9b terraform: fix some test failures on state add with multiple modules 2016-08-18 17:39:07 -04:00
Mitchell Hashimoto
3892cc4e91 terraform: fix state add with multiple ModuleStates 2016-08-18 17:13:53 -04:00
Mitchell Hashimoto
a44c8b8760 terraform: state mv tests 2016-08-18 15:05:42 -04:00
Sander van Harmelen
5af1afd64e Update newly added code to work with the updated taint semantics 2016-05-26 19:56:03 -05:00
James Nugent
3ea3c657b5 core: Use OutputState in JSON instead of map
This commit forward ports the changes made for 0.6.17, in order to store
the type and sensitive flag against outputs.

It also refactors the logic of the import for V0 to V1 state, and
fixes up the call sites of the new format for outputs in V2 state.

Finally we fix up tests which did not previously set a state version
where one is required.
2016-05-18 13:25:20 -05:00
Mitchell Hashimoto
eaf3d608ed terraform: test moving a module to be nested 2016-05-10 13:25:43 -07:00
Mitchell Hashimoto
163f19fd00 terraform: instance => module 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
4d268b6eca terraform: instance => resource 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
e497c26517 terraform: resource => module 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
d3fcfcc027 terraform: moving resource to resource 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
e65a726936 terraform: copy deps and provider for resource state 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
c324062645 terraform: state add resource existing fails 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
21d7ffc3f3 terraform: add resource 2016-05-10 13:25:03 -07:00
Mitchell Hashimoto
2de4324607 terraform: add stateadd to its own test file 2016-05-10 13:25:02 -07:00