Project

General

Profile

« Previous | Next » 

Revision b0337ee3

Added by Amit Upadhye over 1 year ago

Fixes #35058 - upgrade scenario for Foreman and Katello nightly (#633)

  • Fixes #35058 - upgrade scenario for Foreman and Katello nightly

View differences:

test/definitions/features/installer_test.rb
it '#upgrade runs the installer with correct params' do
assume_feature_absent(:satellite)
installer_inst.expects(:'execute!').
with('LANG=en_US.utf-8 foreman-installer --disable-system-checks --upgrade',
with('foreman-installer --disable-system-checks --upgrade',
:interactive => true).
returns(true)
subject.upgrade(:interactive => true)
......
it '#upgrade runs the installer with correct params in satellite' do
assume_feature_present(:satellite)
installer_inst.expects(:'execute!').
with('LANG=en_US.utf-8 satellite-installer --disable-system-checks --upgrade',
with('satellite-installer --disable-system-checks --upgrade',
:interactive => true).
returns(true)
subject.upgrade(:interactive => true)
......
it 'runs the installer with correct params' do
assume_feature_absent(:satellite)
installer_inst.expects(:'execute!').
with('LANG=en_US.utf-8 foreman-installer --password=changeme', :interactive => true).
with('foreman-installer --password=changeme', :interactive => true).
returns(true)
subject.run('--password=changeme', :interactive => true)
end
......
it 'runs the installer with correct params in satellite' do
assume_feature_present(:satellite)
installer_inst.expects(:'execute!').
with('LANG=en_US.utf-8 satellite-installer --password=changeme', :interactive => true).
with('satellite-installer --password=changeme', :interactive => true).
returns(true)
subject.run('--password=changeme', :interactive => true)
end

Also available in: Unified diff