From 6b7d8df1560091f615e2138a56d4cb8e50b7ab5c Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Mon, 20 Jul 2020 16:28:28 +0200 Subject: [PATCH] fix(inspec): the package name for Arch is openssh For Arch, Inspec define `platform[:family]` as `linux` and `platform[:name]` as `arch`. --- test/integration/default/controls/packages_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/default/controls/packages_spec.rb b/test/integration/default/controls/packages_spec.rb index d0058c2..589c852 100644 --- a/test/integration/default/controls/packages_spec.rb +++ b/test/integration/default/controls/packages_spec.rb @@ -3,7 +3,8 @@ # Overide by Platform package_name = case platform[:family] - when 'suse' + # `linux` here is sufficient for `arch` + when 'suse', 'linux' 'openssh' else 'openssh-server'