ansible/test
willthames 9d87733f98 Test case and fix for shlex.split unicode bug
When operating on a unicode string in python 2.6, shlex.split returns
a result that does not work with the file constructor.

To reproduce this requires a task include that is templated (this is
because the templated string is a unicode result, whereas a non-
templated string is a non-unicode string)

    [will@centos6.3] $ python
    Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
    [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import shlex
    >>> shlex.split(u'abc')
    ['a\x00\x00\x00b\x00\x00\x00c\x00\x00\x00']

    [will@fedora17] $ python
    Python 2.7.3 (default, Jul 24 2012, 10:05:38)
    [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import shlex
    >>> shlex.split(u'abc')
    ['abc']

The proposed fix (coercing the include parameters to string before the
shlex.split) may not be ideal but it does fix the bug for my test case.
2013-04-08 14:47:43 +10:00
..
assemble.d - Makefile now works with freebsd (date command options are diff) 2012-08-29 09:46:05 -04:00
inventory_dir Add some tests for directory-based inventory 2013-03-01 23:34:14 +01:00
test_playbook_vars Always load group_vars and host_vars. 2012-08-13 21:08:05 -07:00
ansible.cfg Fixed tests to reflect desired configuration behaviour 2012-10-18 12:53:30 +10:00
ansible_hosts - Makefile now works with freebsd (date command options are diff) 2012-08-29 09:46:05 -04:00
apt_key.gpg add apt_key module 2013-01-15 17:34:38 -08:00
CentOS.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 2012-03-19 22:42:31 -04:00
common_vars.yml Fix correct variable expansion in includes only_if. 2012-05-11 15:55:33 +02:00
complex_hosts Merge pull request #1776 from junegunn/inventory-group-var-ws 2012-12-17 16:51:49 -08:00
cron_test.yml Cron module upgrades 2013-02-09 11:11:19 -05:00
default_os.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 2012-03-19 22:42:31 -04:00
hosts_list.yml Make tests use the local connection type, fix missing callback in tests. 2012-11-19 10:30:30 -05:00
inventory_api.py Return multiple groups from inventory API. 2012-10-10 18:35:45 +02:00
jinja2_overrides.tpl moved override matching string to variable changed test template to match Signed-off-by: Brian Coca <briancoca+ansible@gmail.com> 2012-11-26 10:41:13 -05:00
large_range Alphabetic inventory hostname patterns. 2012-12-10 20:48:38 -06:00
lookup_plugins.yml password lookup plugin, with working tests and documentation 2013-03-10 13:36:53 +11:00
playbook-included.yml Make use of yes/no booleans in playbooks 2012-12-14 11:56:53 +01:00
playbook-includer.yml Add parameterized playbook includes 2012-11-09 15:43:49 +01:00
playbook1.yml Preliminary ability to use Jinja2 {{ }} to replace ${foo.bar} in playbooks. Can't use both at the same time per line. 2013-04-03 01:04:16 -04:00
results_list.yml Make tests use the local connection type, fix missing callback in tests. 2012-11-19 10:30:30 -05:00
rocannon.txt Added test cases for lineinfile. 2013-02-23 12:50:18 -05:00
sample.j2 Fixing bug with unicode templates. 2013-02-05 14:49:59 +01:00
simple_hosts Alphabetic inventory hostname patterns. 2012-12-10 20:48:38 -06:00
task-included.yml Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
task-includer.yml Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
template-basic Update tests to reflect new API 2012-06-18 00:13:12 +02:00
template-whitespace Update tests to reflect new API 2012-06-18 00:13:12 +02:00
TestConstants.py Fixed tests to reflect desired configuration behaviour 2012-10-18 12:53:30 +10:00
TestFilters.py Disable filter test for now since it should really be testing at a lower level. 2013-03-01 17:42:14 -05:00
TestInventory.py Standardize test output 2013-04-05 13:13:33 -04:00
TestPlayBook.py Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
TestRunner.py Standardize test output 2013-04-05 13:13:33 -04:00
TestUtils.py Make template_ds the only templater 2013-02-03 14:01:54 +01:00
world Add test data file 2012-09-17 18:31:49 +02:00