mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
add some output values to the show state test
This commit is contained in:
parent
5ed7f2a798
commit
06f1ceb026
@ -447,6 +447,13 @@ func TestShow_plan_json(t *testing.T) {
|
||||
|
||||
func TestShow_state(t *testing.T) {
|
||||
originalState := testState()
|
||||
root := originalState.RootModule()
|
||||
root.SetOutputValue("test", cty.ObjectVal(map[string]cty.Value{
|
||||
"attr": cty.NullVal(cty.DynamicPseudoType),
|
||||
"null": cty.NullVal(cty.String),
|
||||
"list": cty.ListVal([]cty.Value{cty.NullVal(cty.Number)}),
|
||||
}), false)
|
||||
|
||||
statePath := testStateFile(t, originalState)
|
||||
defer os.RemoveAll(filepath.Dir(statePath))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user