summaryrefslogtreecommitdiff
path: root/test/linter/test_checkov.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_checkov.vader')
-rw-r--r--test/linter/test_checkov.vader14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/linter/test_checkov.vader b/test/linter/test_checkov.vader
new file mode 100644
index 00000000..f93d34f3
--- /dev/null
+++ b/test/linter/test_checkov.vader
@@ -0,0 +1,14 @@
+Before:
+ call ale#assert#SetUpLinterTest('terraform', 'checkov')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be direct):
+ AssertLinter 'checkov',
+ \ ale#Escape('checkov') . ' -f %t -o json --quiet '
+
+Execute(It should be possible to override the default command):
+ let b:ale_terraform_checkov_executable = '/bin/other/checkov'
+ AssertLinter '/bin/other/checkov',
+ \ ale#Escape('/bin/other/checkov') . ' -f %t -o json --quiet '