Skip to content

Commit ca1bd4c

Browse files
committed
fixup
1 parent 697aa3b commit ca1bd4c

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

spec/acceptance/install_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@
211211
MANIFEST
212212

213213
describe 'installing' do
214+
before(:all) do
215+
# Ensure rpm is installed on SLES systems (required for zypper provider)
216+
if os[:family] == 'sles'
217+
run_shell('zypper install -y rpm', expect_failures: false, acceptable_exit_codes: [0, 100, 104])
218+
end
219+
end
220+
214221
context 'when installing java jre' do
215222
it 'installs jre' do
216223
idempotent_apply(java_class_jre)
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
# frozen_string_literal: true
22

33
UNSUPPORTED_PLATFORMS = ['darwin', 'windows'].freeze
4-
5-
RSpec.configure do |c|
6-
c.before :suite do
7-
# Ensure rpm is installed on SLES systems (required for zypper provider)
8-
if os[:family] == 'sles'
9-
hosts.each do |host|
10-
on(host, 'zypper install -y rpm', acceptable_exit_codes: [0, 1, 100, 104])
11-
end
12-
end
13-
end
14-
end

0 commit comments

Comments
 (0)