You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
12 years ago
..
assemble.d - Makefile now works with freebsd (date command options are diff) 12 years ago
inventory_dir Add some tests for directory-based inventory 12 years ago
test_playbook_vars Always load group_vars and host_vars. 12 years ago
CentOS.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 13 years ago
TestConstants.py Fixed tests to reflect desired configuration behaviour 12 years ago
TestFilters.py Disable filter test for now since it should really be testing at a lower level. 12 years ago
TestInventory.py Standardize test output 12 years ago
TestPlayBook.py Test case and fix for shlex.split unicode bug 12 years ago
TestRunner.py Standardize test output 12 years ago
TestUtils.py Make template_ds the only templater 12 years ago
ansible.cfg Fixed tests to reflect desired configuration behaviour 12 years ago
ansible_hosts - Makefile now works with freebsd (date command options are diff) 12 years ago
apt_key.gpg add apt_key module 12 years ago
common_vars.yml Fix correct variable expansion in includes only_if. 13 years ago
complex_hosts Merge pull request #1776 from junegunn/inventory-group-var-ws 12 years ago
cron_test.yml Cron module upgrades 12 years ago
default_os.yml Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive 13 years ago
hosts_list.yml Make tests use the local connection type, fix missing callback in tests. 12 years ago
inventory_api.py Return multiple groups from inventory API. 12 years ago
jinja2_overrides.tpl moved override matching string to variable changed test template to match Signed-off-by: Brian Coca <briancoca+ansible@gmail.com> 12 years ago
large_range Alphabetic inventory hostname patterns. 12 years ago
lookup_plugins.yml password lookup plugin, with working tests and documentation 12 years ago
playbook-included.yml Make use of yes/no booleans in playbooks 12 years ago
playbook-includer.yml Add parameterized playbook includes 12 years ago
playbook1.yml Preliminary ability to use Jinja2 {{ }} to replace ${foo.bar} in playbooks. Can't use both at the same time per line. 12 years ago
results_list.yml Make tests use the local connection type, fix missing callback in tests. 12 years ago
rocannon.txt Added test cases for lineinfile. 12 years ago
sample.j2 Fixing bug with unicode templates. 12 years ago
simple_hosts Alphabetic inventory hostname patterns. 12 years ago
task-included.yml Test case and fix for shlex.split unicode bug 12 years ago
task-includer.yml Test case and fix for shlex.split unicode bug 12 years ago
template-basic Update tests to reflect new API 13 years ago
template-whitespace Update tests to reflect new API 13 years ago
world Add test data file 12 years ago