mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-16 18:35:03 -06:00
In our old world we always used 1-based indices into a slice of deposed objects. The new models instead use a map keyed by pseudorandom strings, so that deposed objects will have a consistent identity across multiple operations. However, having that pseudo-random string in our test comparison output is not helpful, since such strings can never match hard-coded expectation strings. Therefore for the purposes of generating this test comparison output we'll revert back to using 1-based indexes. This should avoid problems for tests that only create one deposed object per instance, but those which create more than one will need to do some more work since the _ordering_ of these objects in the output is still pseudorandom as a result of it coming from a map rather than a slice. |
||
---|---|---|
.. | ||
statefile | ||
statemgr | ||
doc.go | ||
eachmode_string.go | ||
instance_generation.go | ||
instance_object_src.go | ||
instance_object.go | ||
module.go | ||
objectstatus_string.go | ||
output_value.go | ||
resource_test.go | ||
resource.go | ||
state_deepcopy.go | ||
state_equal.go | ||
state_string.go | ||
state_test.go | ||
state.go | ||
sync.go |