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
91a73cff
Commit
91a73cff
authored
Dec 14, 2014
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for globbing support
parent
fce04b1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
test/integration/roles/test_command_shell/tasks/main.yml
+15
-3
No files found.
test/integration/roles/test_command_shell/tasks/main.yml
View file @
91a73cff
...
...
@@ -87,6 +87,15 @@
-
name
:
verify that afile.txt is present
file
:
path={{output_dir_test}}/afile.txt state=file
-
name
:
re-run previous command using creates with globbing
command
:
"
{{output_dir_test
|
expanduser}}/create_afile.sh
{{output_dir_test
|
expanduser}}/afile.txt
creates={{output_dir_test
|
expanduser}}/afile.*"
register
:
command_result3
-
name
:
assert that creates with globbing is working
assert
:
that
:
-
"
command_result3.changed
!=
True"
# removes
-
name
:
remove afile.txt with remote_afile.sh via command
...
...
@@ -94,12 +103,15 @@
-
name
:
verify that afile.txt is absent
file
:
path={{output_dir_test}}/afile.txt state=absent
register
:
command_result3
-
name
:
assert that the file was removed by the script
-
name
:
re-run previous command using removes with globbing
command
:
"
{{output_dir_test
|
expanduser}}/remove_afile.sh
{{output_dir_test
|
expanduser}}/afile.txt
removes={{output_dir_test
|
expanduser}}/afile.*"
register
:
command_result4
-
name
:
assert that removes with globbing is working
assert
:
that
:
-
"
command_result
3
.changed
!=
True"
-
"
command_result
4
.changed
!=
True"
##
## shell
...
...
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