Skip to content

Commit

Permalink
fix(archlinux): fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jan 16, 2020
1 parent 4176716 commit 281846e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
12 changes: 7 additions & 5 deletions test/integration/default/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
platform_packages = %w[]
held_packages = {}
lock_file = ''
# Adding empty Arch entries, to get tests passing
when 'arch'
platform_packages = %w[]
held_packages = {}
lock_file = ''
when 'debian'
platform_packages = %w[]
held_packages = {
Expand All @@ -51,6 +46,13 @@
'iotop': '0.6-'
}
lock_file = '/var/lib/dpkg/status'
when 'linux'
case platform[:name]
when 'arch'
platform_packages = %w[ruby]
held_packages = {}
lock_file = ''
end
end

# FIXME: - not testing Held packages
Expand Down
3 changes: 2 additions & 1 deletion test/integration/default/controls/remote_pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
remote_pkgs = ['zoom']

case platform[:family]
when 'suse'
# `linux` here is sufficient for `arch`
when 'suse', 'linux'
remote_pkgs = []
end

Expand Down
8 changes: 4 additions & 4 deletions test/salt/pillar/arch.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
packages:
pkgs:
held:
- alien
# - alien
- iotop
wanted:
- ruby
- git
- less
- bc
Expand All @@ -17,7 +18,6 @@ packages:
required:
pkgs:
- git
- yum-plugin-versionlock
pips:
wanted:
- attrs
Expand All @@ -33,5 +33,5 @@ packages:
- diff-lcs
- kitchen-vagrant
- kwalify
remote_pkgs:
zoom: 'https://zoom.us/client/latest/zoom_x86_64.rpm'
# remote_pkgs:
# zoom: 'https://zoom.us/client/latest/zoom_x86_64.tar.xz'

0 comments on commit 281846e

Please sign in to comment.