inspec/test/unit/mock
Lance Albertson dab91a321a Improve testing for yum.repo in CentOS 8
The output for ``yum -v repolist all`` changes slightly in CentOS 8. There are
two specific changes:

1. EL8 is no longer trailing the repo name with release version and arch (i.e.
   base instead of base/7/x86)
2. EL8 no longer adds a trailing newline on the last repo and instead has a line
   with ``Total packages:``. This means the repo listed last will never show up.

A fix was introduced in #4566 however the tests still use CentOS 7 yum output
instead of dnf repolist output. One issue was still discovered where it was
including the ``Total packages`` line in the last repository. This includes a
regex for to work around that and fixes for the tests.

Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-24 08:22:42 -07:00
..
cmd Improve testing for yum.repo in CentOS 8 2019-10-24 08:22:42 -07:00
config_dirs Return version number when listing plugins; correct UX coloration 2019-08-27 21:29:42 -04:00
files Fix for postfix_conf when using a non-standard config location 2019-09-03 15:28:44 -07:00
plugins chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00
profiles Every other example has the value set to 1, so I changed this for consistency. 2019-10-16 10:15:49 -07:00
reporters And the YAML fixture too. 2019-10-09 20:49:33 -07:00