86e9ba3d65
* unlock the state if Context() has an error, exactly as backend/remote does today * terraform console and terraform import will exit before unlocking state in case of error in Context() * responsibility for unlocking state in the local backend is pushed down the stack, out of backend.go and into each individual state operation * add tests confirming that state is not locked after apply and plan * backend/local: add checks that the state is unlocked after operations This adds tests to plan, apply and refresh which validate that the state is unlocked after all operations, regardless of exit status. I've also added specific tests that force Context() to fail during each operation to verify that locking behavior specifically. |
||
---|---|---|
.. | ||
testdata | ||
backend.go | ||
backend_apply.go | ||
backend_apply_test.go | ||
backend_common.go | ||
backend_context.go | ||
backend_context_test.go | ||
backend_mock.go | ||
backend_plan.go | ||
backend_plan_test.go | ||
backend_state.go | ||
backend_state_test.go | ||
backend_test.go | ||
cli.go | ||
colorize.go | ||
remote_test.go | ||
testing.go |