Permalink
Browse files

Fixes to parsing tests to remove trailing space

  • Loading branch information...
jimi-c committed Jul 24, 2014
1 parent 1064550 commit 091b76efaa30e9bf8272e925f378438706c3c8cd
Showing with 8 additions and 8 deletions.
  1. +8 −8 test/integration/roles/test_good_parsing/tasks/main.yml
@@ -34,14 +34,14 @@
- assert:
that:
- result.cmd == 'echo "dog" '
+ result.cmd == 'echo "dog"'
- shell: echo 'dog'
register: result
- assert:
that:
- result.cmd == 'echo \'dog\' '
+ result.cmd == 'echo \'dog\''
- name: a quoted argument is not sent to the shell module as anything but a string parameter
shell: echo 'dog' 'executable=/usr/bin/python'
@@ -51,23 +51,23 @@
- assert:
that:
- result.cmd == "echo 'dog' 'executable=/usr/bin/python' "
+ result.cmd == "echo 'dog' 'executable=/usr/bin/python'"
- name: it is valid to pass multiple key=value arguments because the shell doesn't check key=value arguments
shell: echo quackquack=here quackquack=everywhere
register: result
- assert:
that:
- result.cmd == 'echo quackquack=here quackquack=everywhere '
+ result.cmd == 'echo quackquack=here quackquack=everywhere'
- name: the same is true with quoting
shell: echo "quackquack=here quackquack=everywhere"
register: result
- assert:
that:
- result.cmd == 'echo "quackquack=here quackquack=everywhere" '
+ result.cmd == 'echo "quackquack=here quackquack=everywhere"'
- name: the same is true with quoting (B)
shell: echo "quackquack=here" "quackquack=everywhere"
@@ -87,15 +87,15 @@
- assert:
that:
- result.cmd == "echo a=1 a=2 a=3 "
+ result.cmd == "echo a=1 a=2 a=3"
- name: more shell duplicates
shell: echo foo=bar foo=bar
register: result
- assert:
that:
- result.cmd == "echo foo=bar foo=bar "
+ result.cmd == "echo foo=bar foo=bar"
- name: multi-line inline shell commands (should use script module but hey) are a thing
shell: "{{ multi_line }}"
@@ -115,4 +115,4 @@
- assert:
that:
# command shouldn't end in spaces, amend test once fixed
- - result.cmd == "echo foo --arg=a --arg=b "
+ - result.cmd == "echo foo --arg=a --arg=b"

0 comments on commit 091b76e

Please sign in to comment.