Skip to content

Commit

Permalink
Fix tests after updating installer cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
upadhyeammit committed Aug 29, 2022
1 parent e7e53cb commit aab2f1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/definitions/features/installer_test.rb
Expand Up @@ -48,7 +48,7 @@
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)
Expand All @@ -57,7 +57,7 @@
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)
Expand All @@ -68,15 +68,15 @@
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
Expand Down

0 comments on commit aab2f1f

Please sign in to comment.