salt/tests/integration/shell
Erik Johnson 002aa88a97
Replace yaml usage with a helper to ensure unicode is handled properly
Without allow_unicode=True, unicode characters are processed through the
str representer and on Python 2 are dumped as a Unicode code point (i.e.
a literal \u0414). This commit makes allow_unicode=True the default in
our salt.utils.yamlloader.safe_dump() helper. It also adds a new
salt.utils.yamlloader.dump() helper which wraps yaml.dump() and also
makes allow_unicode=True the default.

To make importing and using our custom yaml loader/dumper easier, a
convenience module called salt.utils.yaml has been added, which does a
wildcard import from both salt.utils.yamldumper and
salt.utils.yamlloader.

Refs to yaml.load/dump and yaml.safe_load/safe_dump have been updated to
salt.utils.yaml, to ensure that unicode is handled properly.
2018-01-03 14:14:21 -06:00
..
__init__.py Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
test_arguments.py Import from the original modules not tests.integration 2017-04-04 18:58:19 +01:00
test_auth.py Merge branch '2017.7' into 'develop' 2017-08-17 09:30:50 -04:00
test_call.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_cloud.py Import from the original modules not tests.integration 2017-04-04 18:58:19 +01:00
test_cp.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_enabled.py Update all references for moved functions to use "files" util 2017-07-18 10:31:01 -06:00
test_key.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_master.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_master_tops.py Add unicode_literals to tops, thorium, proxy, tokens 2017-12-14 21:56:49 -06:00
test_matcher.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_minion.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_proxy.py Add unicode_literals to tops, thorium, proxy, tokens 2017-12-14 21:56:49 -06:00
test_runner.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
test_saltcli.py Absolute imports and A LOT of code cleanup. 2017-03-01 01:33:07 +00:00
test_spm.py fix pylint 2017-12-05 14:39:36 -05:00
test_syndic.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00