inspec/test
Adam Leff 1cf80737ad Yum resource fix for non-existent repos and repo info
If a repo did not exist, running matchers against it (such as `exist`)
were failing due to a bug in `#to_s` when fetching the repo name. The
`info` method would return nil and we'd still try to treat it as a hash.

This change ensures that info is always a hash, possibly empty if the
repo doesn't exist, and uses the repo name provided by the user rather
than shortening it to be consistent with our other resources which don't
manipulate the user input in the formatter.

Also added a method_missing to allow users to interrogate repo options,
such as baseurl or gpgcheck.

Signed-off-by: Adam Leff <adam@leff.co>
2017-03-29 10:42:25 +02:00
..
cookbooks/os_prepare x509 integration tests 2017-03-22 11:44:33 +01:00
functional Update CLI output, adjust tests 2017-03-29 10:22:20 +02:00
integration/default x509 integration tests 2017-03-22 11:44:33 +01:00
resource Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
unit Yum resource fix for non-existent repos and repo info 2017-03-29 10:42:25 +02:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb Extend gem to take an optional gem_binary 2017-03-24 22:28:42 -07:00
test-extra.yaml split up tests for travis 2015-09-23 01:51:51 +02:00
test.yaml split up tests for travis 2015-09-23 01:51:51 +02:00