inspec/test/unit
Markus Grobelin c626dfdbd9 cpan resource: check for Perl module installation (#2254)
* Added CPAN resource to check Perl modules

control 'cpan-1' do
  impact 1.0
  desc '
    Ensure Perl modules DBI and DBD::Pg are installed.
  '

  describe cpan('DBI') do
    it { should be_installed }
  end

  describe cpan('DBD::Pg') do
    it { should be_installed }
    its('version') { should cmp >= '3.0' }
  end
end

Signed-off-by: Markus Grobelin <grobi@koppzu.de>

* cpan resource: fixed unit test for non-installed module

Signed-off-by: Markus Grobelin <grobi@koppzu.de>
2017-10-25 16:01:26 +02:00
..
bundles Support profile versions for automate profiles storage (#2128) 2017-09-13 16:53:36 -04:00
dependencies Bump lockfile version to 1.0 2016-09-26 09:51:04 +01:00
dsl Include ref when writing out inspec control objects (#2259) 2017-10-24 17:50:23 -04:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
mock cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
objects forgiving default attributes (#2177) 2017-09-22 08:57:51 -04:00
plugins Remove some warnings during the test run 2016-09-09 14:14:36 +01:00
profiles Fix only_if behavior when used outside controls (#2216) 2017-10-17 14:47:30 +02:00
resources cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils Corrected some unit test warnings (#2242) 2017-10-17 14:49:26 +02:00
file_provider_test.rb Support PAX-formatted tar files, standardize file lists (#2225) 2017-10-10 10:36:57 +01:00
runner_test.rb Add attributes file readability error handling (#2127) 2017-09-08 08:43:33 -04:00
shell_detector_test.rb Corrected some unit test warnings (#2242) 2017-10-17 14:49:26 +02:00