summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2018-06-20 15:29:26 +0200
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2018-06-20 15:29:26 +0200
commitf14e3bb109f19e432c455314849880d08d9d5729 (patch)
tree768e8efc17740d45e485d65f3348644ccba7dae6 /test/handler
parentb7db095221088a6ece6bc92f9a16e216693fd032 (diff)
downloadale-f14e3bb109f19e432c455314849880d08d9d5729.zip
Update test to match update to linter
Also make lnum and col proper strings, since that is how it is matched by the regexp, ALE handles the conversion to number.
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_cfn_python_lint_handler.vader20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/handler/test_cfn_python_lint_handler.vader b/test/handler/test_cfn_python_lint_handler.vader
index a053e84e..2c7ddc62 100644
--- a/test/handler/test_cfn_python_lint_handler.vader
+++ b/test/handler/test_cfn_python_lint_handler.vader
@@ -9,25 +9,25 @@ Execute(The cfn_python_lint handler should parse items correctly):
AssertEqual
\ [
\ {
- \ 'lnum': 96,
- \ 'col': 7,
- \ 'end_lnum': 96,
- \ 'end_col': 15,
+ \ 'lnum': '96',
+ \ 'col': '7',
+ \ 'end_lnum': '96',
+ \ 'end_col': '15',
\ 'text': 'Property Resources/Sample/Properties/FromPort should be of type Integer',
\ 'code': 'E3012',
\ 'type': 'E',
\ },
\ {
- \ 'lnum': 97,
- \ 'col': 7,
- \ 'end_lnum': 97,
- \ 'end_col': 15,
+ \ 'lnum': '97',
+ \ 'col': '7',
+ \ 'end_lnum': '97',
+ \ 'end_col': '15',
\ 'text': 'AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/SampleIpAddress. Example for AllowedPattern "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"',
\ 'code': 'W2509',
\ 'type': 'W',
\ },
\ ],
\ ale_linters#cloudformation#cfn_python_lint#Handle(bufnr(''), [
- \ fnamemodify(tempname(), ':h') . '/sample.template.yaml:96:7:96:15: [E3012] Property Resources/Sample/Properties/FromPort should be of type Integer',
- \ fnamemodify(tempname(), ':h') . '/sample.template.yaml:97:7:97:15: [W2509] AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/SampleIpAddress. Example for AllowedPattern "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"',
+ \ fnamemodify(tempname(), ':h') . '/sample.template.yaml:96:7:96:15:E3012:Property Resources/Sample/Properties/FromPort should be of type Integer',
+ \ fnamemodify(tempname(), ':h') . '/sample.template.yaml:97:7:97:15:W2509:AllowedPattern and/or AllowedValues for Parameter should be specified at Parameters/SampleIpAddress. Example for AllowedPattern "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$"',
\ ])