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
5391b750
Commit
5391b750
authored
Feb 19, 2014
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand copy tests.
parent
dae2267c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
tests_new/integration/roles/test_copy/tasks/main.yml
+7
-19
No files found.
tests_new/integration/roles/test_copy/tasks/main.yml
View file @
5391b750
...
...
@@ -37,7 +37,6 @@
-
"
'state'
in
copy_result"
-
"
'uid'
in
copy_result"
-
name
:
verify that the file was marked as changed
assert
:
that
:
...
...
@@ -110,32 +109,21 @@
register
:
stat_bar
-
name
:
check that a file in a deeper directory was transferred
stat
:
path={{output_dir}}/sub/subdir/subdir2/ba
r2
.txt
stat
:
path={{output_dir}}/sub/subdir/subdir2/ba
z
.txt
register
:
stat_bar2
-
debug
:
var=stat_bar
-
fail
:
msg="boom!"
when
:
not stat_bar.stat.exists
-
assert
:
{
that
:
"
stat_bar.stat.exists"
}
-
name
:
assert recursive copy things
assert
:
that
:
-
"
stat_bar.stat.exists"
-
"
stat_bar2.stat.exists"
# TODO: test that copy fails if the path does not exist
-
name
:
assert invalid copy location fails
copy
:
src=invalid_file_location_does_not_exist dest={{output_dir}}/file.txt
ignore_errors
:
True
register
:
failed_copy
-
debug
:
var=failed_copy
# errors on this aren't presently ignored so this test is commented out. But it would be nice to fix.
#
#- name: assert invalid copy input location fails
# copy: src=invalid_file_location_does_not_exist dest={{output_dir}}/file.txt
# ignore_errors: True
# register: failed_copy
# TODO: ...
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