salt/tests/integration/modules
Erik Johnson 6cef37f310
2 unicode-compatibility fixes for cmdmod.py
First, `shlex.split()` will raise an exception when passed a unicode
type with unicode characters in the string. This modifies our
`shlex.split()` helper to first convert the passed string to a `str`
type, and then return a decoded copy of the result of the split.

Second, this uses our `to_unicode` helper to more gracefully decode the
stdout and stderr from the command. Unit tests have been added to
confirm that the output is properly decoded, including instances where
decoding fails because the return from the command contains binary data.
2018-02-07 02:01:55 -06:00
..
files Split out integration tests from pure unit tests. 2012-02-20 13:18:13 +01:00
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
test_aliases.py [PY3] Add unicode_literals to states/modules (A) 2018-01-14 01:31:52 -06:00
test_archive.py [PY3] Add unicode_literals to states/modules (A) 2018-01-14 01:31:52 -06:00
test_beacons.py [PY3] Update modules/states for PY3/Unicode compatibility (B) 2018-01-17 17:06:07 -06:00
test_boto_iam.py [PY3] Update modules/states for PY3/Unicode compatibility (B) 2018-01-17 17:06:07 -06:00
test_boto_sns.py [PY3] Update modules/states for PY3/Unicode compatibility (B) 2018-01-17 17:06:07 -06:00
test_cmdmod.py 2 unicode-compatibility fixes for cmdmod.py 2018-02-07 02:01:55 -06:00
test_config.py Import from the original modules not tests.integration 2017-04-04 18:58:19 +01:00
test_cp.py [PY3] Add unicode_literals to high-priority modules/states 2018-01-24 10:33:58 -06:00
test_darwin_sysctl.py Salt Unicode Update 2018-01-22 14:38:24 +03:00
test_data.py Salt Unicode Update 2018-01-22 14:38:24 +03:00
test_decorators.py Salt Unicode Update 2018-01-22 14:38:24 +03:00
test_disk.py Salt Unicode Update 2018-01-22 14:38:24 +03:00
test_dockermod.py [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
test_event.py Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
test_file.py [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
test_gem.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_gentoolkitmod.py Salt Unicode Update 3rd tier 3rd bunch from DK 2018-01-22 14:38:49 +03:00
test_git.py [PY3] Add unicode_literals to high-priority modules/states 2018-01-24 10:33:58 -06:00
test_grains.py [PY3] Add unicode_literals to high-priority modules/states 2018-01-24 10:33:58 -06:00
test_groupadd.py Fix groupadd tests for Arch Linux 2018-01-27 17:02:23 -06:00
test_hosts.py Add unicode_literals to modules, states, tests (H) 2018-01-23 09:55:46 -05:00
test_key.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_linux_acl.py Add unicode_literals to more modules, states, and tests 2018-01-23 10:08:59 -05:00
test_locale.py Add unicode_literals to more modules, states, and tests 2018-01-23 10:08:59 -05:00
test_lxc.py Add unicode_literals to more modules, states, and tests 2018-01-23 10:08:59 -05:00
test_mac_assistive.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_brew.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_defaults.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_desktop.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_group.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_keychain.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_pkgutil.py Update old utils paths to new paths 2018-01-26 17:34:29 -05:00
test_mac_ports.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_power.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_service.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_shadow.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_softwareupdate.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_system.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_timezone.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mac_user.py Merge branch '2017.7' into 'oxygen' 2018-01-26 17:27:03 -05:00
test_mac_xattr.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_mine.py [PY3] Add unicode_literals to high-priority modules/states 2018-01-24 10:33:58 -06:00
test_mysql.py Add more unicode_literals to modules, states, and test files 2018-01-22 09:32:29 -05:00
test_nilrt_ip.py Add unicode_literals to modules, states, and tests [n] 2018-01-22 09:42:15 -05:00
test_pillar.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_pip.py Merge branch '2017.7' into 'oxygen' 2018-01-23 13:26:43 -05:00
test_pkg.py pkg.upgrade does not return errors when something when wrong but raises an exception, so this code is no longer relevant. 2018-01-29 13:27:30 -08:00
test_publish.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_pw_user.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_rabbitmq.py Updating various modules, states and related tests for Unicode fun & profit part one. 2018-01-23 11:53:16 -08:00
test_saltutil.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_service.py Merge branch '2017.7' into 'oxygen' 2018-01-26 17:27:03 -05:00
test_shadow.py Fix several shadow tests for PY3 2018-01-26 11:19:15 -06:00
test_ssh.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_state.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_status.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_supervisord.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_sysctl.py Tier two unicode updates for modules, states and related tests. 2018-01-25 11:59:25 -08:00
test_sysmod.py [PY3] Add unicode_literals to salt.utils modules (A-D) 2018-01-13 16:08:56 -06:00
test_sysrc.py Updating various modules, states and related tests for Unicode fun & profit part one. 2018-01-23 11:53:16 -08:00
test_system.py PY2: Fix system.set_computer_desc and set_computer_desc when desc is unicode 2018-02-01 10:30:12 -06:00
test_test.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_timezone.py Add unicode_literals to modules, states, and related tests 2018-01-23 15:26:25 -05:00
test_useradd.py [PY3] Add unicode_literals to more high-priority states/modules 2018-01-22 08:26:28 -06:00
test_virt.py Add unicode_literals to modules, states, and related tests 2018-01-23 15:26:25 -05:00
test_virtualenv.py Add unicode_literals to modules, states, and related tests 2018-01-23 15:26:25 -05:00