mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
Add tfValidate test
This commit is contained in:
parent
1b2911a03e
commit
092e0f45da
@ -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.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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user