diff options
author | Mark Egan-Fuller <mark.eganfuller@bytemark.co.uk> | 2020-07-03 13:53:24 +0100 |
---|---|---|
committer | Mark Egan-Fuller <mark.eganfuller@bytemark.co.uk> | 2020-07-15 12:10:34 +0100 |
commit | d38b92c957f42a789b100f5d7ac0be4c787a91bd (patch) | |
tree | 10e1f39448faccf98575ffd0dd5ea2b03170cd1d /test/handler/test_puppet_handler.vader | |
parent | 26571fa050d9322fbb5b220ceb0f3f975304c60d (diff) | |
download | ale-d38b92c957f42a789b100f5d7ac0be4c787a91bd.zip |
Handling for puppet parser error at end of input.
Add handling for `Syntax error at end of input` which doesn't give a
line or column.
Fixes #2656
Diffstat (limited to 'test/handler/test_puppet_handler.vader')
-rw-r--r-- | test/handler/test_puppet_handler.vader | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/handler/test_puppet_handler.vader b/test/handler/test_puppet_handler.vader index e03cd42d..03adc9f0 100644 --- a/test/handler/test_puppet_handler.vader +++ b/test/handler/test_puppet_handler.vader @@ -63,3 +63,15 @@ Execute(The puppet handler should correctly parse errors that are reported befor \ ale_linters#puppet#puppet#Handle(255, [ \ "Error: Illegal attempt to assign to 'a Name'. Not an assignable reference (file: /tmp/modules/waffles/manifests/syrup.pp, line: 5, column: 11)", \ ]) +Execute(The puppet handler should parse lines when end of input is the location): + AssertEqual + \ [ + \ { + \ 'lnum': 0, + \ 'col': 0, + \ 'text': "Syntax error at end of input" + \ }, + \ ], + \ ale_linters#puppet#puppet#Handle(255, [ + \ "Error: Could not parse for environment production: Syntax error at end of input (file: /tmp//modules/test/manifests/init.pp)", + \ ]) |