|
@ -243,6 +243,11 @@ func TestPlugin(t *testing.T) { |
|
|
args{config: Config{FmtOptions: FmtOptions{Check: &affirmative}}}, |
|
|
args{config: Config{FmtOptions: FmtOptions{Check: &affirmative}}}, |
|
|
exec.Command("terraform", "fmt", "-check=true"), |
|
|
exec.Command("terraform", "fmt", "-check=true"), |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"with recursive", |
|
|
|
|
|
args{config: Config{FmtOptions: FmtOptions{Recursive: &affirmative}}}, |
|
|
|
|
|
exec.Command("terraform", "fmt", "-recursive=true"), |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
"with combination", |
|
|
"with combination", |
|
|
args{config: Config{FmtOptions: FmtOptions{ |
|
|
args{config: Config{FmtOptions: FmtOptions{ |
|
@ -250,8 +255,9 @@ func TestPlugin(t *testing.T) { |
|
|
Write: &negative, |
|
|
Write: &negative, |
|
|
Diff: &affirmative, |
|
|
Diff: &affirmative, |
|
|
Check: &affirmative, |
|
|
Check: &affirmative, |
|
|
|
|
|
Recursive: &affirmative, |
|
|
}}}, |
|
|
}}}, |
|
|
exec.Command("terraform", "fmt", "-list=false", "-write=false", "-diff=true", "-check=true"), |
|
|
exec.Command("terraform", "fmt", "-list=false", "-write=false", "-diff=true", "-check=true", "-recursive=true"), |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|