From 092e0f45daa099497e771eab76e4348849462446 Mon Sep 17 00:00:00 2001 From: Gurarpit Singh Date: Sat, 9 Nov 2019 22:26:24 +0000 Subject: [PATCH] Add tfValidate test --- plugin_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/plugin_test.go b/plugin_test.go index a131f11..afa8de5 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -104,6 +104,24 @@ func TestPlugin(t *testing.T) { } }) }) + + g.Describe("tfValidate", func() { + g.It("Should return correct validate command", func() { + tests := []struct { + name string + want *exec.Cmd + }{ + { + "default", + exec.Command("terraform", "validate"), + } + } + + for _, tt := range tests { + g.Assert(tfValidate()).Equal(tt.want) + } + }) + }) g.Describe("tfPlan", func() { g.It("Should return correct plan commands given the arguments", func() {