inspec/test/helpers
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
..
mock_loader.rb Improve testing for yum.repo in CentOS 8 2019-10-24 08:22:42 -07:00
resources.rb Moved quick_resource and Fake helpers to test/helpers/resources.rb 2019-10-16 16:54:07 -07:00
simplecov_minitest.rb chefstyle -a; https://github.com/chef/chefstyle/pull/74 2019-07-08 17:22:50 -07:00