diff options
author | Horacio Sanson <horacio@allm.net> | 2019-09-20 22:04:44 +0900 |
---|---|---|
committer | Horacio Sanson <horacio@allm.inc> | 2021-01-22 23:17:38 +0900 |
commit | 03eae9e085f6020a017ecbe761cccac9a5a89d77 (patch) | |
tree | fc9ca715625dcea11638ae7f00ef6e6d51b54992 /test/command_callback/test_ibm_openapi_validator_command_callback.vader | |
parent | a1e6df987c28dd3e0efb7422f4ad85ee3bb3bebc (diff) | |
download | ale-03eae9e085f6020a017ecbe761cccac9a5a89d77.zip |
Fix 2777 - Add IBM openapi validator
Diffstat (limited to 'test/command_callback/test_ibm_openapi_validator_command_callback.vader')
-rw-r--r-- | test/command_callback/test_ibm_openapi_validator_command_callback.vader | 15 |
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' |