inspec/test/unit/mock
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
..
cmd Properly handle held packages on dpkg-flavored OS (#2087) 2017-08-18 17:29:23 +02:00
files catch newline issues in xinet.d (#2043) 2017-08-02 16:43:55 +02:00
profiles Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00