Quellcode durchsuchen

Merge pull request #174 from myii/test/prevent-package-control-for-bsd

test(packages_spec): prevent control for `bsd` family
tags/v0.43.1
Imran Iqbal vor 4 Jahren
Ursprung
Commit
554633d7c0
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. +11
    -4
      test/integration/default/controls/packages_spec.rb

+ 11
- 4
test/integration/default/controls/packages_spec.rb Datei anzeigen

@@ -1,12 +1,19 @@
# Overide by Platform
package_name = 'openssh-server'
if platform[:family] == 'suse'
package_name = 'openssh'
end
package_name =
case platform[:family]
when 'suse'
'openssh'
else
'openssh-server'
end

control 'openssh package' do
title 'should be installed'

only_if do
platform.family != 'bsd'
end

describe package(package_name) do
it { should be_installed }
end

Laden…
Abbrechen
Speichern