ci(inspec): fix Debian tests

This commit is contained in:
Eric Veiras Galisson 2019-08-13 19:16:06 +02:00 committed by Imran Iqbal
parent 3615785e52
commit 98c6d2c9ba
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819
3 changed files with 12 additions and 3 deletions

View file

@ -134,6 +134,11 @@ verifier:
suites:
- name: default
includes:
- debian-10-develop-py3
- debian-9-2019-2-py3
- debian-9-2018-3-py2
- debian-8-2017-7-py2
provisioner:
state_top:
base:
@ -149,3 +154,4 @@ suites:
verifier:
inspec_tests:
- path: test/integration/default

View file

@ -1,9 +1,9 @@
packages:
pkgs:
# A dict of "package: version" pairs:
held:
alien: 8.95
iotop: 0.6-2
# held:
# alien: 8.95
# iotop: 0.6-24
# Alternativelly, held packages can also be specified as a list with
# no versions. In this case, the package will be held in the installed

View file

@ -43,6 +43,9 @@ when 'debian', 'ubuntu'
lock_file = '/var/lib/dpkg/status'
end
## FIXME - not testing Held packages
held_packages = {}
unheld_packages = (common_packages + os_packages).flatten.uniq
all_packages = (unheld_packages + held_packages.keys.map { |k| k.to_s }).flatten.uniq