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
930bdd1f
Commit
930bdd1f
authored
Feb 02, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better names for the test_binary tests
parent
788e47b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
test/integration/roles/test_binary/tasks/main.yml
+12
-6
No files found.
test/integration/roles/test_binary/tasks/main.yml
View file @
930bdd1f
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
content
:
"
{{
simple_accents
}}
\n
"
content
:
"
{{
simple_accents
}}
\n
"
dest
:
"
{{
output_dir
}}/from_playbook.txt"
dest
:
"
{{
output_dir
}}/from_playbook.txt"
-
name
:
Check that
what was written
matches
-
name
:
Check that
copying utf-8 content
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/from_playbook.txt"
path
:
"
{{
output_dir
}}/from_playbook.txt"
register
:
results
register
:
results
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
content
:
"
{{
utf8_simple_accents|b64decode
}}
\n
"
content
:
"
{{
utf8_simple_accents|b64decode
}}
\n
"
dest
:
"
{{
output_dir
}}/b64_utf8.txt"
dest
:
"
{{
output_dir
}}/b64_utf8.txt"
-
name
:
Check that
what was written
matches
-
name
:
Check that
utf8 in a base64 string
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/b64_utf8.txt"
path
:
"
{{
output_dir
}}/b64_utf8.txt"
register
:
results
register
:
results
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
content
:
"
{{
latin1_simple_accents|b64decode
}}
\n
"
content
:
"
{{
latin1_simple_accents|b64decode
}}
\n
"
dest
:
"
{{
output_dir
}}/b64_latin1.txt"
dest
:
"
{{
output_dir
}}/b64_latin1.txt"
-
name
:
Check that
what was written
matches
-
name
:
Check that
latin1 in a base64 string
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/b64_latin1.txt"
path
:
"
{{
output_dir
}}/b64_latin1.txt"
register
:
results
register
:
results
...
@@ -76,13 +76,16 @@
...
@@ -76,13 +76,16 @@
-
assert
:
-
assert
:
that
:
that
:
-
'
results.stat.checksum
==
b64_latin1.stat.checksum'
-
'
results.stat.checksum
==
b64_latin1.stat.checksum'
# This one depends on being able to pass binary data through
# Might be a while before we find a solution for this
ignore_errors
:
True
-
name
:
Template with a unicode string from the playbook
-
name
:
Template with a unicode string from the playbook
template
:
template
:
src
:
"
from_playbook_template.j2"
src
:
"
from_playbook_template.j2"
dest
:
"
{{
output_dir
}}/from_playbook_template.txt"
dest
:
"
{{
output_dir
}}/from_playbook_template.txt"
-
name
:
Check that w
hat was written
matches
-
name
:
Check that w
riting a template from a playbook var
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/from_playbook_template.txt"
path
:
"
{{
output_dir
}}/from_playbook_template.txt"
register
:
results
register
:
results
...
@@ -96,7 +99,7 @@
...
@@ -96,7 +99,7 @@
src
:
"
b64_utf8_template.j2"
src
:
"
b64_utf8_template.j2"
dest
:
"
{{
output_dir
}}/b64_utf8_template.txt"
dest
:
"
{{
output_dir
}}/b64_utf8_template.txt"
-
name
:
Check that w
hat was written
matches
-
name
:
Check that w
riting a template from a base64 encoded utf8 string
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/b64_utf8_template.txt"
path
:
"
{{
output_dir
}}/b64_utf8_template.txt"
register
:
results
register
:
results
...
@@ -110,7 +113,7 @@
...
@@ -110,7 +113,7 @@
src
:
"
b64_latin1_template.j2"
src
:
"
b64_latin1_template.j2"
dest
:
"
{{
output_dir
}}/b64_latin1_template.txt"
dest
:
"
{{
output_dir
}}/b64_latin1_template.txt"
-
name
:
Check that w
hat was written
matches
-
name
:
Check that w
riting a template from a base64 encoded latin1 string
matches
stat
:
stat
:
path
:
"
{{
output_dir
}}/b64_latin1_template.txt"
path
:
"
{{
output_dir
}}/b64_latin1_template.txt"
register
:
results
register
:
results
...
@@ -118,6 +121,9 @@
...
@@ -118,6 +121,9 @@
-
assert
:
-
assert
:
that
:
that
:
-
'
results.stat.checksum
==
b64_latin1.stat.checksum'
-
'
results.stat.checksum
==
b64_latin1.stat.checksum'
# This one depends on being able to pass binary data through
# Might be a while before we find a solution for this
ignore_errors
:
True
# These might give garbled output but none of them should traceback
# These might give garbled output but none of them should traceback
-
debug
:
var=simple_accents
-
debug
:
var=simple_accents
...
...
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