Browse Source

Add tfValidate test

pull/106/head
Gurarpit Singh 5 years ago
committed by GitHub
parent
commit
092e0f45da
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      plugin_test.go

18
plugin_test.go

@ -105,6 +105,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.Describe("tfPlan", func() {
g.It("Should return correct plan commands given the arguments", func() { g.It("Should return correct plan commands given the arguments", func() {
type args struct { type args struct {

Loading…
Cancel
Save