Gurarpit Singh
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
18 additions and
0 deletions
-
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() { |
|
|
|