From afa89168b3fca4a706b24763e8085aec973931dd Mon Sep 17 00:00:00 2001 From: Chris Mague Date: Wed, 26 Sep 2018 08:08:11 -0700 Subject: [PATCH] fix tests for tfShow function --- plugin_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin_test.go b/plugin_test.go index ecbea1c..46f9077 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -43,11 +43,11 @@ func TestPlugin(t *testing.T) { args{config: Config{}}, exec.Command("terraform", "show", "-no-color"), }, - // { - // "with planfile", - // args{config: Config{Difffile: "/tmp/plan.tfout"}}, - // exec.Command("terraform", "show", "-no-color", "/tmp/plan.tfout"), - // }, + { + "with planfile", + args{config: Config{Planfile: "/tmp/plan.tfout", Difffile: "/tmp/plan.diff"}}, + exec.Command("terraform", "show", "-no-color", "/tmp/plan.tfout"), + }, } for _, tt := range tests { g.Assert(tfShow(tt.args.config).Tfcmd).Equal(tt.want)