inspec/test/unit
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
..
bundles/inspec-supermarket First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dependencies First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
dsl First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
fetchers First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
inputs Revert to a small amount of duplicating to_hash in inspec/input.rb 2019-10-06 19:30:37 -04:00
matchers Fixed tests to work with rspec-expectations 3.8.5+. 2019-10-02 18:08:19 -07:00
mock Improve testing for yum.repo in CentOS 8 2019-10-24 08:22:42 -07:00
plugin First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
profiles First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
reporters Refactored unit test to be more like the other one. 2019-10-09 17:41:03 -07:00
resource_supports/aws First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
resources Improve testing for yum.repo in CentOS 8 2019-10-24 08:22:42 -07:00
source_readers First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
utils First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
backend_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
base_cli_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
cached_fetcher_test.rb These tests probably never passed. 2019-07-29 11:42:30 -07:00
config_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
file_provider_test.rb Fix TarProvider when the tarball has empty files in it. 2019-10-18 14:30:00 -07:00
impact_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
runner_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
shell_detector_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00
ui_test.rb First pass at cleaning deprecations for old minitest/spec-style tests. 2019-10-03 13:45:19 -07:00