salt/tests/unit
Erik Johnson 508659b682
yamlloader: Properly handle colons in inline dicts
PyYAML's scanner is not written to handle Python's unicode literal
strings, since they are not part of the YAML spec. With all strings
loaded in the YAML context now being unicode types, this causes errors
when scanning the document to construct the next node. The unicode
string literal is misidentified as a plain scalar and any colons within
it are interpreted as delimiting a mapping node. Since no whitespace appears
after the colon, this causes scanning error.

To fix it, we check for this scanning error and reset the scanner's
position and check if the first char is the "u" prefix. If so, and if
the following char is a quote, then we attempt to scan for a string
literal instead.
2018-04-16 11:29:51 -05:00
..
acl fix assert errors 2018-03-13 21:01:46 +00:00
auth fix pylint 2018-02-13 07:45:13 -07:00
beacons
cache Merge branch '2017.7' into 'oxygen' 2018-02-08 11:23:31 -05:00
cli [PY3] Add unicode_literals to cache and cli modules 2018-01-13 21:08:51 -06:00
cloud Merge branch '2017.7' into '2018.3' 2018-03-15 17:22:05 -04:00
config Fix master conf test for PY3 2018-03-02 11:06:13 -06:00
daemons Distinguish between Authorization and Authentication errors 2018-01-23 17:05:22 -05:00
engines
files fix test boto imports 2018-01-18 14:56:27 -07:00
fileserver Remove unused imports 2018-02-07 14:44:15 -06:00
grains Merge pull request #46569 from rallytime/merge-2018.3 2018-03-21 20:57:04 +00:00
loader
modules Merge branch '2017.7' into '2018.3' 2018-04-11 12:41:22 -04:00
netapi Merge branch '2017.7' into '2018.3' 2018-03-06 13:45:59 -05:00
output
pillar Fix paths 2018-01-25 00:43:43 +00:00
proxy
renderers
returners Update old utils paths to new utils paths 2018-03-27 16:45:16 -04:00
runners
sdb
serializers Fix difference between CSafeDumper and Dumper in yaml serializer test 2018-01-23 19:34:25 -06:00
ssh Skip SSHPasswordTests if ssh binary is not found 2018-03-07 16:36:06 +01:00
states Update old utils paths to new paths 2018-04-03 14:46:56 -04:00
templates Lint: fix from a bad merge 2018-02-28 09:18:27 -05:00
tops Add skipIf when older mock present 2018-04-04 10:54:47 -05:00
transport Patch ZMQ versions for master_uri test 2018-04-10 13:02:57 -04:00
utils yamlloader: Properly handle colons in inline dicts 2018-04-16 11:29:51 -05:00
__init__.py
test_auth.py
test_client.py Update old utils paths to new paths 2018-04-03 14:46:56 -04:00
test_conf.py
test_context.py
test_crypt.py Fix verify signature test 2018-04-09 09:41:32 -07:00
test_daemons.py Improve robustness of daemons unit tests 2018-01-20 22:49:02 -06:00
test_doc.py
test_fileclient.py
test_files.py
test_log.py
test_map_conf.py
test_master.py Distinguish between Authorization and Authentication errors 2018-01-23 17:05:22 -05:00
test_minion.py Add for new source_* minion options 2018-04-10 13:02:57 -04:00
test_payload.py Payload Py3 fix and set handling. 2018-03-02 06:01:42 +03:00
test_pillar.py Merge branch '2017.7' into '2018.3' 2018-03-27 16:31:55 -04:00
test_pydsl.py
test_pyobjects.py
test_simple.py
test_spm.py
test_ssh_config_roster.py
test_state.py Refactor unit tests so they call class-based decorator 2018-01-17 14:13:25 +01:00
test_stateconf.py
test_target.py
test_template.py
test_test_module_names.py
test_transport.py
test_version.py
test_zypp_plugins.py