Better names for the test_binary tests

pull/10154/merge
Toshio Kuratomi 10 years ago
parent 788e47b693
commit 930bdd1f2f

@ -40,7 +40,7 @@
content: "{{ simple_accents }}\n"
dest: "{{ output_dir }}/from_playbook.txt"
- name: Check that what was written matches
- name: Check that copying utf-8 content matches
stat:
path: "{{ output_dir }}/from_playbook.txt"
register: results
@ -54,7 +54,7 @@
content: "{{ utf8_simple_accents|b64decode }}\n"
dest: "{{ output_dir }}/b64_utf8.txt"
- name: Check that what was written matches
- name: Check that utf8 in a base64 string matches
stat:
path: "{{ output_dir }}/b64_utf8.txt"
register: results
@ -68,7 +68,7 @@
content: "{{ latin1_simple_accents|b64decode }}\n"
dest: "{{ output_dir }}/b64_latin1.txt"
- name: Check that what was written matches
- name: Check that latin1 in a base64 string matches
stat:
path: "{{ output_dir }}/b64_latin1.txt"
register: results
@ -76,13 +76,16 @@
- assert:
that:
- '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
template:
src: "from_playbook_template.j2"
dest: "{{ output_dir }}/from_playbook_template.txt"
- name: Check that what was written matches
- name: Check that writing a template from a playbook var matches
stat:
path: "{{ output_dir }}/from_playbook_template.txt"
register: results
@ -96,7 +99,7 @@
src: "b64_utf8_template.j2"
dest: "{{ output_dir }}/b64_utf8_template.txt"
- name: Check that what was written matches
- name: Check that writing a template from a base64 encoded utf8 string matches
stat:
path: "{{ output_dir }}/b64_utf8_template.txt"
register: results
@ -110,7 +113,7 @@
src: "b64_latin1_template.j2"
dest: "{{ output_dir }}/b64_latin1_template.txt"
- name: Check that what was written matches
- name: Check that writing a template from a base64 encoded latin1 string matches
stat:
path: "{{ output_dir }}/b64_latin1_template.txt"
register: results
@ -118,6 +121,9 @@
- assert:
that:
- '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
- debug: var=simple_accents

Loading…
Cancel
Save