Files
opentf/command
Kristin Laemmert 196c183dda terraform: remove state from validate graph walk (#26063)
This pull reverts a recent change to backend/local which created two context, one with and one without state. Instead I have removed the state entirely from the validate graph (by explicitly passing a states.NewState() to the validate graph builder).

This changed caused a test failure, which (ty so much for the help) @jbardin discovered was inaccurate all along: the test's call to `Validate()` was actually what was removing the output from state. The new expected test output matches terraform's actual behavior on the command line: if you use -target to destroy a resource, an output that references only that resource is *not* removed from state even though that test would lead you to believe it did.

This includes two tests to cover the expected behavior:

TestPlan_varsUnset has been updated so it will panic if it gets more than one request to input a variable
TestPlan_providerArgumentUnset covers #26035

Fixes #26035, #26027
2020-08-31 15:45:39 -04:00
..
2015-04-29 13:07:13 -05:00
2020-08-07 14:13:57 -04:00
2020-08-07 14:13:57 -04:00
2019-07-18 16:11:41 -04:00
2020-07-23 15:09:22 +02:00
2018-10-16 18:24:47 -07:00
2020-08-12 21:22:39 +01:00
2020-08-11 23:27:29 +01:00