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
c08c907e
Commit
c08c907e
authored
Oct 20, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9346 from MiLk/test/shell-multiline
Add integration test for the shell module
parents
13da0395
39ce134c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
test/integration/roles/test_command_shell/tasks/main.yml
+16
-0
No files found.
test/integration/roles/test_command_shell/tasks/main.yml
View file @
c08c907e
...
...
@@ -198,3 +198,19 @@
that
:
-
"
shell_result6.changed"
-
"
shell_result6.stdout
==
'32f3cc201b69ed8afa3902b80f554ca8
\n
this
is
a
second
line'"
-
name
:
execute a shell command using a literal multiline block with arguments in it
shell
:
|
executable=/bin/bash
creates={{output_dir_test | expanduser}}/afile.txt
echo "test"
register
:
shell_result7
-
name
:
assert the multiline shell command with arguments in it run as expected
assert
:
that
:
-
"
shell_result7.changed"
-
"
shell_result7.stdout
==
'test'"
-
name
:
remove the previously created file
file
:
path={{output_dir_test}}/afile.txt state=absent
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