salt/tests/integration
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
..
cli Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
client [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
cloud Lint: 2 spaces before comment 2017-12-30 16:10:37 -05:00
daemons Remove trailing whitespace 2017-10-29 15:29:52 +01:00
externalapi tag venafi as destructive and expensive 2017-05-25 15:15:49 -06:00
files Merge branch '2017.7' into 'oxygen' 2017-12-30 08:44:11 -05:00
fileserver These are not integration tests 2017-04-01 14:22:51 +01:00
grains Add integration test for (mem|swap)_total grains on OpenBSD 2017-11-08 14:38:20 -05:00
loader [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
minion Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
mockbin
modules Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
netapi Replace json module usage with a helper to ensure unicode content is handled properly 2017-12-27 09:30:58 -06:00
output [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
pillar Use explicit unicode strings + break up salt.utils 2017-08-08 13:33:43 -05:00
proxy Add unicode_literals to tops, thorium, proxy, tokens 2017-12-14 21:56:49 -06:00
reactor Import from the original modules not tests.integration 2017-04-04 18:58:19 +01:00
renderers [PY3] Add unicode_literals to renderers and returners 2017-12-15 00:17:26 -06:00
returners [PY3] Add unicode_literals to renderers and returners 2017-12-15 00:17:26 -06:00
runners Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
scheduler Gating the cron tests for the scheduler to ensure that the croniter module is installed before we attempt to run these tests 2017-12-28 11:21:18 -08:00
sdb [PY3] Add unicode_literals to sdb and serializers 2017-12-28 13:18:00 -06:00
shell Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
spm [PY3] Add unicode_literals to spm, queues, and rosters 2017-12-28 15:30:27 -06:00
ssh [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
states Replace json module usage with a helper to ensure unicode content is handled properly 2017-12-27 09:30:58 -06:00
utils Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00
wheel [PY3] Add print_function import to files with unicode_literals already added 2017-12-15 12:14:18 -06:00
__init__.py Replace yaml usage with a helper to ensure unicode is handled properly 2018-01-03 14:14:21 -06:00