summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2022-11-25 22:13:38 +0900
committerGitHub <noreply@github.com>2022-11-25 13:13:38 +0000
commit3e460fa93bea6f814a683b3d02efa9ce3372b928 (patch)
treeda5004088b51631243845d45c07d2341d0750a0c /test/linter
parent46e77fad778344926f538748ccaa66cc28fa8152 (diff)
downloadale-3e460fa93bea6f814a683b3d02efa9ce3372b928.zip
Fix 4246 - Add ansible language-server (#4355)
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_ansible_language_server.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/linter/test_ansible_language_server.vader b/test/linter/test_ansible_language_server.vader
new file mode 100644
index 00000000..3766972e
--- /dev/null
+++ b/test/linter/test_ansible_language_server.vader
@@ -0,0 +1,18 @@
+Before:
+ call ale#assert#SetUpLinterTest('ansible', 'ansible_language_server')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The ansible language server command callback should return default string):
+ AssertLinter 'ansible-language-server', ale#Escape('ansible-language-server') . ' --stdio'
+
+Execute(The ansible language server executable should be configurable):
+ let g:ale_ansible_language_server_executable = '~/.local/bin/als'
+
+ AssertLinter '~/.local/bin/als' , ale#Escape('~/.local/bin/als') . ' --stdio'
+
+Execute(Should accept configuration settings):
+ AssertLSPConfig {}
+ let b:ale_ansible_language_server_config = {'ansible-language-server': {'ansible': {'completion': {'provideRedirectModules': v:false}}}}
+ AssertLSPConfig {'ansible-language-server': {'ansible': {'completion': {'provideRedirectModules': v:false}}}}