mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-09 18:00:40 +00:00
Add tfValidate test
This commit is contained in:
parent
1b2911a03e
commit
092e0f45da
@ -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.It("Should return correct plan commands given the arguments", func() {
|
||||
type args struct {
|
||||
|
Loading…
Reference in New Issue
Block a user