terraform/states
Kristin Laemmert 95eca06782
statemgr: add a NewUnlockErrorFull state manager for tests (#25823)
* statemgr: add a NewUnlockErrorFull state manager for tests

I've frequently needed to coerce Unlock() errors for tests and it's been
awkward and fraught every time, so I decided to add a full state manger
that returns *mostly* errors. I intend to use this in conjunction with
the clistate.Locker interface, which first calls Lock() (to block if the
mutex is in use) at the start of Unlock(), so Lock() rather awkwardly needed to succeed.
2020-08-14 14:14:51 -04:00
..
remote state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
statefile states/statefile: consistently sort resources across modules (#25498) 2020-08-11 11:50:07 -04:00
statemgr statemgr: add a NewUnlockErrorFull state manager for tests (#25823) 2020-08-14 14:14:51 -04:00
doc.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_generation.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
instance_object.go remove unused depends_on field and add test 2020-05-14 15:46:08 -04:00
instance_object_src.go remove unused depends_on field and add test 2020-05-14 15:46:08 -04:00
module.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
objectstatus_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
output_value.go add AbsOutputAddrs to state outputs 2020-04-13 16:37:59 -04:00
resource.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
resource_test.go states: Fix TestResourceInstanceDeposeCurrentObject 2018-10-16 19:14:11 -07:00
state.go Add ModuleOutputs method to states 2020-04-13 17:59:09 -04:00
state_deepcopy.go remove unused depends_on field and add test 2020-05-14 15:46:08 -04:00
state_equal.go states: New package with modern models for Terraform state 2018-10-16 18:49:20 -07:00
state_string.go remove extra brackets in state string output 2020-04-09 15:36:16 -04:00
state_test.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00
sync.go remove EachMode from resource state 2020-04-30 09:22:14 -04:00