summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2021-01-30 18:20:49 +0900
committerGitHub <noreply@github.com>2021-01-30 18:20:49 +0900
commit2d07fa0cc2e5989f32e13dfee0cabfef9f765fdc (patch)
treea8e66b3aca0bb1d6741ac629f2842cf3ae029beb /test/command_callback
parent7c44f4e403a85ac9707c121bff3ad08a65443f0c (diff)
parentdd1c665db26724ff70b72aca412896723d389126 (diff)
downloadale-2d07fa0cc2e5989f32e13dfee0cabfef9f765fdc.zip
Merge pull request #3566 from hsanson/2726-fix-terraform-linter
Fix 2726 - fix terraform linter.
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_terraform_terraform_command_callback.vader8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/command_callback/test_terraform_terraform_command_callback.vader b/test/command_callback/test_terraform_terraform_command_callback.vader
index fabd902d..25ca652a 100644
--- a/test/command_callback/test_terraform_terraform_command_callback.vader
+++ b/test/command_callback/test_terraform_terraform_command_callback.vader
@@ -6,4 +6,10 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
- AssertLinter 'terraform', ale#Escape('terraform') . ' fmt -no-color --check=true -'
+ AssertLinter 'terraform',
+ \ ale#Escape('terraform') . ' validate -no-color -json '
+
+Execute(The default command should be overriden):
+ let b:ale_terraform_terraform_executable = '/bin/other/terraform'
+ AssertLinter '/bin/other/terraform',
+ \ ale#Escape('/bin/other/terraform') . ' validate -no-color -json '