summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2019-09-20 22:04:44 +0900
committerHoracio Sanson <horacio@allm.inc>2021-01-22 23:17:38 +0900
commit03eae9e085f6020a017ecbe761cccac9a5a89d77 (patch)
treefc9ca715625dcea11638ae7f00ef6e6d51b54992 /test/command_callback
parenta1e6df987c28dd3e0efb7422f4ad85ee3bb3bebc (diff)
downloadale-03eae9e085f6020a017ecbe761cccac9a5a89d77.zip
Fix 2777 - Add IBM openapi validator
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_ibm_openapi_validator_command_callback.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command_callback/test_ibm_openapi_validator_command_callback.vader b/test/command_callback/test_ibm_openapi_validator_command_callback.vader
new file mode 100644
index 00000000..3484cc09
--- /dev/null
+++ b/test/command_callback/test_ibm_openapi_validator_command_callback.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('openapi', 'ibm_validator')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The yaml ibm-openapi-validator command callback should return the correct default string):
+ AssertLinter 'lint-openapi', ale#Escape('lint-openapi') . ' %t'
+
+Execute(The yaml ibm-openapi-validator command callback should be configurable):
+ let g:ale_openapi_ibm_validator_executable = '~/.local/bin/lint-openapi'
+ let g:ale_openapi_ibm_validator_options = '-c ~/.config'
+
+ AssertLinter '~/.local/bin/lint-openapi', ale#Escape('~/.local/bin/lint-openapi')
+ \ . ' -c ~/.config %t'