From 06f1ceb0265a523f61e4e86e99cad0c07243b77c Mon Sep 17 00:00:00 2001 From: James Bardin Date: Tue, 14 Mar 2023 10:04:37 -0400 Subject: [PATCH] add some output values to the show state test --- internal/command/show_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/command/show_test.go b/internal/command/show_test.go index 4f2c9e88e9..169b75dc1b 100644 --- a/internal/command/show_test.go +++ b/internal/command/show_test.go @@ -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))