summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorMatt Perry <matt@mattperry.com>2022-05-09 04:27:21 -0700
committerGitHub <noreply@github.com>2022-05-09 20:27:21 +0900
commit14265e464af0fde49c4c4751bc2f6a9f7b4812dd (patch)
treef8dd6f485751e71c3e23e5880f8d97d52f94c921 /test/linter
parent9e1351499c6b9a43a5fddd535f82605bde237e5e (diff)
downloadale-14265e464af0fde49c4c4751bc2f6a9f7b4812dd.zip
Add support for ansible-lint 6.0.0 (#4189)
ansible-lint 6.0.0 removed the `--parseable-severity` option. Use the JSON output in its place. Fixes #4188
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_ansible_lint.vader4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/linter/test_ansible_lint.vader b/test/linter/test_ansible_lint.vader
index 6fb8acb5..3191fa7b 100644
--- a/test/linter/test_ansible_lint.vader
+++ b/test/linter/test_ansible_lint.vader
@@ -15,6 +15,10 @@ Execute(The ansible_lint version >=5.0.0 command callback should return default
GivenCommandOutput ['v5.1.2']
AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor --parseable-severity -x yaml %s'
+Execute(The ansible_lint version >=6.0.0 command callback should return default string):
+ GivenCommandOutput ['v6.0.2']
+ AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor -f json -x yaml %s'
+
Execute(The ansible_lint executable should be configurable):
let g:ale_ansible_ansible_lint_executable = '~/.local/bin/ansible-lint'
GivenCommandOutput ['v4.1.2']