inspec/test
Adam Leff 367d42fb3a Properly handle held packages on dpkg-flavored OS (#2087)
* check the proper field for dpkg installation state fixes #2006

Signed-off-by: Mathieu Sauve-Frankel <msf@kisoku.net>

* Properly handle held packages on dpkg-flavored OS

InSpec was looking at the wrong field in `dpkg -s` output to determine
whether a package was installed or not. An installed, held package was
incorrectly reported as uninstalled.

This adds the proper unit tests and also adds a `be_held` matcher.

Thanks to @kisoku for the initial work in #2007.

Signed-off-by: Adam Leff <adam@leff.co>
2017-08-18 17:29:23 +02:00
..
cookbooks/os_prepare Adding toml resource (#1924) 2017-06-15 16:54:12 -04:00
functional add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
integration/default add functional tests for inspec check (#2077) 2017-08-15 20:41:24 +02:00
resource Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
unit Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +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 Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +02: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