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
ffc2e5a6
Commit
ffc2e5a6
authored
Nov 11, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail on failure of md5 checksumming tests for non_destructive
tests
parent
9a7eb577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
test/integration/roles/test_copy/tasks/main.yml
+12
-2
test/integration/roles/test_stat/tasks/main.yml
+5
-2
No files found.
test/integration/roles/test_copy/tasks/main.yml
View file @
ffc2e5a6
...
@@ -55,9 +55,14 @@
...
@@ -55,9 +55,14 @@
-
name
:
verify that the file checksums are correct
-
name
:
verify that the file checksums are correct
assert
:
assert
:
that
:
that
:
-
"
copy_result.md5sum
==
'c47397529fe81ab62ba3f85e9f4c71f2'"
-
"
copy_result.checksum
==
'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
-
"
copy_result.checksum
==
'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
-
name
:
verify that the legacy md5sum is correct
assert
:
that
:
-
"
copy_result.md5sum
==
'c47397529fe81ab62ba3f85e9f4c71f2'"
ignore_errors
:
True
-
name
:
check the stat results of the file
-
name
:
check the stat results of the file
stat
:
path={{output_file}}
stat
:
path={{output_file}}
register
:
stat_results
register
:
stat_results
...
@@ -72,9 +77,14 @@
...
@@ -72,9 +77,14 @@
-
"
stat_results.stat.isfifo
==
false"
-
"
stat_results.stat.isfifo
==
false"
-
"
stat_results.stat.isreg
==
true"
-
"
stat_results.stat.isreg
==
true"
-
"
stat_results.stat.issock
==
false"
-
"
stat_results.stat.issock
==
false"
-
"
stat_results.stat.md5
==
'c47397529fe81ab62ba3f85e9f4c71f2'"
-
"
stat_results.stat.checksum
==
'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
-
"
stat_results.stat.checksum
==
'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'"
-
name
:
verify that the legacy md5sum is correct
assert
:
that
:
-
"
stat_results.stat.md5
==
'c47397529fe81ab62ba3f85e9f4c71f2'"
ignore_errors
:
True
-
name
:
overwrite the file via same means
-
name
:
overwrite the file via same means
copy
:
src=foo.txt dest={{output_file}}
copy
:
src=foo.txt dest={{output_file}}
register
:
copy_result2
register
:
copy_result2
...
...
test/integration/roles/test_stat/tasks/main.yml
View file @
ffc2e5a6
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
-
"
'issock'
in
stat_result.stat"
-
"
'issock'
in
stat_result.stat"
-
"
'isuid'
in
stat_result.stat"
-
"
'isuid'
in
stat_result.stat"
-
"
'md5'
in
stat_result.stat"
-
"
'md5'
in
stat_result.stat"
-
"
stat_result.stat.md5
==
'5eb63bbbe01eeed093cb22bb8f5acdc3'"
-
"
'checksum'
in
stat_result.stat"
-
"
'checksum'
in
stat_result.stat"
-
"
stat_result.stat.checksum
==
'2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'"
-
"
stat_result.stat.checksum
==
'2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'"
-
"
'mode'
in
stat_result.stat"
# why is this 420?
-
"
'mode'
in
stat_result.stat"
# why is this 420?
...
@@ -63,4 +62,8 @@
...
@@ -63,4 +62,8 @@
-
"
'xgrp'
in
stat_result.stat"
-
"
'xgrp'
in
stat_result.stat"
-
"
'xoth'
in
stat_result.stat"
-
"
'xoth'
in
stat_result.stat"
-
"
'xusr'
in
stat_result.stat"
-
"
'xusr'
in
stat_result.stat"
-
assert
:
that
:
-
"
stat_result.stat.md5
==
'5eb63bbbe01eeed093cb22bb8f5acdc3'"
ignore_errors
:
True
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