From d83648bb82353f3620a39dcefe1f613dde9cdc8b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 12 Jan 2015 10:20:28 -0800 Subject: [PATCH] Add test for python2.6 json bug to its own file --- test/integration/roles/test_filters/tasks/main.yml | 3 +++ test/integration/roles/test_filters/templates/py26json.j2 | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 test/integration/roles/test_filters/templates/py26json.j2 diff --git a/test/integration/roles/test_filters/tasks/main.yml b/test/integration/roles/test_filters/tasks/main.yml index 985cbf83275..3d1ee322e30 100644 --- a/test/integration/roles/test_filters/tasks/main.yml +++ b/test/integration/roles/test_filters/tasks/main.yml @@ -22,6 +22,9 @@ - debug: var=some_registered_var +- name: Verify that we workaround a py26 json bug + template: src=py26json.j2 dest={{output_dir}}/py26json.templated mode=0644 + - name: fill in a basic template template: src=foo.j2 dest={{output_dir}}/foo.templated mode=0644 register: template_result diff --git a/test/integration/roles/test_filters/templates/py26json.j2 b/test/integration/roles/test_filters/templates/py26json.j2 new file mode 100644 index 00000000000..b87d3c8090b --- /dev/null +++ b/test/integration/roles/test_filters/templates/py26json.j2 @@ -0,0 +1,2 @@ +Provoke a python2.6 json bug +{{ hostvars | to_nice_json }}