Skip to content

Commit

Permalink
ci(inspec): fix Debian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daks authored and myii committed Jan 15, 2020
1 parent 3615785 commit 98c6d2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -149,3 +154,4 @@ suites:
verifier:
inspec_tests:
- path: test/integration/default

6 changes: 3 additions & 3 deletions pillar.example
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions test/integration/default/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
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

Expand Down

0 comments on commit 98c6d2c

Please sign in to comment.