terraform/states/statemgr
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
..
testdata
doc.go Update doc.go, fix typo (#20529) 2019-03-01 08:59:01 -08:00
filesystem.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
filesystem_lock_unix.go states/statemgr: Local locks meta is near output path, not input path 2018-11-19 09:02:35 -08:00
filesystem_lock_windows.go states/statemgr: Local locks meta is near output path, not input path 2018-11-19 09:02:35 -08:00
filesystem_test.go missing wg.Wait in concurrent test 2020-04-08 10:55:20 -04:00
helper.go command: Use statemgr.Import and statemgr.Export for state push and pull 2018-11-19 09:02:35 -08:00
lineage.go command/state: update and fix the state push and pull 2018-10-19 19:12:23 +02:00
lock.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
lock_test.go state: remove deprecated state package (#25490) 2020-08-11 11:43:01 -04:00
locker.go Fix typos (#24531) 2020-04-13 08:34:40 -04:00
migrate.go Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
migrate_test.go states/statemgr: Migrate, Import, and Export functions 2018-11-19 09:02:35 -08:00
persistent.go
plan.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
snapshotmetarel_string.go stringer: Regenerate files with latest version 2019-05-13 15:34:27 +01:00
statemgr.go statemgr: Helper funcs RefreshAndRead and WriteAndPersist 2018-10-16 18:58:49 -07:00
statemgr_fake.go statemgr: add a NewUnlockErrorFull state manager for tests (#25823) 2020-08-14 14:14:51 -04:00
statemgr_test.go
testing.go remove a few traces of states.EachMode 2020-04-30 09:22:15 -04:00
transient.go
transient_inmem.go