mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Provider tests often rely on checking values contained within sets, by directly accessing their flatmapped representation. In order to provider the test harness with the expected set hashes, the sets must be generated by the schema.Resource itself. During the test we now build a fixed map of the providers, which should only contain schema.Provider instances, and pass them into each TestStep. The individual schema.Resource instances can then be pulled from the providers, and used to recreate the state from the cty.Value returned by the core operations. |
||
---|---|---|
.. | ||
error.go | ||
grpc_test_provider.go | ||
id_test.go | ||
id.go | ||
map_test.go | ||
map.go | ||
resource.go | ||
state_shim_test.go | ||
state_shim.go | ||
state_test.go | ||
state.go | ||
testing_config.go | ||
testing_import_state_test.go | ||
testing_import_state.go | ||
testing_test.go | ||
testing.go | ||
wait_test.go | ||
wait.go |