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: suites:
- name: default - name: default
includes:
- debian-10-develop-py3
- debian-9-2019-2-py3
- debian-9-2018-3-py2
- debian-8-2017-7-py2
provisioner: provisioner:
state_top: state_top:
base: base:
@ -149,3 +154,4 @@ suites:
verifier: verifier:
inspec_tests: inspec_tests:
- path: test/integration/default - path: test/integration/default

View file

@ -1,9 +1,9 @@
packages: packages:
pkgs: pkgs:
# A dict of "package: version" pairs: # A dict of "package: version" pairs:
held: # held:
alien: 8.95 # alien: 8.95
iotop: 0.6-2 # iotop: 0.6-24
# Alternativelly, held packages can also be specified as a list with # Alternativelly, held packages can also be specified as a list with
# no versions. In this case, the package will be held in the installed # 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' lock_file = '/var/lib/dpkg/status'
end end
## FIXME - not testing Held packages
held_packages = {}
unheld_packages = (common_packages + os_packages).flatten.uniq unheld_packages = (common_packages + os_packages).flatten.uniq
all_packages = (unheld_packages + held_packages.keys.map { |k| k.to_s }).flatten.uniq all_packages = (unheld_packages + held_packages.keys.map { |k| k.to_s }).flatten.uniq