ansible/test/units
Adrian Likins e511326222 Fix 'yum skips updates' bug (#21113)
* Fix 'yum skips updates' bug

When the 'yum check-update' output is parsed, the regex used
to stitch wrapped lines together would fail on the first package.

It would fail because there is an empty line before the first
package, and this triggered the regex. To avoid a more complicated
regex, preprocess the check-update output to strip out any
empty lines.

The regex is also updated to include a group on the non whitespace
match to be used in the sub.

Add test cases based on info provided in the bug reports.

Fixes #20608
2017-02-08 16:07:43 -05:00
..
cli PEP 8 E111 & E114 cleanup. (#20838) 2017-01-30 15:01:47 -08:00
contrib PEP 8 W291 whitespace cleanup. 2017-01-27 17:08:02 -08:00
errors Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
executor Combine jimi-c and bcoca's ideas and work on hooking module-utils into PluginLoader. 2017-01-31 09:41:24 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock Fix @contextmanager leak on exception. (#21031) 2017-02-03 17:19:59 -08:00
module_utils Convert unit test yield to pytest parametrize. 2017-02-08 12:56:23 -08:00
modules Fix 'yum skips updates' bug (#21113) 2017-02-08 16:07:43 -05:00
parsing added docs for vault and made trigger shorter: !vault (#20985) 2017-02-03 15:28:50 -05:00
playbook PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
plugins Fix action test (#21102) 2017-02-07 13:35:51 -05:00
template PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
utils PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
vars PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00