terraform/backend/local
James Bardin 928e60672f context Refresh and Apply sometimes return nil
The documentation for Refresh indicates that it will always return a
valid state, but that wasn't true in the case of a graph builder error.
While this same concept wasn't documented for Apply, it was still
assumed in the terraform apply code.

Since the helper testing framework relies on the absence of a state to
determine if it can call Destroy, the Context can't can't start
returning a state in all cases. Document this, and use the State method
to fetch the correct state value after Apply.

Add a nil check to the WriteState function, so that writing a nil state
is a noop.

Make sure to init before sorting the state, to make sure we're not
attempting to sort nil values. This isn't technically needed with the
current code, but it's just safer in general.
2017-04-14 14:56:10 -04:00
..
test-fixtures backend/local: check for empty config on apply 2017-02-15 16:00:59 -08:00
backend.go backend/local: run backend.TestBackend 2017-03-09 16:17:21 +05:30
backend_apply.go context Refresh and Apply sometimes return nil 2017-04-14 14:56:10 -04:00
backend_apply_test.go backend/local: check for empty config on apply 2017-02-15 16:00:59 -08:00
backend_local.go update local.Local to match the latest Backend 2017-02-28 16:07:31 -05:00
backend_plan.go provide contexts to clistate.Lock calls 2017-04-01 17:09:20 -04:00
backend_plan_test.go backend/local: validate module exists for plan 2017-01-29 20:02:12 -08:00
backend_refresh.go provide contexts to clistate.Lock calls 2017-04-01 17:09:20 -04:00
backend_refresh_test.go backend/local: refresh with no config should not crash on input 2017-02-22 13:10:08 -08:00
backend_test.go fix local backend test 2017-03-23 11:15:46 -04:00
cli.go command: use backend.CLIIinit 2017-02-28 10:58:29 -08:00
counthookaction_string.go Update stringer-generated files to new boilerplate 2017-03-29 08:07:06 -07:00
hook_count.go backend/local 2017-01-26 14:33:49 -08:00
hook_count_action.go backend/local 2017-01-26 14:33:49 -08:00
hook_count_test.go backend/local 2017-01-26 14:33:49 -08:00
hook_state.go backend/local 2017-01-26 14:33:49 -08:00
hook_state_test.go backend/local 2017-01-26 14:33:49 -08:00
local_test.go backend/local 2017-01-26 14:33:49 -08:00
testing.go backend/local: run backend.TestBackend 2017-03-09 16:17:21 +05:30