0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-09-19 15:32:45 +02: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

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