Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
8933763b
Commit
8933763b
authored
Jul 23, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to parsing tests to remove trailing space
parent
2ef402b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test/integration/roles/test_good_parsing/tasks/main.yml
+8
-8
No files found.
test/integration/roles/test_good_parsing/tasks/main.yml
View file @
8933763b
...
...
@@ -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,7 +51,7 @@
-
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
...
...
@@ -59,7 +59,7 @@
-
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"
...
...
@@ -67,7 +67,7 @@
-
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,7 +87,7 @@
-
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
...
...
@@ -95,7 +95,7 @@
-
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment