0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-22 10:40:39 +00:00

Add tfValidate test

This commit is contained in:
Gurarpit Singh 2019-11-09 22:26:24 +00:00 committed by GitHub
parent 1b2911a03e
commit 092e0f45da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {