add some output values to the show state test

This commit is contained in:
James Bardin 2023-03-14 10:04:37 -04:00
parent 5ed7f2a798
commit 06f1ceb026

View File

@ -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))